[package]
name = "neon"
version = "0.10.1"
authors = ["Dave Herman <david.herman@gmail.com>"]
description = "A safe abstraction layer for Node.js."
readme = "README.md"
homepage = "https://www.neon-bindings.com"
repository = "https://github.com/neon-bindings/neon"
license = "MIT/Apache-2.0"
exclude = ["neon.jpg", "doc/**/*"]
build = "build.rs"
edition = "2018"
[build-dependencies]
neon-build = { version = "=0.10.1", path = "crates/neon-build" }
[dev-dependencies]
lazy_static = "1.4.0"
rustversion = "0.1.4"
semver = "0.9"
psd = "0.1.9"
failure = "0.1.5"
[dependencies]
semver = "0.9.0"
smallvec = "1.4.2"
neon-runtime = { version = "=0.10.1", path = "crates/neon-runtime" }
neon-macros = { version = "=0.10.1", path = "crates/neon-macros", optional = true }
[features]
default = ["legacy-runtime"]
enable-static-tests = []
event-handler-api = []
default-panic-hook = []
legacy-runtime = ["neon-runtime/neon-sys", "neon-build/neon-sys"]
napi-runtime = ["napi-6"]
napi-1 = ["proc-macros", "neon-macros/napi", "neon-runtime/napi"]
napi-2 = ["napi-1", "neon-runtime/napi-2"]
napi-3 = ["napi-2", "neon-runtime/napi-3"]
napi-4 = ["napi-3", "neon-runtime/napi-4"]
napi-5 = ["napi-4", "neon-runtime/napi-5"]
napi-6 = ["napi-5", "neon-runtime/napi-6"]
napi-latest = ["napi-6"]
napi-experimental = ["napi-6", "neon-runtime/napi-experimental"]
docs-only = ["neon-runtime/docs-only"]
try-catch-api = []
channel-api = []
event-queue-api = ["channel-api"]
proc-macros = ["neon-macros"]
promise-api = []
task-api = []
[package.metadata.docs.rs]
no-default-features = true
rustdoc-args = ["--cfg", "docsrs"]
features = [
"channel-api",
"napi-experimental",
"proc-macros",
"try-catch-api",
"promise-api",
"task-api",
]
[workspace]
members = [
"crates/neon-build",
"crates/neon-macros",
"crates/neon-runtime",
"crates/neon-sys",
"test/static",
"test/electron",
"test/dynamic/native",
"test/napi"
]