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