[build-dependencies.rustversion]
version = "1"
[dependencies.parking_lot_0_12]
optional = true
package = "parking_lot"
version = "0.12"
[dependencies.rustversion]
version = "1"
[dependencies.spin_0_10]
features = ["once"]
optional = true
package = "spin"
version = "0.10"
[dependencies.spin_0_9]
features = ["once"]
optional = true
package = "spin"
version = "0.9"
[features]
alloc = []
default = ["std"]
parking_lot_v0_12 = ["parking_lot_0_12"]
spin_v0_10 = ["spin_0_10"]
spin_v0_9 = ["spin_0_9"]
std = ["alloc", "std-sync"]
std-sync = []
[lib]
name = "oncelock"
path = "src/lib.rs"
[lints.clippy]
alloc-instead-of-core = "deny"
assertions-on-constants = "allow"
cast-lossless = "allow"
cast-possible-truncation = "deny"
cast-possible-wrap = "deny"
cast-precision-loss = "deny"
cast-ptr-alignment = "deny"
cast-sign-loss = "deny"
char-lit-as-u8 = "deny"
fn-to-numeric-cast = "deny"
fn-to-numeric-cast-any = "deny"
fn-to-numeric-cast-with-truncation = "deny"
items-after-statements = "allow"
missing-panics-doc = "allow"
missing-safety-doc = "deny"
must-use-candidate = "allow"
ptr-as-ptr = "allow"
std-instead-of-alloc = "deny"
std-instead-of-core = "deny"
undocumented-unsafe-blocks = "deny"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[package]
authors = ["Techcable <git@techcable.net>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = "build.rs"
categories = ["concurrency", "rust-patterns", "memory-management", "no-std", "no-std::no-alloc"]
description = "A fast and simple implementation of OnceLock"
edition = "2018"
keywords = ["lazy", "static", "oncecell", "oncelock"]
license = "MIT OR Apache-2.0"
name = "oncelock"
readme = "README.md"
repository = "https://github.com/Techcable/oncelock.rs"
rust-version = "1.31"
version = "0.1.0-alpha.0"