1[package]
2name = "iana-time-zone"
3description = "get the IANA time zone for the current system"
4version = "0.1.63"
5authors = [
6 "Andrew Straw <strawman@astraw.com>",
7 "René Kijewski <rene.kijewski@fu-berlin.de>",
8 "Ryan Lopopolo <rjl@hyperbo.la>",
9]
10repository = "https://github.com/strawlab/iana-time-zone"
11license = "MIT OR Apache-2.0"
12keywords = ["IANA", "time"]
13categories = ["date-and-time", "internationalization", "os"]
14readme = "README.md"
15edition = "2021"
16rust-version = "1.62.0"
17
18[features]
19# When enabled, the library will succeed to compile for unknown target platforms, and return an `Err(GetTimezoneError::OsError)` at runtime.
20fallback = []
21
22[target.'cfg(target_os = "android")'.dependencies]
23android_system_properties = "0.1.5"
24
25[target.'cfg(target_vendor = "apple")'.dependencies]
26core-foundation-sys = "0.8.6"
27
28[target.'cfg(target_os = "windows")'.dependencies]
29windows-core = ">=0.56, <=0.61"
30
31[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies]
32js-sys = "0.3.66"
33# Set a minimum, but unused, dependency on `log` to ensure that cfg-if 1.0.0
34# gets pulled in in a minimal versions build for the indirect dependency from
35# `wasm-bindgen`.
36log = "0.4.14"
37wasm-bindgen = "0.2.89"
38
39[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies]
40wasm-bindgen-test = "0.3.46"
41getrandom = { version = "0.2.1", features = ["js"] }
42
43[target.'cfg(target_os = "haiku")'.dependencies]
44iana-time-zone-haiku = { version = "0.1.1", path = "haiku" }
45
46[dev-dependencies]
47chrono-tz = "0.10.1"
48# Set a minimum, but unused, dependency on `getrandom` to ensure that cfg-if
49# 1.0.0 gets pulled in in a minimal versions build for the indirect dependency
50# from `chrono`.
51getrandom = "0.2.1"
52
53[workspace]
54members = [".", "haiku"]
55default-members = ["."]
56