forked from time-rs/time
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
73 lines (62 loc) · 2.31 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
[workspace]
members = ["time-macros"]
resolver = "2"
[package]
name = "time"
version = "0.3.10"
authors = ["Jacob Pratt <open-source@jhpratt.dev>", "Time contributors"]
edition = "2021"
rust-version = "1.57.0"
repository = "https://github.com/time-rs/time"
homepage = "https://time-rs.github.io"
keywords = ["date", "time", "calendar", "duration"]
categories = ["date-and-time", "no-std", "parser-implementations", "value-formatting"]
readme = "README.md"
license = "MIT OR Apache-2.0"
description = "Date and time library. Fully interoperable with the standard library. Mostly compatible with #![no_std]."
include = ["src/**/*", "LICENSE-*", "README.md", "!src/tests.rs"]
[lib]
bench = false
[package.metadata.docs.rs]
all-features = true
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = ["--cfg", "__time_03_docs"]
[features]
default = ["std"]
alloc = []
formatting = ["itoa", "std"]
large-dates = ["time-macros/large-dates"] # use case for weak feature dependencies (rust-lang/cargo#8832)
local-offset = ["std"]
macros = ["time-macros"]
parsing = []
quickcheck = ["quickcheck-dep", "alloc"]
serde-human-readable = ["serde", "formatting", "parsing"]
serde-well-known = ["serde/alloc", "formatting", "parsing"] # use case for weak feature dependencies (`alloc` could just require `serde?.alloc`)
std = ["alloc"]
[dependencies]
itoa = { version = "1.0.1", optional = true }
quickcheck-dep = { package = "quickcheck", version = "1.0.3", default-features = false, optional = true }
rand = { version = "0.8.4", optional = true, default-features = false }
serde = { version = "1.0.126", optional = true, default-features = false }
time-macros = { version = "=0.2.4", path = "time-macros", optional = true }
[target.'cfg(target_family = "unix")'.dependencies]
libc = "0.2.98"
num_threads = "0.1.2"
[dev-dependencies]
rand = { version = "0.8.4", default-features = false }
serde = { version = "1.0.126", default-features = false, features = ["derive"] }
serde_json = "1.0.68"
serde_test = "1.0.126"
quickcheck_macros = "1.0.0"
[target.'cfg(__ui_tests)'.dev-dependencies]
trybuild = "1.0.63"
[target.'cfg(bench)'.dev-dependencies]
criterion = "0.3.5"
criterion-cycles-per-byte = "0.1.2"
# Significant contributions to the benchmarks provided by Emil Lundberg.
[[bench]]
name = "benchmarks"
harness = false
path = "benchmarks/main.rs"
[profile.dev]
debug = 0