biasedrc 0.1.0

An implementation of biased-reference counting
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.90"
name = "biasedrc"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An implementation of biased-reference counting"
readme = "README.md"
keywords = [
    "biasedrc",
    "arc",
    "rc",
]
categories = [
    "concurrency",
    "rust-patterns",
    "memory-management",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Techcable/biasedrc.rs"

[features]
archery = ["dep:archery"]
default = ["std"]
implicit-collect-disable = []
nightly = [
    "nightly-ptr-meta",
    "nightly-coerce",
    "nightly-ptr-layout",
    "nightly-may-dangle",
    "unsafe-assume-osstr-layout",
]
nightly-allocator = []
nightly-coerce = []
nightly-may-dangle = []
nightly-ptr-layout = ["nightly-ptr-meta"]
nightly-ptr-meta = []
serde = ["dep:serde"]
std = [
    "ptr-meta-stable/std",
    "serde?/std",
]
unsafe-assume-cstr-layout = []
unsafe-assume-osstr-layout = []

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

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

[[test]]
name = "basic"
path = "tests/basic.rs"

[[test]]
name = "multithread"
path = "tests/multithread.rs"

[[bench]]
name = "basic"
path = "benches/basic.rs"
harness = false

[[bench]]
name = "persistent_hashmap"
path = "benches/imbl/persistent_hashmap.rs"
harness = false
required-features = ["archery"]

[[bench]]
name = "persistent_ordmap"
path = "benches/imbl/persistent_ordmap.rs"
harness = false
required-features = ["archery"]

[[bench]]
name = "persistent_vector"
path = "benches/imbl/persistent_vector.rs"
harness = false
required-features = ["archery"]

[[bench]]
name = "rpds_hash_trie_map"
path = "benches/rpds/rpds_hash_trie_map.rs"
harness = false
required-features = ["archery"]

[[bench]]
name = "rpds_hash_trie_map_brc"
path = "benches/rpds/rpds_hash_trie_map_brc.rs"
harness = false
required-features = ["archery"]

[[bench]]
name = "rpds_hash_trie_map_sync"
path = "benches/rpds/rpds_hash_trie_map_sync.rs"
harness = false
required-features = ["archery"]

[[bench]]
name = "rpds_list"
path = "benches/rpds/rpds_list.rs"
harness = false
required-features = ["archery"]

[[bench]]
name = "rpds_list_brc"
path = "benches/rpds/rpds_list_brc.rs"
harness = false
required-features = ["archery"]

[[bench]]
name = "rpds_list_sync"
path = "benches/rpds/rpds_list_sync.rs"
harness = false
required-features = ["archery"]

[[bench]]
name = "rpds_vector"
path = "benches/rpds/rpds_vector.rs"
harness = false
required-features = ["archery"]

[[bench]]
name = "rpds_vector_brc"
path = "benches/rpds/rpds_vector_brc.rs"
harness = false
required-features = ["archery"]

[[bench]]
name = "rpds_vector_sync"
path = "benches/rpds/rpds_vector_sync.rs"
harness = false
required-features = ["archery"]

[dependencies.allocator-api2]
version = "0.4"

[dependencies.arbitrary-int]
version = "2"

[dependencies.arc-swap]
version = "1.7"
optional = true

[dependencies.archery]
version = "1"
optional = true

[dependencies.arrayvec]
version = "0.7"
optional = true
default-features = false

[dependencies.atomic]
version = "0.6"

[dependencies.boxcar]
version = "0.2"

[dependencies.bytemuck]
version = "1"
features = ["derive"]

[dependencies.cfg-if]
version = "1"

[dependencies.crossbeam-queue]
version = "0.3"

[dependencies.nounwind]
version = "0.1.2"
features = ["std"]
default-features = false

[dependencies.ptr-meta-stable]
version = "0.3"
default-features = false
package = "ptr_meta"

[dependencies.serde]
version = "1"
optional = true
default-features = false
package = "serde_core"

[dependencies.stable_deref_trait]
version = "1.2"

[dependencies.thiserror]
version = "2"

[dependencies.unsize]
version = "1.1"

[dev-dependencies.criterion]
version = "0.8"

[dev-dependencies.crossbeam-channel]
version = "0.5"

[dev-dependencies.imbl]
version = "6.1"

[dev-dependencies.rand]
version = "0.9"
features = ["small_rng"]

[dev-dependencies.rpds]
version = "1.2"

[dev-dependencies.triomphe]
version = "0.1"

[lints.clippy]
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"
explicit-deref-methods = "allow"
fn-to-numeric-cast = "deny"
fn-to-numeric-cast-any = "deny"
fn-to-numeric-cast-with-truncation = "deny"
if-not-else = "allow"
inline-always = "allow"
items-after-statements = "allow"
multiple_unsafe_ops_per_block = "allow"
must-use-candidate = "allow"
needless-continue = "allow"
needless-late-init = "allow"
needless-pass-by-value = "allow"
ptr_as_ptr = "allow"
redundant_test_prefix = "warn"
single-match-else = "allow"
too-many-lines = "allow"
undocumented_unsafe_blocks = "deny"

[lints.clippy.cargo]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unsafe-op-in-unsafe-fn = "deny"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(biasedrc_no_implicit_collect)",
    "cfg(biasedrc_no_implicit_collect_clone)",
    "cfg(biasedrc_no_implicit_collect_drop)",
]

[profile.bench]
debug = 2