[[bench]]
harness = false
name = "allocators"
path = "benches/allocators.rs"
required-features = ["libc"]
[[bench]]
harness = false
name = "boxed_slices"
path = "benches/boxed_slices.rs"
[[bench]]
harness = false
name = "dynptr"
path = "benches/dynptr.rs"
[[bench]]
harness = false
name = "enums"
path = "benches/enums.rs"
[dependencies.libloading]
optional = true
version = ">=0.7.3, <0.9"
[dependencies.rustversion]
version = "<2"
[dependencies.stabby-abi]
default-features = false
version = "36.2.2"
[dev-dependencies.criterion]
version = "0.5.1"
[dev-dependencies.rand]
version = "0.8"
[dev-dependencies.smol]
version = ">=1, <3"
[dev-dependencies.stabby-abi]
default-features = false
features = ["test"]
version = "36.2.2"
[features]
alloc-rs = ["stabby-abi/alloc-rs"]
default = ["std"]
experimental-ctypes = ["stabby-abi/experimental-ctypes"]
libc = ["stabby-abi/libc"]
libloading = ["dep:libloading", "std"]
serde = ["stabby-abi/serde"]
std = ["stabby-abi/std", "alloc-rs"]
[lib]
name = "stabby"
path = "src/lib.rs"
[lints.clippy]
needless_lifetimes = "allow"
unnecessary_map_or = "allow"
[package]
authors = ["Pierre Avital <pierre.avital@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = "build.rs"
categories = ["development-tools::ffi", "no-std::no-alloc"]
description = "A Stable ABI for Rust with compact sum-types."
edition = "2021"
license = " EPL-2.0 OR Apache-2.0"
name = "stabby"
readme = "README.md"
repository = "https://github.com/ZettaScaleLabs/stabby"
version = "36.2.2"
[package.metadata.docs.rs]
all-features = true
rustc-args = ["--cfg", "docsrs"]