[dependencies.bumpalo]
optional = true
version = "3.19"
[dependencies.tagged_dispatch_macros]
default-features = false
version = "0.2.0"
[dependencies.typed-arena]
optional = true
version = "2.0.2"
[dev-dependencies.bumpalo]
version = "3.19"
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.static_assertions]
version = "1.1"
[features]
all-allocators = ["allocator-bumpalo", "allocator-typed-arena"]
allocator-bumpalo = ["bumpalo", "tagged_dispatch_macros/allocator-bumpalo"]
allocator-typed-arena = ["typed-arena", "tagged_dispatch_macros/allocator-typed-arena"]
default = ["std"]
std = []
[lib]
name = "tagged_dispatch"
path = "src/lib.rs"
[package]
authors = ["Jon Davis <khalen@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["data-structures", "no-std", "memory-management"]
description = "Memory efficient trait dispatch using tagged pointers."
documentation = "https://docs.rs/tagged_dispatch"
edition = "2021"
keywords = ["dispatch", "polymorphism", "tagged-pointer", "performance"]
license = "MIT OR Apache-2.0"
name = "tagged_dispatch"
readme = "README.md"
repository = "https://github.com/khalen/tagged_dispatch"
version = "0.2.0"
[profile.release]
codegen-units = 1
lto = true
[[test]]
name = "arena_builder"
path = "tests/arena_builder.rs"
[[test]]
name = "default_implementations"
path = "tests/default_implementations.rs"
[[test]]
name = "mixed_scenarios"
path = "tests/mixed_scenarios.rs"
[[test]]
name = "multiple_traits"
path = "tests/multiple_traits.rs"
[[test]]
name = "no_dispatch"
path = "tests/no_dispatch.rs"
[[test]]
name = "simple_arena_test"
path = "tests/simple_arena_test.rs"