-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathCargo.toml
44 lines (38 loc) · 1.14 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
39
40
41
42
43
44
[package]
name = "async-timer"
version = "1.0.0-beta.15"
authors = ["Douman <[email protected]>"]
edition = "2018"
description = "Timers for Rust async story"
readme = "README.md"
repository = "https://github.com/DoumanAsh/async-timer"
license = "BSL-1.0"
keywords = ["timer", "async", "wasm"]
categories = ["asynchronous", "wasm", "no-std"]
include = [
"**/*.rs",
"**/*.c",
"Cargo.toml",
"README.md"
]
[features]
default = []
# Enables std usage
std = ["error-code/std"]
# Enables C API wrapper for platform code.
c_wrapper = ["cc"]
# Enables usage of tokio 1.0
tokio1 = ["tokio_1", "std"]
[dependencies]
error-code = "3"
[target.'cfg(any(target_os = "macos", target_os = "ios", windows, unix))'.dependencies]
libc = { version = "0.2.60", default-features = false }
tokio_1 = { package = "tokio", version = "1.35", default-features = false, optional = true, features = ["net"] }
[target.'cfg(any(target_arch = "wasm32"))'.dependencies]
wasm-bindgen = "0.2"
web-time = "1.1"
[dev-dependencies]
tokio_1 = { package = "tokio", version = "1.35", default-features = false, features = ["macros", "rt"] }
[build-dependencies.cc]
version = "1"
optional = true