chore (backend-rs): update build script
This commit is contained in:
parent
8fd3f82d0b
commit
64088819be
2 changed files with 3 additions and 4 deletions
|
@ -6,7 +6,7 @@ rust-version = "1.74"
|
|||
|
||||
[features]
|
||||
default = []
|
||||
napi = ["dep:napi", "dep:napi-derive"]
|
||||
napi = ["dep:napi", "dep:napi-derive", "dep:napi-build"]
|
||||
|
||||
[lib]
|
||||
crate-type = ["cdylib", "lib"]
|
||||
|
@ -53,4 +53,4 @@ pretty_assertions = { workspace = true, features = ["std"] }
|
|||
tokio-test = { workspace = true }
|
||||
|
||||
[build-dependencies]
|
||||
napi-build = { workspace = true }
|
||||
napi-build = { workspace = true, optional = true }
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
extern crate napi_build;
|
||||
|
||||
fn main() {
|
||||
// watch the version in the project root package.json
|
||||
println!("cargo:rerun-if-changed=../../package.json");
|
||||
|
||||
// napi
|
||||
#[cfg(feature = "napi")]
|
||||
napi_build::setup();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue