Debian Codegraph @

debian/missing-sources/chrono/Cargo.toml.orig

raw
1 [package]
2 name = "chrono"
3 version = "0.4.43"
4 description = "Date and time library for Rust"
5 homepage = "https://github.com/chronotope/chrono"
6 documentation = "https://docs.rs/chrono/"
7 repository = "https://github.com/chronotope/chrono"
8 keywords = ["date", "time", "calendar"]
9 categories = ["date-and-time"]
10 readme = "README.md"
11 license = "MIT OR Apache-2.0"
12 include = ["src/*", "tests/*.rs", "LICENSE.txt", "CITATION.cff"]
13 edition = "2021"
14 rust-version = "1.62.0"
15
16 [lib]
17 name = "chrono"
18
19 [features]
20 # Don't forget to adjust `ALL_NON_EXCLUSIVE_FEATURES` in CI scripts when adding a feature or an optional dependency.
21 default = ["clock", "std", "oldtime", "wasmbind"]
22 alloc = []
23 defmt = ["dep:defmt", "pure-rust-locales?/defmt"]
24 libc = []
25 winapi = ["windows-link"]
26 std = ["alloc"]
27 clock = ["winapi", "iana-time-zone", "now"]
28 now = ["std"]
29 core-error = []
30 oldtime = []
31 wasmbind = ["wasm-bindgen", "js-sys"]
32 unstable-locales = ["pure-rust-locales"]
33 # Note that rkyv-16, rkyv-32, and rkyv-64 are mutually exclusive.
34 rkyv = ["dep:rkyv", "rkyv/size_32"]
35 rkyv-16 = ["dep:rkyv", "rkyv?/size_16"]
36 rkyv-32 = ["dep:rkyv", "rkyv?/size_32"]
37 rkyv-64 = ["dep:rkyv", "rkyv?/size_64"]
38 rkyv-validation = ["rkyv?/validation"]
39 # Features for internal use only:
40 __internal_bench = []
41
42 [dependencies]
43 num-traits = { version = "0.2", default-features = false }
44 serde = { version = "1.0.99", default-features = false, optional = true }
45 pure-rust-locales = { version = "0.8.2", optional = true }
46 rkyv = { version = "0.7.43", optional = true, default-features = false }
47 arbitrary = { version = "1.0.0", features = ["derive"], optional = true }
48 defmt = { version = "1.0.1", optional = true }
49
50 [target.'cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi"))))'.dependencies]
51 wasm-bindgen = { version = "0.2", optional = true }
52 js-sys = { version = "0.3", optional = true } # contains FFI bindings for the JS Date API
53
54 [target.'cfg(windows)'.dependencies]
55 windows-link = { version = "0.2", optional = true }
56
57 [target.'cfg(unix)'.dependencies]
58 iana-time-zone = { version = "0.1.45", optional = true, features = ["fallback"] }
59
60 [dev-dependencies]
61 serde_json = { version = "1" }
62 serde_derive = { version = "1", default-features = false }
63 similar-asserts = { version = "1.6.1" }
64 bincode = { version = "1.3.0" }
65 windows-bindgen = { version = "0.66" } # MSRV is 1.74
66
67 [target.'cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi"))))'.dev-dependencies]
68 wasm-bindgen-test = "0.3"
69
70 [package.metadata.docs.rs]
71 features = ["arbitrary", "rkyv", "serde", "unstable-locales"]
72 rustdoc-args = ["--cfg", "docsrs"]
73
74 [package.metadata.playground]
75 features = ["serde"]