Repository navigation
Commit 1f512ff
authored
Re-targets
[#27](#27)
against `main`.
## What happened
PR #27 was stacked on PR #26's branch
(`msrathore/kernel-async-public-api`). When PR #26 squash-merged into
`main` (commit `f4a18ba`), PR #27's base was not re-pointed to `main`,
so merging PR #27 landed its content on the now-stale
`msrathore/kernel-async-public-api` branch (merge commit `b73a688`)
rather than on `main`. Result: the napi-skeleton content is not on
`main` despite #27 being marked as merged.
## What this PR does
Cherry-picks the squash commit from #27 (`b73a688`) onto a fresh branch
from current `main`. Content is identical to what #27 should have landed
— same 12 files, same `+3771 / -2` line counts.
## Review history
All review approval is on #27; this PR carries the identical diff.
Re-review is not required but pre-commit gate has been verified:
- `cargo fmt --all -- --check` — clean
- `cargo clippy --all-targets --locked -- -D warnings` — clean
- `cargo test --locked` — 14 / 14 pass
- `cargo build --release --locked` — clean
## Stack context
This is the second of an 8-PR kernel stack (PR #26 was the first;
#25/#29/#28/#30/#24/#23 follow). Each subsequent PR's base will need to
be updated to point at this PR's branch
(`msrathore/kernel-napi-skeleton-to-main`) once it merges to main,
mirroring the same re-target pattern.
## Files
- `.github/workflows/napi-checks.yml` — CI workflow for the napi crate
(fmt + clippy + test + release-build with `--locked`)
- `Cargo.toml` — root workspace tweak so the napi sub-crate's
standalone-workspace pattern works
- `napi/.gitignore`, `napi/Cargo.toml`, `napi/Cargo.lock`,
`napi/build.rs`, `napi/package.json` — crate manifest + napi-rs build
glue
- `napi/src/lib.rs` — crate root, `version()` napi export
- `napi/src/error.rs` — kernel `Error` → napi `Error` envelope mapper +
pyo3 field-parity guards
- `napi/src/util.rs` — `guarded()` panic-catching wrapper + `panic =
"abort"` compile-time guard
- `napi/src/runtime.rs` — captured tokio `Handle` accessor + PERF NOTE +
async-cleanup-hook TODO for PR #25
- `napi/src/logger.rs` — Round-3 logger bridge stub with inline design
sketch
Signed-off-by: Madhavendra Rathore <madhavendra.rathore@databricks.com>
1 parent f4a18ba commit 1f512ff
12 files changed
Lines changed: 3771 additions & 2 deletions
File tree
- .github/workflows
- napi
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
139 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
140 | 146 | | |
141 | 147 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments