diff --git a/Cargo.toml b/Cargo.toml index 7610faa7..cb7caacf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,9 +1,9 @@ [workspace] +exclude = ["./test_module", "./bench"] members = [ "./build", "./napi", "./napi-derive", "./napi-derive-example", - "./sys" + "./sys", ] -exclude = ["./test_module", "./bench"] diff --git a/bench/Cargo.toml b/bench/Cargo.toml index 8392f495..49b36641 100644 --- a/bench/Cargo.toml +++ b/bench/Cargo.toml @@ -1,25 +1,25 @@ [package] -name = "bench" -version = "0.1.0" authors = ["LongYinan "] edition = "2018" +name = "napi-bench" +version = "0.1.0" [lib] crate-type = ["cdylib"] [dependencies] futures = "0.3" -napi = { path = "../napi", features = ["libuv", "tokio_rt", "serde-json", "latin1"] } -napi-derive = { path = "../napi-derive" } +napi = {path = "../napi", features = ["libuv", "tokio_rt", "serde-json", "latin1"]} +napi-derive = {path = "../napi-derive"} serde = "1" serde_bytes = "0.11" serde_derive = "1" serde_json = "1" -tokio = { version = "0.2", features = ["default", "fs"]} +tokio = {version = "0.2", features = ["default", "fs"]} [build-dependencies] -napi-build = { path = "../build" } +napi-build = {path = "../build"} [profile.release] -opt-level = 3 lto = true +opt-level = 3 diff --git a/napi-derive-example/Cargo.toml b/napi-derive-example/Cargo.toml index ffb64382..cb789b9f 100644 --- a/napi-derive-example/Cargo.toml +++ b/napi-derive-example/Cargo.toml @@ -1,15 +1,15 @@ [package] -name = "napi-derive-example" -version = "0.1.0" authors = ["LongYinan "] edition = "2018" +name = "napi-derive-example" +version = "0.1.0" [lib] crate-type = ["cdylib"] [dependencies] -napi = { path = "../napi" } -napi-derive = { path = "../napi-derive" } +napi = {path = "../napi"} +napi-derive = {path = "../napi-derive"} [build-dependencies] -napi-build = { path = "../build" } +napi-build = {path = "../build"} diff --git a/napi-derive/Cargo.toml b/napi-derive/Cargo.toml index 2d351804..d6ff867f 100644 --- a/napi-derive/Cargo.toml +++ b/napi-derive/Cargo.toml @@ -1,18 +1,18 @@ [package] -name = "napi-derive" -version = "0.5.1" authors = ["LongYinan "] -edition = "2018" description = "N-API procedural macros" +edition = "2018" +keywords = ["NodeJS", "FFI", "NAPI", "n-api"] +license = "MIT" +name = "napi-derive" readme = "README.md" repository = "https://github.com/napi-rs/napi-rs" -license = "MIT" -keywords = ["NodeJS", "FFI", "NAPI", "n-api"] +version = "0.5.1" [dependencies] -syn = { version = "1.0", features = ["fold", "full"] } -quote = "1.0" proc-macro2 = "1.0" +quote = "1.0" +syn = {version = "1.0", features = ["fold", "full"]} [lib] proc-macro = true diff --git a/napi/Cargo.toml b/napi/Cargo.toml index f7e17c2a..0b834b5b 100644 --- a/napi/Cargo.toml +++ b/napi/Cargo.toml @@ -1,51 +1,51 @@ [package] -name = "napi" -version = "0.5.1" authors = ["Nathan Sobo ", "Yinan Long "] -license = "MIT" description = "N-API bindings" +edition = "2018" +keywords = ["NodeJS", "FFI", "NAPI", "n-api"] +license = "MIT" +name = "napi" readme = "README.md" repository = "https://github.com/napi-rs/napi-rs" -keywords = ["NodeJS", "FFI", "NAPI", "n-api"] -edition = "2018" +version = "0.5.1" [features] -libuv = ["futures"] -tokio_rt = ["futures", "tokio", "once_cell"] -serde-json = ["serde", "serde_json"] latin1 = ["encoding_rs"] +libuv = ["futures"] +serde-json = ["serde", "serde_json"] +tokio_rt = ["futures", "tokio", "once_cell"] [dependencies] -napi-sys = { version = "0.4", path = "../sys" } +napi-sys = {version = "0.4", path = "../sys"} [dependencies.encoding_rs] -version = "0.8" optional = true +version = "0.8" [dependencies.futures] -version = "0.3" optional = true +version = "0.3" [dependencies.tokio] -version = "0.2" features = ["rt-core", "rt-threaded", "sync"] optional = true +version = "0.2" [dependencies.once_cell] -version = "1.4" optional = true +version = "1.4" [dependencies.serde] -version = "1" optional = true +version = "1" [dependencies.serde_json] -version = "1" optional = true +version = "1" [build-dependencies] -napi-build = { version = "0.2", path = "../build" } +napi-build = {version = "0.2", path = "../build"} [package.metadata.docs.rs] -rustc-args = ["--cfg", "napidocsrs"] all-features = true +rustc-args = ["--cfg", "napidocsrs"] diff --git a/test_module/Cargo.toml b/test_module/Cargo.toml index 13486db3..7ba133c8 100644 --- a/test_module/Cargo.toml +++ b/test_module/Cargo.toml @@ -1,21 +1,21 @@ [package] -name = "test-module" -version = "0.1.0" authors = ["LongYinan "] edition = "2018" +name = "napi-test-module" +version = "0.1.0" [lib] crate-type = ["cdylib"] [dependencies] futures = "0.3" -napi = { path = "../napi", features = ["libuv", "tokio_rt", "serde-json", "latin1"] } -napi-derive = { path = "../napi-derive" } +napi = {path = "../napi", features = ["libuv", "tokio_rt", "serde-json", "latin1"]} +napi-derive = {path = "../napi-derive"} serde = "1" serde_bytes = "0.11" serde_derive = "1" serde_json = "1" -tokio = { version = "0.2", features = ["default", "fs"]} +tokio = {version = "0.2", features = ["default", "fs"]} [build-dependencies] -napi-build = { path = "../build" } +napi-build = {path = "../build"}