-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathCargo.toml
More file actions
123 lines (106 loc) · 3.12 KB
/
Cargo.toml
File metadata and controls
123 lines (106 loc) · 3.12 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
[workspace]
resolver = "2"
members = [
"provider",
"temporal_capi",
"zoneinfo",
# Tools
"tools/*",
]
[workspace.package]
edition = "2021"
version = "0.2.0"
rust-version = "1.83.0"
authors = ["boa-dev"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/boa-dev/temporal"
readme = "./README.md"
exclude = [
"docs/*",
".github/*",
"debug/",
".gitignore",
"CONTRIBUTING.md",
"cliff.toml",
"tests/data/zoneinfo64.res",
]
[workspace.dependencies]
# Self
temporal_rs = { version = "0.2.0", path = ".", default-features = false }
timezone_provider = { version = "0.2.0", path = "./provider", default-features = false }
zoneinfo_rs = { version = "0.1.0", path = "./zoneinfo", default-features = false }
# Dependencies
rustc-hash = "2.1.0"
num-traits = { version = "0.2.19", default-features = false }
iana-time-zone = "0.1.64"
log = "0.4.28"
tzif = "0.4.0"
jiff-tzdb = "0.1.4"
combine = "4.6.7"
web-time = "1.1.0"
# ICU4X
tinystr = "0.8.0"
icu_calendar = { version = "2.1.0", default-features = false, features = ["unstable"] }
icu_locale_core = "2.1.0"
zerovec = "0.11.0"
databake = "0.2.0"
zerotrie = "0.2.0"
writeable = "0.6.0"
zoneinfo64 = "0.2.0"
ixdtf = "0.6.4"
# Diplomat
diplomat-tool = { version = "0.14.0", default-features = false }
diplomat-runtime = { version = "0.14.0", default-features = false }
diplomat = { version = "0.14.0", default-features = false }
[package]
name = "temporal_rs"
keywords = ["date", "time", "calendar", "timezone", "duration"]
categories = ["date-and-time", "internationalization"]
description = "Temporal in Rust is an implementation of the TC39 Temporal Builtin Proposal in Rust."
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true
readme.workspace = true
exclude.workspace = true
[dependencies]
core_maths = "0.1.1"
icu_calendar = { workspace = true, features = ["compiled_data"] }
icu_locale_core.workspace = true
ixdtf = { workspace = true, features = ["duration"] }
num-traits.workspace = true
tinystr.workspace = true
writeable.workspace = true
# log feature
log = { workspace = true, optional = true }
# tzdb feature
timezone_provider = { workspace = true }
# System time feature
web-time = { workspace = true, optional = true }
iana-time-zone = { workspace = true, optional = true }
[dev-dependencies]
timezone_provider = { workspace = true, features = ["zoneinfo64", "experimental_tzif"] }
zoneinfo64 = { workspace = true }
resb = "0.1.0"
[features]
default = ["sys-local"]
log = ["dep:log"]
compiled_data = ["tzdb"]
sys = ["std", "compiled_data", "dep:web-time"]
sys-local = ["sys", "dep:iana-time-zone"]
tzdb = [
"std",
"timezone_provider/tzif",
]
std = []
# https://github.com/boa-dev/temporal/issues/613
# ECMA-conformant implementations must store durations as float64-representable numbers
# Rust users probably should not enable this, unless they wish to match the quirks of JavaScript
float64_representable_durations = []
[package.metadata.cargo-all-features]
denylist = ["default"]
max_combination_size = 4
[package.metadata.docs.rs]
all-features = true