neon 0.5.0

A safe abstraction layer for Node.js.
Documentation
[package]
name = "neon"
version = "0.5.0"
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"]
build = "build.rs"

[build-dependencies]
neon-build = { version = "=0.5.0", path = "crates/neon-build" }

[dev-dependencies]
lazy_static = "1.4.0"
rustversion = "0.1.4"
semver = "0.9"

[dependencies]
cslice = "0.2"
semver = "0.9.0"
neon-runtime = { version = "=0.5.0", path = "crates/neon-runtime" }

[target.'cfg(target_os = "windows")'.dependencies]
winapi = { version = "0.3.9", features = ["minwindef", "libloaderapi", "ntdef"] }

[features]
default = ["legacy-runtime"]

# Enable static tests. These can be fragile because of variations in Rust compiler
# error message formatting from version to version, so they're disabled by default.
enable-static-tests = []

# Enable the EventHandler API of RFC 25.
event-handler-api = []

# Enable the default panic hook. Useful for debugging neon itself.
default-panic-hook = []

# Feature flag to enable the legacy V8/NAN runtime. For now, this feature is
# enabled by default.
legacy-runtime = ["neon-runtime/neon-sys", "neon-build/neon-sys"]

# Feature flag to enable the experimental N-API runtime. For now, this feature
# is disabled by default.
napi-runtime = ["neon-runtime/nodejs-sys"]

# Feature flag to disable external dependencies on docs build
docs-only = ["neon-runtime/docs-only"]

# Feature flag to enable the try_catch API of RFC 29.
try-catch-api = []

[package.metadata.docs.rs]
features = ["docs-only", "event-handler-api", "try-catch-api"]

[workspace]
members = [
    "crates/neon-build",
    "crates/neon-runtime",
    "crates/neon-sys",
    "test/static",
    "test/electron/native",
    "test/dynamic/native",
    "test/napi/native"
]