[package]
edition = "2024"
rust-version = "1.86.0"
name = "frozen-core"
version = "0.0.27"
build = false
exclude = [
".github/",
"shell.nix",
"SECURITY.md",
"CONTRIBUTING.md",
"CODE_OF_CONDUCT.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Custom implementations and core utilities for frozen-lab crates"
readme = "README.md"
keywords = [
"frozen-lab",
"frozen-core",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/frozen-lab/frozen-core"
[features]
ack = [
"error",
"hints",
"futures",
"event-listener",
]
bufpool = [
"error",
"hints",
]
crc32 = []
default = [
"ack",
"error",
"hints",
"mpscq",
"crc32",
"bufpool",
"ffile",
"fmmap",
"wpipe",
]
error = []
ffile = [
"libc",
"error",
"hints",
]
fmmap = [
"ack",
"libc",
"error",
"hints",
"ffile",
]
hints = []
mpscq = []
wpipe = [
"ack",
"error",
"ffile",
"mpscq",
"bufpool",
]
[lib]
name = "frozen_core"
path = "src/lib.rs"
[[bench]]
name = "bufpool"
path = "benches/bufpool.rs"
harness = false
required-features = ["bufpool"]
[[bench]]
name = "crc32"
path = "benches/crc32.rs"
harness = false
required-features = ["crc32"]
[[bench]]
name = "mpscq"
path = "benches/mpscq.rs"
harness = false
required-features = ["mpscq"]
[[bench]]
name = "wpipe"
path = "benches/wpipe.rs"
harness = false
required-features = ["wpipe"]
[dependencies.event-listener]
version = "5.4.1"
optional = true
[dependencies.futures]
version = "0.3.32"
optional = true
[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]
[dev-dependencies.hdrhistogram]
version = "7.5.4"
[dev-dependencies.tempfile]
version = "3.20.0"
[target."cfg(unix)".dependencies.libc]
version = "0.2.178"
optional = true
[target."cfg(unix)".dev-dependencies.libc]
version = "0.2.178"
[profile.bench]
inherits = "release"
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
incremental = false