-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
79 lines (67 loc) · 2.38 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
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
75
76
77
78
79
[package]
name = "espera"
description = "Time management, loop rates control."
version = "0.4.0"
edition = "2021"
rust-version = "1.72.0" # sync with readme, check.sh & .github/workflows/check.yml
authors = ["José Luis Cruz <[email protected]>"]
repository = "https://github.com/andamira/espera"
documentation = "https://docs.rs/espera"
license = "MIT OR Apache-2.0"
include = [
"/src/**/*.rs",
"/Cargo.toml",
"/LICENSE-*",
"/README.md",
]
categories = ["date-and-time", "no-std"]
keywords = ["time", "sleep", "loop", "rate", "fps"]
publish = true
# ------------------------------------------------------------------------------
[features]
#* capability features *#
default = []
full = [] # enables optional capabilities in this crate (unused)
full_std = ["full", "std"]
full_no_std = ["full", "no_std", "libc"]
#* environment features *#
std = [ # disables `no_std` compatibility and enables `std` functionality
"alloc",
"ahash", "arraydeque", "sixbit", "time/std", "spin_sleep",
]
alloc = [] # enables `alloc` functionality
no_std = ["libm"] # enables functionality incompatible with `std`
# wasm = ["instant"]
#* safety features *#
unsafest = ["unsafe", "devela/unsafest"] # enables unsafe recursively
unsafe = [] # enables unsafe features in this crate
# used together with `libc` for `no_std` unixtime (IMPROVE)
safe = [] # forbids unsafe in this crate
safest = ["safe", "devela/safest"] # forbids unsafe recursively
#* nightly features *#
nightly = [] # enables nightly features
nightly_docs = [ # enables features for docs.rs
"nightly", "full_std", "unsafe", "devela/nightly_docs",
]
# ------------------------------------------------------------------------------
[dependencies]
devela = "0.9.0"
time = { version = "0.3.28", default-features = false }
log = "0.4.20"
#* optional dependencies *#
# std:
ahash = { version = "0.8.3", optional = true }
arraydeque = { version = "0.4.5", optional = true }
sixbit = { version = "0.5.0", optional = true }
spin_sleep = { version = "1.1.1", optional = true }
# no_std:
libc = { version = "0.2", optional = true, default-features = false }
libm = { version = "0.2.7", optional = true }
# wasm:
# instant = { version = "0.1.12", optional = true }
# ------------------------------------------------------------------------------
[package.metadata.docs.rs]
no-default-features = true
features = ["nightly_docs"]
[badges]
maintenance = { status = "experimental" }