mirror of
https://github.com/napi-rs/napi-rs.git
synced 2025-12-08 19:56:07 +00:00
fix(napi-derive): wrong dependency condition (#1980)
This commit is contained in:
parent
8ca1967bd8
commit
117e4ce153
@ -15,10 +15,11 @@ independent = true
|
||||
[features]
|
||||
noop = []
|
||||
strict = []
|
||||
type-def = ["regex", "once_cell", "semver"]
|
||||
type-def = ["regex", "semver"]
|
||||
|
||||
[dependencies]
|
||||
convert_case = "0.6"
|
||||
once_cell = "1"
|
||||
proc-macro2 = "1"
|
||||
quote = "1"
|
||||
syn = { version = "2", features = ["fold", "full", "extra-traits"] }
|
||||
@ -27,10 +28,6 @@ syn = { version = "2", features = ["fold", "full", "extra-traits"] }
|
||||
optional = true
|
||||
version = "1"
|
||||
|
||||
[dependencies.once_cell]
|
||||
optional = true
|
||||
version = "1"
|
||||
|
||||
[dependencies.semver]
|
||||
optional = true
|
||||
version = "1"
|
||||
|
||||
@ -41,7 +41,7 @@ import('../index.js')
|
||||
break
|
||||
case 'constructor':
|
||||
let ellie
|
||||
for (let i = 0; i < (isWasiTest ? 10 : 10000); i++) {
|
||||
for (let i = 0; i < (isWasiTest ? 10 : 1000); i++) {
|
||||
ellie = new native.Animal(native.Kind.Cat, 'Ellie')
|
||||
}
|
||||
parentPort.postMessage(ellie.name)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user