once_type_map 0.1.1

Thread-safe, insert-once type map that hands out plain references (no guards), like a OnceLock keyed by type
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.86"
name = "once_type_map"
version = "0.1.1"
authors = ["Kiril Karaatanasov <karaatanasov@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Thread-safe, insert-once type map that hands out plain references (no guards), like a OnceLock keyed by type"
documentation = "https://docs.rs/once_type_map"
readme = "README.md"
keywords = [
    "typemap",
    "extensions",
    "oncelock",
    "lazy",
    "any",
]
categories = [
    "concurrency",
    "data-structures",
    "rust-patterns",
]
license = "Apache-2.0"
repository = "https://github.com/noclue/once_type_map"

[lib]
name = "once_type_map"
path = "src/lib.rs"

[[example]]
name = "async_extensions"
path = "examples/async_extensions.rs"

[[example]]
name = "extensions"
path = "examples/extensions.rs"

[[example]]
name = "fallible_extensions"
path = "examples/fallible_extensions.rs"

[dependencies]

[dev-dependencies.once_cell]
version = "1.21.4"

[dev-dependencies.tokio]
version = "1.54"
features = [
    "rt",
    "macros",
    "sync",
    "time",
]