forked from faern/oneshot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
38 lines (31 loc) · 1.05 KB
/
Cargo.toml
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
[package]
name = "oneshot"
version = "0.1.5"
authors = ["Linus Färnstrand <[email protected]>"]
license = "MIT OR Apache-2.0"
readme = "README.md"
description = """
Oneshot spsc channel with (potentially) lock-free non-blocking send and a receiver supporting
both thread blocking receive operations as well as Future based async polling.
"""
repository = "https://github.com/faern/oneshot"
keywords = ["oneshot", "spsc", "async", "sync", "channel"]
categories = ["asynchronous", "concurrency"]
edition = "2021"
rust-version = "1.60.0"
[features]
default = ["std", "async"]
# Enables usage of libstd. Adds support for thread blocking receive methods.
std = []
# Enables async receiving by implementing Future
async = []
[target.'cfg(loom)'.dependencies]
loom = { version = "0.5.3", features = ["futures"] }
[dev-dependencies]
criterion = "0.3"
[target.'cfg(not(loom))'.dev-dependencies]
tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros", "time"] }
async-std = { version = "1", features = ["attributes"] }
[[bench]]
name = "benches"
harness = false