Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ jobs:
npx napi build --no-const-enum --platform --release --target x86_64-pc-windows-msvc --features test-hooks -o dist
npm run build:entrypoints --silent
node scripts\verify-runtime-artifact.mjs dist --test-hooks
npm run test:native-classes:hooks
- name: Stage test-hooks artifact
shell: pwsh
run: |
Expand Down
53 changes: 15 additions & 38 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 13 additions & 2 deletions bindings/js/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[package]
authors = ["Microsoft"]
edition = "2021"
rust-version = "1.88"
name = "jswinrt_rs"
version = "0.1.0"
license = "MIT"
Expand All @@ -15,8 +16,8 @@ crate-type = ["cdylib"]
test-hooks = ["dynwinrt/test-hooks", "windows/Win32_System_Wmi", "windows/Win32_Media_DeviceManager", "windows/Win32_Media_Audio_Endpoints", "windows/Win32_UI_Shell_PropertiesSystem", "windows/ApplicationModel_Background"]

[dependencies]
napi = { version = "3", features = ["napi7"] }
napi-derive = "3.0.0"
napi = { version = "=3.12.0", features = ["napi8"] }
napi-derive = "=3.6.1"
dynwinrt = { path = "../../crates/dynwinrt" }
windows-future = "0.3.2"
windows-string = "0.0.0"
Expand Down Expand Up @@ -63,6 +64,16 @@ features = [
[build-dependencies]
cc = "1"
napi-build = "2"
# Keep class conversion glue paired with the pinned runtime.
napi-derive-backend = "=6.1.0"
sha2 = "0.10"

[dev-dependencies]
sha2 = "0.10"

[[test]]
name = "native-branding"
path = "build_support/native_branding.rs"

[profile.release]
lto = true
Expand Down
4 changes: 4 additions & 0 deletions bindings/js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,10 @@ Complete native struct collection support is tracked in

- **Windows 10 / 11** — x64 and arm64 native binaries shipped via `napi-rs` prebuilds
- **Node.js** ≥ 18 (Electron, plain Node, VS Code extensions, …)
- **Native class validation** uses N-API 8 type tags. Keep runtime facades from
the same installed package; native values from differently branded builds
are rejected rather than reinterpreted.
- **Building from source** requires Rust 1.88 or later.

## Links

Expand Down
Loading
Loading