[[bench]]
harness = false
name = "allocation_speed"
path = "benches/allocation_speed.rs"
[[bench]]
harness = false
name = "comparison"
path = "benches/comparison.rs"
[[bench]]
harness = false
name = "deallocation_speed"
path = "benches/deallocation_speed.rs"
[[bench]]
harness = false
name = "fragmentation"
path = "benches/fragmentation.rs"
[[bench]]
harness = false
name = "multithreaded"
path = "benches/multithreaded.rs"
[[bench]]
harness = false
name = "real_world"
path = "benches/real_world.rs"
[[bin]]
name = "fastalloc"
path = "src/main.rs"
[dependencies.crossbeam]
optional = true
version = "0.8"
[dependencies.dep-insight]
version = "0.3.0"
[dependencies.parking_lot]
optional = true
version = "0.12"
[dependencies.serde]
default-features = false
features = ["derive", "alloc"]
optional = true
version = "1.0"
[dependencies.serde_json]
default-features = false
features = ["alloc"]
optional = true
version = "1.0"
[dependencies.tracing]
default-features = false
optional = true
version = "0.1"
[dev-dependencies.criterion]
features = ["html_reports"]
version = "0.5"
[dev-dependencies.tokio]
features = ["rt-multi-thread", "macros", "time"]
version = "1.35"
[[example]]
name = "async_usage"
path = "examples/async_usage.rs"
[[example]]
name = "basic_usage"
path = "examples/basic_usage.rs"
[[example]]
name = "custom_initialization"
path = "examples/custom_initialization.rs"
[[example]]
name = "game_entities"
path = "examples/game_entities.rs"
[[example]]
name = "particle_system"
path = "examples/particle_system.rs"
[[example]]
name = "server_connections"
path = "examples/server_connections.rs"
[[example]]
name = "statistics"
path = "examples/statistics.rs"
[[example]]
name = "thread_local"
path = "examples/thread_local.rs"
[features]
crossbeam = ["std", "dep:crossbeam"]
default = ["std"]
lock-free = ["crossbeam"]
parking_lot = ["std", "dep:parking_lot"]
serde = ["dep:serde", "dep:serde_json"]
stats = []
std = []
tracing = ["dep:tracing"]
[lib]
name = "fastalloc"
path = "src/lib.rs"
[package]
authors = ["Eshan Roy <eshanized@proton.me>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["memory-management", "no-std", "data-structures", "embedded", "game-development"]
description = "Blazingly fast memory pooling library (50x faster than Box) with type-safe handles, zero-cost abstractions, no_std support, and multiple pool types for game engines, real-time systems, and high-performance servers"
documentation = "https://docs.rs/fastalloc"
edition = "2021"
homepage = "https://github.com/TIVerse/fastalloc"
keywords = ["memory", "pool", "allocator", "performance", "no_std"]
license = "MIT"
name = "fastalloc"
readme = "README.md"
repository = "https://github.com/TIVerse/fastalloc"
rust-version = "1.70.0"
version = "1.0.1"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[profile.bench]
codegen-units = 1
lto = true
opt-level = 3
[profile.release]
codegen-units = 1
lto = true
opt-level = 3
strip = true