-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
79 lines (62 loc) · 1.87 KB
/
Cargo.toml
File metadata and controls
79 lines (62 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
[workspace]
members = [".", "photon-ring-derive", "photon-ring-async", "photon-ring-metrics"]
[package]
name = "photon-ring"
version = "2.5.0"
edition = "2021"
rust-version = "1.94"
description = "Ultra-low-latency SPMC/MPMC pub/sub using stamped ring buffers. Formally sound with atomic-slots feature. no_std compatible."
license = "Apache-2.0"
keywords = ["pubsub", "spmc", "lock-free", "no_std", "zero-alloc"]
categories = ["concurrency", "no-std"]
readme = "README.md"
repository = "https://github.com/userFRM/photon-ring"
homepage = "https://github.com/userFRM/photon-ring"
documentation = "https://docs.rs/photon-ring"
exclude = [".github/"]
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(loom)'] }
[features]
hugepages = ["dep:libc"]
derive = ["dep:photon-ring-derive"]
atomic-slots = []
[dependencies]
hashbrown = "0.16.1"
spin = "0.10.0"
libc = { version = "0.2.183", default-features = false, optional = true }
photon-ring-derive = { version = "2.5.0", path = "photon-ring-derive", optional = true }
[target.'cfg(any(target_os = "linux", target_os = "macos", target_os = "windows", target_os = "freebsd", target_os = "netbsd", target_os = "android"))'.dependencies]
core_affinity2 = "0.15.4"
[dev-dependencies]
criterion = "0.8.2"
crossbeam-channel = "0.5.15"
disruptor = "4.0.0"
libc = "0.2.183"
loom = "0.7"
[[example]]
name = "market_data"
[[example]]
name = "pinned_latency"
[[example]]
name = "backpressure"
[[example]]
name = "pipeline"
[[example]]
name = "diamond"
[[bench]]
name = "throughput"
harness = false
[[bench]]
name = "rdtsc_oneway"
harness = false
[[bench]]
name = "payload_scaling"
harness = false
[[bench]]
name = "prefetchw_crosscore"
harness = false
[package.metadata.docs.rs]
# Enables all features (derive, hugepages, atomic-slots) in docs.rs builds.
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
targets = ["x86_64-unknown-linux-gnu"]