-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
67 lines (54 loc) · 2.23 KB
/
Cargo.toml
File metadata and controls
67 lines (54 loc) · 2.23 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
[package]
name = "n0-future"
version = "0.3.2"
edition = "2021"
readme = "README.md"
description = "Number 0's way of doing rust futures. Re-exports what we think are useful abstractions and good implementations."
license = "MIT OR Apache-2.0"
authors = ["Philipp Krüger <philipp@n0.computer>", "n0 team"]
repository = "https://github.com/n0-computer/n0-future"
keywords = ["wasm", "io", "stream", "sink", "runtime"]
# Sadly this also needs to be updated in .github/workflows/ci.yml
rust-version = "1.85"
[dependencies]
derive_more = { version = "2", features = ["debug", "deref", "display"] }
futures-buffered = "0.2.12"
futures-lite = "2.5"
futures-util = { version = "0.3", features = ["sink"] }
pin-project = "1"
tokio = { version = "1.28", features = [] }
tokio-util = { version = "0.7.14", features = [] }
# non-wasm-in-browser dependencies
[target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dependencies]
tokio = { version = "1.28", features = ["rt", "time", "macros", "test-util"] }
tokio-util = { version = "0.7.14", features = ["rt"] }
# wasm-in-browser dependencies
[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies]
futures-util = "0.3"
js-sys = "0.3"
pin-project = "1"
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
web-time = "1"
send_wrapper = "0.6"
# wasm-in-browser dev dependencies
[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dev-dependencies]
wasm-bindgen-test = "0.3.50"
[build-dependencies]
cfg_aliases = { version = "0.2" }
# Package settings
[lints.rust]
missing_debug_implementations = "warn"
# We use this --cfg for documenting the cargo features on which an API
# is available. To preview this locally use:
# `RUSTDOCFLAGS="--cfg n0_future_docsrs" cargo +nightly doc --all-features`
# We use our own n0_future_docsrs instead of the common docsrs to avoid
# also enabling this feature in any dependencies, because some indirect
# dependencies require a feature enabled when using `--cfg docsrs` which
# we can not do. To enable for a crate set
# `#![cfg_attr(n0_future_docsrs, feature(doc_auto_cfg))]` in the crate.
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(n0_future_docsrs)"] }
[lints.clippy]
unused-async = "warn"
[features]
serde = ["web-time/serde"]