-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
50 lines (44 loc) · 1.75 KB
/
Copy pathCargo.toml
File metadata and controls
50 lines (44 loc) · 1.75 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
[workspace]
members = ["xtask"]
[package]
name = "nosy"
version = "0.3.0"
edition = "2024"
rust-version = "1.85.0"
description = "Change notification / observation / broadcast channels, with filtering and coalescing. no_std compatible."
repository = "https://github.com/kpreid/nosy/"
license = "MIT OR Apache-2.0"
categories = ["asynchronous", "no-std"]
keywords = ["change-notification", "listener", "observer", "observable"]
include = ["/src", "/tests", "/CHANGELOG.md", "/README.md", "/LICENSE-APACHE", "/LICENSE-MIT", "!.*"]
[package.metadata.docs.rs]
all-features = true
[lib]
test = false # All tests are currently in tests/api/ instead
[features]
default = []
# Enables trait implementations on `std` types, rather than only `alloc` types.
std = []
# Enables use of `std::sync` to implement `Sync` for our types.
std-sync = ["std"]
# Enables use of `spin` to implement `Sync` for our types.
# Overridden by `"std-sync"`.
spin-sync = ["dep:spin"]
# Enables async integration.
async = ["dep:futures-core", "dep:futures-util"]
[dependencies]
arrayvec = { version = "0.7.4", default-features = false }
futures-core = { version = "0.3.31", optional = true, default-features = false }
futures-util = { version = "0.3.31", optional = true, default-features = false }
cfg-if = { version = "1.0.0", default-features = false }
mutants = { version = "0.0.4", default-features = false }
spin = { version = "0.9.8", optional = true, default-features = false, features = ["spin_mutex", "rwlock"] }
[dev-dependencies]
# For examples
futures = { version = "0.3.31" }
# For tests of `Debug` printing.
indoc = { version = "2.0.1", default-features = false }
# For tests of `Debug` printing.
pretty_assertions = "1.2.0"
# For tests of what auto traits our types have.
static_assertions = "1.1.0"