[package]
edition = "2024"
rust-version = "1.85"
name = "nject"
version = "0.5.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Zero cost dependency injection module"
homepage = "https://github.com/nicolascotton/nject"
readme = "README.md"
keywords = [
"dependency",
"injection",
"dependency-injection",
"ioc",
]
license = "MIT"
repository = "https://github.com/nicolascotton/nject"
resolver = "2"
[features]
default = ["macro"]
macro = ["dep:nject-macro"]
[lib]
name = "nject"
path = "src/lib.rs"
[[example]]
name = "init"
path = "examples/init.rs"
[[test]]
name = "common"
path = "tests/common.rs"
[[test]]
name = "init"
path = "tests/init.rs"
[[test]]
name = "iterable"
path = "tests/iterable.rs"
[[test]]
name = "module"
path = "tests/module.rs"
[[test]]
name = "module_nested"
path = "tests/module_nested.rs"
[[test]]
name = "scope"
path = "tests/scope.rs"
[[test]]
name = "stateful_provider"
path = "tests/stateful_provider.rs"
[[test]]
name = "stateless_provider"
path = "tests/stateless_provider.rs"
[dependencies.nject-macro]
version = "0.5.0"
optional = true