chore: make all crates indepent

This commit is contained in:
LongYinan 2021-10-31 23:35:39 +08:00
parent af86f6f7a4
commit 157b9c6186
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7
5 changed files with 17 additions and 2 deletions

View file

@ -25,3 +25,6 @@ version = "1"
[dependencies.once_cell] [dependencies.once_cell]
optional = true optional = true
version = "1" version = "1"
[package.metadata.workspaces]
independent = true

View file

@ -9,3 +9,6 @@ name = "napi-build"
readme = "README.md" readme = "README.md"
repository = "https://github.com/napi-rs/napi-rs" repository = "https://github.com/napi-rs/napi-rs"
version = "1.1.0" version = "1.1.0"
[package.metadata.workspaces]
independent = true

View file

@ -25,3 +25,6 @@ syn = {version = "1.0", features = ["fold", "full", "extra-traits"]}
[lib] [lib]
proc-macro = true proc-macro = true
[package.metadata.workspaces]
independent = true

View file

@ -10,8 +10,10 @@ repository = "https://github.com/napi-rs/napi-rs"
version = "2.0.0-alpha.0" version = "2.0.0-alpha.0"
[features] [features]
async = ["tokio_rt"]
compat-mode = [] compat-mode = []
default = ["napi3", "compat-mode"] # for most Node.js users default = ["napi3", "compat-mode"] # for most Node.js users
full = ["latin1", "napi8", "async", "serde-json"]
latin1 = ["encoding_rs"] latin1 = ["encoding_rs"]
napi1 = [] napi1 = []
napi2 = ["napi1"] napi2 = ["napi1"]
@ -23,8 +25,6 @@ napi7 = ["napi6", "napi-sys/napi7"]
napi8 = ["napi7", "napi-sys/napi8"] napi8 = ["napi7", "napi-sys/napi8"]
serde-json = ["serde", "serde_json"] serde-json = ["serde", "serde_json"]
tokio_rt = ["tokio", "once_cell", "napi4"] tokio_rt = ["tokio", "once_cell", "napi4"]
async = ["tokio_rt"]
full = ["latin1", "napi8", "async", "serde-json"]
[dependencies] [dependencies]
ctor = "0.1" ctor = "0.1"
@ -56,3 +56,6 @@ version = "1"
[package.metadata.docs.rs] [package.metadata.docs.rs]
all-features = true all-features = true
[package.metadata.workspaces]
independent = true

View file

@ -19,3 +19,6 @@ napi5 = ["napi4"]
napi6 = ["napi5"] napi6 = ["napi5"]
napi7 = ["napi6"] napi7 = ["napi6"]
napi8 = ["napi7"] napi8 = ["napi7"]
[package.metadata.workspaces]
independent = true