[package]
edition = "2024"
rust-version = "1.85"
name = "ntalloc"
version = "0.1.0"
authors = ["Dmytro Maslo <krakenaut9@gmail.com>"]
build = false
include = [
"src/**",
"tests/**",
"Cargo.toml",
"README.md",
"CHANGELOG.md",
"LICENSE*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Windows kernel pool allocator (ExAllocatePool2) for no_std Rust drivers."
documentation = "https://docs.rs/ntalloc"
readme = "README.md"
keywords = [
"allocator",
"kernel",
"windows",
"driver",
"pool",
]
categories = [
"no-std",
"os::windows-apis",
"memory-management",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/krakenaut9/ntalloc"
[package.metadata.docs.rs]
features = [
"allocator-api",
"allocator-api-markers",
]
targets = ["x86_64-pc-windows-msvc"]
[features]
allocator-api = []
allocator-api-markers = ["allocator-api"]
usermode-backend = [
"dep:allocator-api2",
"dep:hashbrown",
]
[lib]
name = "ntalloc"
path = "src/lib.rs"
[[test]]
name = "api"
path = "tests/api.rs"
[[test]]
name = "global_allocator"
path = "tests/global_allocator.rs"
harness = false
[dependencies.allocator-api2]
version = "0.2.21"
features = ["std"]
optional = true
default-features = false
[dependencies.hashbrown]
version = "0.17"
features = ["allocator-api2"]
optional = true
default-features = false
[dependencies.windows-sys]
version = "0.61"
features = ["Wdk_System_SystemServices"]
[dev-dependencies.allocator-api2]
version = "0.2.21"
features = ["std"]
default-features = false
[dev-dependencies.hashbrown]
version = "0.17"
features = ["allocator-api2"]
default-features = false
[lints.clippy]
undocumented_unsafe_blocks = "warn"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1