[package]
edition = "2021"
rust-version = "1.74"
name = "alloc-madvise"
version = "0.6.0"
authors = ["Markus Mayer <widemeadows@gmail.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A memory allocator for creating large aligned chunks of memory"
homepage = "https://github.com/sunsided/rust-aligned-allocations"
readme = "README.md"
keywords = [
"malloc",
"madvise",
"memory",
]
categories = ["memory-management"]
license = "EUPL-1.2"
repository = "https://github.com/sunsided/rust-aligned-allocations"
[features]
default = ["ffi"]
ffi = ["dep:cbindgen"]
[lib]
name = "alloc_madvise"
crate-type = [
"cdylib",
"rlib",
"staticlib",
]
path = "src/lib.rs"
[dependencies.libc]
version = "0.2.186"
[build-dependencies.cbindgen]
version = "0.29.2"
optional = true
[profile.release]
lto = "fat"
codegen-units = 1
strip = "symbols"