Yi Kong | ed9ee01 | 2021-02-03 14:38:25 +0800 | [diff] [blame] | 1 | [package] |
| 2 | name = "chrono" |
| 3 | version = "0.4.19" |
| 4 | authors = [ |
| 5 | "Kang Seonghoon <public+rust@mearie.org>", |
| 6 | "Brandon W Maister <quodlibetor@gmail.com>", |
| 7 | ] |
| 8 | |
| 9 | description = "Date and time library for Rust" |
| 10 | homepage = "https://github.com/chronotope/chrono" |
| 11 | documentation = "https://docs.rs/chrono/" |
| 12 | repository = "https://github.com/chronotope/chrono" |
| 13 | keywords = ["date", "time", "calendar"] |
| 14 | categories = ["date-and-time"] |
| 15 | readme = "README.md" |
| 16 | license = "MIT/Apache-2.0" |
| 17 | exclude = ["/ci/*", "/.travis.yml", "/appveyor.yml", "/Makefile"] |
| 18 | |
| 19 | [badges] |
| 20 | travis-ci = { repository = "chronotope/chrono" } |
| 21 | appveyor = { repository = "chronotope/chrono" } |
| 22 | |
| 23 | [lib] |
| 24 | name = "chrono" |
| 25 | |
| 26 | [features] |
| 27 | default = ["clock", "std", "oldtime"] |
| 28 | alloc = [] |
| 29 | std = [] |
| 30 | clock = ["libc", "std", "winapi"] |
| 31 | oldtime = ["time"] |
| 32 | wasmbind = ["wasm-bindgen", "js-sys"] |
| 33 | unstable-locales = ["pure-rust-locales", "alloc"] |
| 34 | __internal_bench = [] |
| 35 | __doctest = [] |
| 36 | |
| 37 | [dependencies] |
| 38 | libc = { version = "0.2.69", optional = true } |
| 39 | time = { version = "0.1.43", optional = true } |
| 40 | num-integer = { version = "0.1.36", default-features = false } |
| 41 | num-traits = { version = "0.2", default-features = false } |
| 42 | rustc-serialize = { version = "0.3.20", optional = true } |
| 43 | serde = { version = "1.0.99", default-features = false, optional = true } |
| 44 | pure-rust-locales = { version = "0.5.2", optional = true } |
| 45 | |
| 46 | [target.'cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi"))))'.dependencies] |
| 47 | wasm-bindgen = { version = "0.2", optional = true } |
| 48 | js-sys = { version = "0.3", optional = true } # contains FFI bindings for the JS Date API |
| 49 | |
| 50 | [target.'cfg(windows)'.dependencies] |
| 51 | winapi = { version = "0.3.0", features = ["std", "minwinbase", "minwindef", "timezoneapi"], optional = true } |
| 52 | |
| 53 | [dev-dependencies] |
| 54 | serde_json = { version = "1" } |
| 55 | serde_derive = { version = "1", default-features = false } |
| 56 | bincode = { version = "0.8.0" } |
| 57 | num-iter = { version = "0.1.35", default-features = false } |
| 58 | criterion = { version = "0.3" } |
| 59 | doc-comment = { version = "0.3" } |
| 60 | |
| 61 | [target.'cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi"))))'.dev-dependencies] |
| 62 | wasm-bindgen-test = "0.3" |
| 63 | |
| 64 | [package.metadata.docs.rs] |
| 65 | features = ["serde"] |
| 66 | |
| 67 | [package.metadata.playground] |
| 68 | features = ["serde"] |
| 69 | |
| 70 | [[bench]] |
| 71 | name = "chrono" |
| 72 | required-features = ["__internal_bench"] |
| 73 | harness = false |
| 74 | |
| 75 | [[bench]] |
| 76 | name = "serde" |
| 77 | harness = false |
| 78 | required-features = ["serde"] |