[package]
edition = "2024"
rust-version = "1.93"
name = "multitude"
version = "0.5.1"
authors = ["The Oxidizer Project Authors"]
build = false
include = [
"/src/**",
"/examples/**",
"/benches/**",
"/tests/**",
"/docs/**/*.md",
"/Cargo.toml",
"/README.md",
"/LICENSE*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast and flexible arena allocator."
homepage = "https://github.com/microsoft/oxidizer"
readme = "README.md"
keywords = [
"arena",
"memory",
"allocator",
"bump",
]
categories = [
"memory-management",
"data-structures",
]
license = "MIT"
repository = "https://github.com/microsoft/oxidizer/tree/main/crates/multitude"
resolver = "2"
[package.metadata.cargo_check_external_types]
allowed_external_types = [
"allocator_api2::*",
"bytemuck::*",
"bytesbuf::*",
"hashbrown::*",
"ptr_meta::*",
"ptr_meta_derive::*",
"serde::*",
"serde_core::*",
"widestring::*",
"zerocopy::*",
]
[package.metadata.docs.rs]
rustdoc-args = [
"--cfg",
"docsrs",
]
all-features = true
[features]
bytemuck = [
"dep:bytemuck",
"dst",
]
bytes = ["dep:bytes"]
bytesbuf = [
"dep:bytesbuf",
"std",
]
default = ["std"]
dst = ["ptr_meta/derive"]
hashbrown = ["dep:hashbrown"]
serde = ["dep:serde"]
stats = []
std = []
utf16 = ["dep:widestring"]
zerocopy = [
"dep:zerocopy",
"dst",
]
[lib]
name = "multitude"
path = "src/lib.rs"
[[example]]
name = "alloc_ref"
path = "examples/alloc_ref.rs"
[[example]]
name = "custom_allocator"
path = "examples/custom_allocator.rs"
[[example]]
name = "multitude_basic"
path = "examples/multitude_basic.rs"
[[example]]
name = "strings"
path = "examples/strings.rs"
[[test]]
name = "alloc_ref"
path = "tests/alloc_ref.rs"
[[test]]
name = "alloc_tracking"
path = "tests/alloc_tracking.rs"
[[test]]
name = "arena"
path = "tests/arena.rs"
[[test]]
name = "arena_arc"
path = "tests/arena_arc.rs"
[[test]]
name = "arena_box"
path = "tests/arena_box.rs"
[[test]]
name = "arena_rc"
path = "tests/arena_rc.rs"
[[test]]
name = "arena_string"
path = "tests/arena_string.rs"
[[test]]
name = "arena_vec"
path = "tests/arena_vec.rs"
[[test]]
name = "audit_repro"
path = "tests/audit_repro.rs"
[[test]]
name = "bolero"
path = "tests/bolero.rs"
[[test]]
name = "bytemuck_integration"
path = "tests/bytemuck_integration.rs"
[[test]]
name = "bytes_integration"
path = "tests/bytes_integration.rs"
[[test]]
name = "bytesbuf_integration"
path = "tests/bytesbuf_integration.rs"
[[test]]
name = "cache_class_floor"
path = "tests/cache_class_floor.rs"
[[test]]
name = "chunk_footprint"
path = "tests/chunk_footprint.rs"
[[test]]
name = "drop_reentrancy"
path = "tests/drop_reentrancy.rs"
[[test]]
name = "dst"
path = "tests/dst.rs"
[[test]]
name = "hashbrown"
path = "tests/hashbrown.rs"
[[test]]
name = "loom"
path = "tests/loom.rs"
[[test]]
name = "pin_support"
path = "tests/pin_support.rs"
[[test]]
name = "send_sync"
path = "tests/send_sync.rs"
[[test]]
name = "serde"
path = "tests/serde.rs"
[[test]]
name = "std_alignment"
path = "tests/std_alignment.rs"
[[test]]
name = "try_and_uninit"
path = "tests/try_and_uninit.rs"
[[test]]
name = "utf16"
path = "tests/utf16.rs"
[[test]]
name = "variance_and_zst"
path = "tests/variance_and_zst.rs"
[[test]]
name = "zerocopy_integration"
path = "tests/zerocopy_integration.rs"
[[test]]
name = "zst_uninit_arc_fix"
path = "tests/zst_uninit_arc_fix.rs"
[[bench]]
name = "criterion_alloc"
path = "benches/criterion_alloc.rs"
harness = false
[[bench]]
name = "criterion_arc_array"
path = "benches/criterion_arc_array.rs"
harness = false
[[bench]]
name = "criterion_arena_vs_allocator"
path = "benches/criterion_arena_vs_allocator.rs"
harness = false
[[bench]]
name = "criterion_drop"
path = "benches/criterion_drop.rs"
harness = false
[[bench]]
name = "criterion_rc_array"
path = "benches/criterion_rc_array.rs"
harness = false
[[bench]]
name = "gungraun_alloc"
path = "benches/gungraun_alloc/main.rs"
harness = false
[[bench]]
name = "gungraun_arc_array"
path = "benches/gungraun_arc_array/main.rs"
harness = false
[[bench]]
name = "gungraun_drop"
path = "benches/gungraun_drop/main.rs"
harness = false
[[bench]]
name = "gungraun_rc_array"
path = "benches/gungraun_rc_array/main.rs"
harness = false
[dependencies.allocator-api2]
version = "0.4.0"
features = ["alloc"]
default-features = false
[dependencies.allocator-api2-02]
version = "0.2"
features = ["alloc"]
default-features = false
package = "allocator-api2"
[dependencies.bytemuck]
version = "1.25.0"
features = ["derive"]
optional = true
default-features = false
[dependencies.bytes]
version = "1.11.1"
optional = true
default-features = false
[dependencies.bytesbuf]
version = "0.5.6"
optional = true
default-features = false
[dependencies.hashbrown]
version = "0.17.0"
features = [
"allocator-api2",
"default-hasher",
]
optional = true
default-features = false
[dependencies.ptr_meta]
version = "0.3.1"
default-features = false
[dependencies.serde]
version = "1.0.228"
optional = true
default-features = false
[dependencies.widestring]
version = "1.2.1"
features = ["alloc"]
optional = true
default-features = false
[dependencies.zerocopy]
version = "0.8.26"
optional = true
default-features = false
[dev-dependencies.alloc_tracker]
version = "0.6"
[dev-dependencies.allocator-api2]
version = "0.4.0"
features = ["alloc"]
default-features = false
[dev-dependencies.bolero]
version = "0.13.4"
features = ["std"]
default-features = false
[dev-dependencies.bumpalo]
version = "3.20.2"
features = ["collections"]
default-features = false
[dev-dependencies.criterion]
version = "0.8.1"
default-features = false
[dev-dependencies.mimalloc]
version = "0.1.52"
default-features = false
[dev-dependencies.mutants]
version = "0.0.3"
default-features = false
[dev-dependencies.serde_json]
version = "1.0.145"
default-features = false
[target."cfg(loom)".dependencies.loom]
version = "0.7.2"
default-features = false
[target."cfg(loom)".dev-dependencies.loom]
version = "0.7.2"
default-features = false
[target.'cfg(target_os = "linux")'.dev-dependencies.gungraun]
version = "0.19.2"
features = ["default"]
default-features = false
[lints.clippy]
allow_attributes = "warn"
allow_attributes_without_reason = "warn"
as_pointer_underscore = "warn"
assertions_on_result_states = "warn"
clone_on_ref_ptr = "warn"
deref_by_slicing = "warn"
disallowed_script_idents = "warn"
empty_drop = "warn"
empty_enum_variants_with_brackets = "warn"
empty_structs_with_brackets = "warn"
fn_to_numeric_cast_any = "warn"
if_then_some_else_none = "warn"
map_err_ignore = "warn"
missing_const_for_fn = "allow"
multiple_crate_versions = "allow"
multiple_unsafe_ops_per_block = "warn"
option_if_let_else = "allow"
panic = "warn"
redundant_pub_crate = "allow"
redundant_type_annotations = "warn"
renamed_function_params = "warn"
semicolon_outside_block = "warn"
should_panic_without_expect = "allow"
significant_drop_tightening = "allow"
undocumented_unsafe_blocks = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unneeded_field_pattern = "warn"
unused_result_ok = "warn"
unwrap_used = "warn"
wildcard_imports = "allow"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.style]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "warn"
priority = -1
[lints.rust]
ambiguous_negative_literals = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
redundant_imports = "warn"
redundant_lifetimes = "warn"
trivial_numeric_casts = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_lifetimes = "warn"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(coverage,coverage_nightly)",
"cfg(loom)",
"cfg(utc_backend)",
]
[lints.rustdoc]
missing_crate_level_docs = "warn"
unescaped_backticks = "warn"