# 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 = "2021"
rust-version = "1.87"
name = "crossbar"
version = "1.0.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Zero-copy pub/sub over shared memory. URI-addressed. O(1) transfer at any payload size."
readme = "README.md"
keywords = [
    "ipc",
    "shared-memory",
    "pubsub",
    "zero-copy",
    "low-latency",
]
categories = [
    "network-programming",
    "concurrency",
]
license = "Apache-2.0"
repository = "https://github.com/userFRM/crossbar"

[features]
ffi = []

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

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

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

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

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

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

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

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

[[test]]
name = "ffi_smoke"
path = "tests/ffi_smoke.rs"
required-features = ["ffi"]

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

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

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

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

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

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

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

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

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

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

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

[target."cfg(unix)".dependencies.libc]
version = "0.2.183"

[target."cfg(unix)".dev-dependencies.iceoryx2]
version = "0.8.1"

[target."cfg(windows)".dependencies.windows-sys]
version = "0.61.2"
features = [
    "Win32_Foundation",
    "Win32_Security",
    "Win32_System_IO",
    "Win32_System_Memory",
    "Win32_System_Threading",
    "Win32_Storage_FileSystem",
]
