-
Notifications
You must be signed in to change notification settings - Fork 6
/
Cargo.toml
77 lines (62 loc) · 2.16 KB
/
Cargo.toml
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
[package]
name = "opening-hours"
version = "0.11.0"
authors = ["Rémi Dupré <[email protected]>"]
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/remi-dupre/opening-hours-rs"
documentation = "https://docs.rs/opening-hours"
homepage = "https://github.com/remi-dupre/opening-hours-rs"
description = "A parser and evaluation tool for the opening_hours fields in OpenStreetMap."
edition = "2021"
exclude = ["dist/"] # generated by maturin
build = "opening-hours/build.rs"
[package.metadata.docs.rs]
all-features = true # include all features in documentation for docs.rs
[workspace]
members = ["compact-calendar", "opening-hours-syntax", "opening-hours-py", "fuzz"]
[lib]
path = "opening-hours/src/lib.rs"
[features]
# Disable timeout behavior for performance tests. This is useful when tests
# need to be in slow environments or with high overhead, for example when
# measuring coverage.
disable-test-timeouts = []
default = ["log"]
auto-country = ["dep:country-boundaries"]
auto-timezone = ["dep:chrono-tz", "dep:tzf-rs"]
log = ["opening-hours-syntax/log", "dep:log"]
[dependencies]
chrono = "0.4"
compact-calendar = { path = "compact-calendar", version = "0.11.0" }
flate2 = "1.0"
opening-hours-syntax = { path = "opening-hours-syntax", version = "0.11.0" }
sunrise-next = "1.2"
# Feature: log (default)
log = { version = "0.4", features = [ "kv" ], optional = true }
# Feature: auto-country
country-boundaries = { version = "1.2", optional = true }
# Feature: auto-timezone
chrono-tz = { version = "0.10", optional = true }
tzf-rs = { version = "0.4", default-features = false, optional = true }
[build-dependencies]
chrono = "0.4"
compact-calendar = { path = "compact-calendar", version = "0.11.0" }
country-boundaries = { version = "1.2", optional = true }
flate2 = "1.0"
rustc_version = "0.4.0"
[dev-dependencies]
chrono-tz = "0.10"
criterion = "0.5"
[[bin]]
name = "schedule"
path = "opening-hours/src/bin/schedule.rs"
[[bench]]
name = "benchmarks"
harness = false
path = "opening-hours/benches/benchmarks.rs"
[profile.dev.package.flate2]
opt-level = 3 # build script will run substantially faster for dev
[profile.bench]
codegen-units = 1
lto = "fat"