style: format toml files
This commit is contained in:
parent
3e332df89c
commit
276fc45603
6 changed files with 44 additions and 44 deletions
|
@ -1,9 +1,9 @@
|
|||
[workspace]
|
||||
exclude = ["./test_module", "./bench"]
|
||||
members = [
|
||||
"./build",
|
||||
"./napi",
|
||||
"./napi-derive",
|
||||
"./napi-derive-example",
|
||||
"./sys"
|
||||
"./sys",
|
||||
]
|
||||
exclude = ["./test_module", "./bench"]
|
||||
|
|
|
@ -1,25 +1,25 @@
|
|||
[package]
|
||||
name = "bench"
|
||||
version = "0.1.0"
|
||||
authors = ["LongYinan <lynweklm@gmail.com>"]
|
||||
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
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
[package]
|
||||
name = "napi-derive-example"
|
||||
version = "0.1.0"
|
||||
authors = ["LongYinan <lynweklm@gmail.com>"]
|
||||
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"}
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
[package]
|
||||
name = "napi-derive"
|
||||
version = "0.5.1"
|
||||
authors = ["LongYinan <lynweklm@gmail.com>"]
|
||||
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
|
||||
|
|
|
@ -1,51 +1,51 @@
|
|||
[package]
|
||||
name = "napi"
|
||||
version = "0.5.1"
|
||||
authors = ["Nathan Sobo <nathan@github.com>", "Yinan Long <lynweklm@gmail.com>"]
|
||||
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"]
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
[package]
|
||||
name = "test-module"
|
||||
version = "0.1.0"
|
||||
authors = ["LongYinan <lynweklm@gmail.com>"]
|
||||
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"}
|
||||
|
|
Loading…
Reference in a new issue