-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathCargo.toml
More file actions
74 lines (61 loc) · 1.82 KB
/
Cargo.toml
File metadata and controls
74 lines (61 loc) · 1.82 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
[workspace]
members = ["test-suite"]
[package]
name = "crossfire"
version = "3.1.7"
authors = ["plan <frostyplanet@gmail.com>"]
edition = "2021"
license = "Apache-2.0"
homepage = "https://github.com/frostyplanet/crossfire-rs"
readme = "README.md"
repository = "https://github.com/frostyplanet/crossfire-rs"
documentation = "https://docs.rs/crossfire"
keywords = ["async", "non-blocking", "lock-free", "channel"]
categories = ["concurrency", "data-structures"]
exclude = ["/ci/*", "/bors.toml"]
description = "channels for async and threads"
rust-version = "1.79"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
# Because cargo-show-asm cannot match local crossfire package
#[patch.crates-io]
#crossfire = { path = "." }
[dependencies]
crossbeam-utils = "0.8"
futures-core = "0.3"
parking_lot = "0"
tokio = { version = "1", features = ["time", "rt"], optional=true }
async-std = {version = "1", optional=true}
log = { version="0", optional=true}
smallvec = "1"
[dev-dependencies]
log = "0"
tokio = { version = "1", features = ["time", "sync", "rt-multi-thread", "rt", "macros"] }
smol = "2"
captains-log = "0"
## For profiling symbol
#[profile.release]
#debug = true
[features]
default = []
# Enable compat model for v2.x API
compat = []
# This will enable timeout function
tokio = ["dep:tokio"]
# This will enable timeout function
async_std = ["dep:async-std"]
# for test workflow debugging
trace_log = ["dep:log"]
[package.metadata.docs.rs]
all-features = true
# enable features in the documentation
rustdoc-args = ["--cfg", "docsrs"]
[lints.clippy]
new_ret_no_self = "allow"
needless_range_loop = "allow"
type_complexity = "allow"
needless_return = "allow"
mut_from_ref = "allow"
transmute_ptr_to_ref = "allow"
len_without_is_empty = "allow"
new_without_default = "allow"
result_unit_err = "allow"