feat(cli): brand new cli tool with both cli and programmatical usage ()

BREAKING CHANGE: requires node >= 16 and some cli options have been renamed
This commit is contained in:
forehal 2023-04-06 11:04:53 +08:00
parent 7c4dc2a2bd
commit a781a4f27e
194 changed files with 8805 additions and 4158 deletions
crates
build/src
napi

View file

@ -3,6 +3,7 @@ mod macos;
pub fn setup() {
println!("cargo:rerun-if-env-changed=DEBUG_GENERATED_CODE");
println!("cargo:rerun-if-env-changed=TYPE_DEF_TMP_PATH");
match std::env::var("CARGO_CFG_TARGET_OS").as_deref() {
Ok("macos") => {
macos::setup();

View file

@ -10,6 +10,9 @@ repository = "https://github.com/napi-rs/napi-rs"
rust-version = "1.57"
version = "2.12.2"
[lib]
doctest = false
[package.metadata.docs.rs]
all-features = true