Skip to content

Commit

Permalink
chore(rust): napi v2
Browse files Browse the repository at this point in the history
  • Loading branch information
wmertens authored and shairez committed Aug 1, 2024
1 parent 5250dc5 commit b3925d5
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 14 deletions.
87 changes: 76 additions & 11 deletions Cargo.lock

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

9 changes: 6 additions & 3 deletions packages/qwik/src/napi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ edition = "2021"
crate-type = ["cdylib"]

[dependencies]
napi = { version = "1", features = ["serde-json"] }
napi-derive = "1"
napi = { version = "2", features = ["serde-json"] }
napi-derive = "2"
qwik-core = { path = "../optimizer/core", features = ["fs", "parallel"] }

[target.'cfg(windows)'.dependencies]
mimalloc = { version = "0.1.25", default-features = false }

[build-dependencies]
napi-build = { version = "1" }
napi-build = { version = "2" }

[profile.release]
lto = true

0 comments on commit b3925d5

Please sign in to comment.