style: format toml files

This commit is contained in:
LongYinan 2020-10-11 21:36:14 +08:00
parent 3e332df89c
commit 276fc45603
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7
6 changed files with 44 additions and 44 deletions

View file

@ -1,9 +1,9 @@
[workspace]
exclude = ["./test_module", "./bench"]
members = [
"./build",
"./napi",
"./napi-derive",
"./napi-derive-example",
"./sys"
"./sys",
]
exclude = ["./test_module", "./bench"]

View file

@ -1,8 +1,8 @@
[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"]
@ -21,5 +21,5 @@ tokio = { version = "0.2", features = ["default", "fs"]}
napi-build = {path = "../build"}
[profile.release]
opt-level = 3
lto = true
opt-level = 3

View file

@ -1,8 +1,8 @@
[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"]

View file

@ -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

View file

@ -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"}
[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"}
[package.metadata.docs.rs]
rustc-args = ["--cfg", "napidocsrs"]
all-features = true
rustc-args = ["--cfg", "napidocsrs"]

View file

@ -1,8 +1,8 @@
[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"]