cyclotrace 0.2.0

A high-performance, wait-free ring buffer in Rust. Supports SPMC with peek-based semantics instead of destructive consumption.
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"
name = "cyclotrace"
version = "0.2.0"
authors = ["yua"]
build = false
exclude = [
    "/.history/**",
    "/.github/**",
    "notice.hbs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A high-performance, wait-free ring buffer in Rust. Supports SPMC with peek-based semantics instead of destructive consumption."
readme = "README.md"
keywords = [
    "wait-free",
    "lock-free",
    "ring-buffer",
    "spmc",
]
categories = [
    "concurrency",
    "data-structures",
    "no-std::no-alloc",
    "multimedia::audio",
    "science::robotics",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/yua134/cyclotrace"

[features]
alloc = []
arrayvec = ["dep:arrayvec"]
default = ["alloc"]
heapless = ["dep:heapless"]
loom = ["dep:loom"]

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

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

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

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

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

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

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

[dependencies.crossbeam-utils]
version = "0.8.21"
default-features = false

[dependencies.heapless]
version = "0.9.1"
optional = true

[dependencies.loom]
version = "0.7.2"
optional = true

[dependencies.maybe_const]
version = "0.1.0"

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

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

[profile.release]
opt-level = 3
panic = "abort"
strip = true