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]
|
[workspace]
|
||||||
|
exclude = ["./test_module", "./bench"]
|
||||||
members = [
|
members = [
|
||||||
"./build",
|
"./build",
|
||||||
"./napi",
|
"./napi",
|
||||||
"./napi-derive",
|
"./napi-derive",
|
||||||
"./napi-derive-example",
|
"./napi-derive-example",
|
||||||
"./sys"
|
"./sys",
|
||||||
]
|
]
|
||||||
exclude = ["./test_module", "./bench"]
|
|
||||||
|
|
|
@ -1,25 +1,25 @@
|
||||||
[package]
|
[package]
|
||||||
name = "bench"
|
|
||||||
version = "0.1.0"
|
|
||||||
authors = ["LongYinan <lynweklm@gmail.com>"]
|
authors = ["LongYinan <lynweklm@gmail.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
name = "napi-bench"
|
||||||
|
version = "0.1.0"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
crate-type = ["cdylib"]
|
crate-type = ["cdylib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
napi = { path = "../napi", features = ["libuv", "tokio_rt", "serde-json", "latin1"] }
|
napi = {path = "../napi", features = ["libuv", "tokio_rt", "serde-json", "latin1"]}
|
||||||
napi-derive = { path = "../napi-derive" }
|
napi-derive = {path = "../napi-derive"}
|
||||||
serde = "1"
|
serde = "1"
|
||||||
serde_bytes = "0.11"
|
serde_bytes = "0.11"
|
||||||
serde_derive = "1"
|
serde_derive = "1"
|
||||||
serde_json = "1"
|
serde_json = "1"
|
||||||
tokio = { version = "0.2", features = ["default", "fs"]}
|
tokio = {version = "0.2", features = ["default", "fs"]}
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
napi-build = { path = "../build" }
|
napi-build = {path = "../build"}
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
opt-level = 3
|
|
||||||
lto = true
|
lto = true
|
||||||
|
opt-level = 3
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
[package]
|
[package]
|
||||||
name = "napi-derive-example"
|
|
||||||
version = "0.1.0"
|
|
||||||
authors = ["LongYinan <lynweklm@gmail.com>"]
|
authors = ["LongYinan <lynweklm@gmail.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
name = "napi-derive-example"
|
||||||
|
version = "0.1.0"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
crate-type = ["cdylib"]
|
crate-type = ["cdylib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
napi = { path = "../napi" }
|
napi = {path = "../napi"}
|
||||||
napi-derive = { path = "../napi-derive" }
|
napi-derive = {path = "../napi-derive"}
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
napi-build = { path = "../build" }
|
napi-build = {path = "../build"}
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
[package]
|
[package]
|
||||||
name = "napi-derive"
|
|
||||||
version = "0.5.1"
|
|
||||||
authors = ["LongYinan <lynweklm@gmail.com>"]
|
authors = ["LongYinan <lynweklm@gmail.com>"]
|
||||||
edition = "2018"
|
|
||||||
description = "N-API procedural macros"
|
description = "N-API procedural macros"
|
||||||
|
edition = "2018"
|
||||||
|
keywords = ["NodeJS", "FFI", "NAPI", "n-api"]
|
||||||
|
license = "MIT"
|
||||||
|
name = "napi-derive"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
repository = "https://github.com/napi-rs/napi-rs"
|
repository = "https://github.com/napi-rs/napi-rs"
|
||||||
license = "MIT"
|
version = "0.5.1"
|
||||||
keywords = ["NodeJS", "FFI", "NAPI", "n-api"]
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
syn = { version = "1.0", features = ["fold", "full"] }
|
|
||||||
quote = "1.0"
|
|
||||||
proc-macro2 = "1.0"
|
proc-macro2 = "1.0"
|
||||||
|
quote = "1.0"
|
||||||
|
syn = {version = "1.0", features = ["fold", "full"]}
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
proc-macro = true
|
proc-macro = true
|
||||||
|
|
|
@ -1,51 +1,51 @@
|
||||||
[package]
|
[package]
|
||||||
name = "napi"
|
|
||||||
version = "0.5.1"
|
|
||||||
authors = ["Nathan Sobo <nathan@github.com>", "Yinan Long <lynweklm@gmail.com>"]
|
authors = ["Nathan Sobo <nathan@github.com>", "Yinan Long <lynweklm@gmail.com>"]
|
||||||
license = "MIT"
|
|
||||||
description = "N-API bindings"
|
description = "N-API bindings"
|
||||||
|
edition = "2018"
|
||||||
|
keywords = ["NodeJS", "FFI", "NAPI", "n-api"]
|
||||||
|
license = "MIT"
|
||||||
|
name = "napi"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
repository = "https://github.com/napi-rs/napi-rs"
|
repository = "https://github.com/napi-rs/napi-rs"
|
||||||
keywords = ["NodeJS", "FFI", "NAPI", "n-api"]
|
version = "0.5.1"
|
||||||
edition = "2018"
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
libuv = ["futures"]
|
|
||||||
tokio_rt = ["futures", "tokio", "once_cell"]
|
|
||||||
serde-json = ["serde", "serde_json"]
|
|
||||||
latin1 = ["encoding_rs"]
|
latin1 = ["encoding_rs"]
|
||||||
|
libuv = ["futures"]
|
||||||
|
serde-json = ["serde", "serde_json"]
|
||||||
|
tokio_rt = ["futures", "tokio", "once_cell"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
napi-sys = { version = "0.4", path = "../sys" }
|
napi-sys = {version = "0.4", path = "../sys"}
|
||||||
|
|
||||||
[dependencies.encoding_rs]
|
[dependencies.encoding_rs]
|
||||||
version = "0.8"
|
|
||||||
optional = true
|
optional = true
|
||||||
|
version = "0.8"
|
||||||
|
|
||||||
[dependencies.futures]
|
[dependencies.futures]
|
||||||
version = "0.3"
|
|
||||||
optional = true
|
optional = true
|
||||||
|
version = "0.3"
|
||||||
|
|
||||||
[dependencies.tokio]
|
[dependencies.tokio]
|
||||||
version = "0.2"
|
|
||||||
features = ["rt-core", "rt-threaded", "sync"]
|
features = ["rt-core", "rt-threaded", "sync"]
|
||||||
optional = true
|
optional = true
|
||||||
|
version = "0.2"
|
||||||
|
|
||||||
[dependencies.once_cell]
|
[dependencies.once_cell]
|
||||||
version = "1.4"
|
|
||||||
optional = true
|
optional = true
|
||||||
|
version = "1.4"
|
||||||
|
|
||||||
[dependencies.serde]
|
[dependencies.serde]
|
||||||
version = "1"
|
|
||||||
optional = true
|
optional = true
|
||||||
|
version = "1"
|
||||||
|
|
||||||
[dependencies.serde_json]
|
[dependencies.serde_json]
|
||||||
version = "1"
|
|
||||||
optional = true
|
optional = true
|
||||||
|
version = "1"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
napi-build = { version = "0.2", path = "../build" }
|
napi-build = {version = "0.2", path = "../build"}
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
rustc-args = ["--cfg", "napidocsrs"]
|
|
||||||
all-features = true
|
all-features = true
|
||||||
|
rustc-args = ["--cfg", "napidocsrs"]
|
||||||
|
|
|
@ -1,21 +1,21 @@
|
||||||
[package]
|
[package]
|
||||||
name = "test-module"
|
|
||||||
version = "0.1.0"
|
|
||||||
authors = ["LongYinan <lynweklm@gmail.com>"]
|
authors = ["LongYinan <lynweklm@gmail.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
name = "napi-test-module"
|
||||||
|
version = "0.1.0"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
crate-type = ["cdylib"]
|
crate-type = ["cdylib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
napi = { path = "../napi", features = ["libuv", "tokio_rt", "serde-json", "latin1"] }
|
napi = {path = "../napi", features = ["libuv", "tokio_rt", "serde-json", "latin1"]}
|
||||||
napi-derive = { path = "../napi-derive" }
|
napi-derive = {path = "../napi-derive"}
|
||||||
serde = "1"
|
serde = "1"
|
||||||
serde_bytes = "0.11"
|
serde_bytes = "0.11"
|
||||||
serde_derive = "1"
|
serde_derive = "1"
|
||||||
serde_json = "1"
|
serde_json = "1"
|
||||||
tokio = { version = "0.2", features = ["default", "fs"]}
|
tokio = {version = "0.2", features = ["default", "fs"]}
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
napi-build = { path = "../build" }
|
napi-build = {path = "../build"}
|
||||||
|
|
Loading…
Reference in a new issue