-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCargo.toml
64 lines (51 loc) · 1.78 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
[package]
name = "zinzen"
version = "0.2.1"
edition = "2021"
license = "AGPL-3.0-or-later"
keywords = ["zinzen", "scheduler", "todo"]
description = "Algorithm for auto-scheduling time-constrained tasks on a timeline"
homepage = "https://github.com/tijlleenders/ZinZen-scheduler"
repository = "https://github.com/tijlleenders/ZinZen-scheduler"
readme = "README.md"
categories = ["algorithms", "date-and-time", "wasm"]
[features]
experimental-testset = []
skip-test-generation = []
with-logging = []
new-tests = []
default = ["new-tests", "with-logging"]
[lib]
#see https://github.com/rust-lang/cargo/issues/6659#issuecomment-463335095
crate-type = ['cdylib', 'lib']
name = 'scheduler'
path = "src/lib.rs"
[profile.release]
lto = true
debug = false
# Tell `rustc` to optimize for small code size s or speed 2 / 3.
opt-level = 3
[package.metadata.wasm-pack.profile.release]
wasm-opt = ["-O4", "--enable-bulk-memory"]
[dependencies]
serde_json = "1.0.132"
serde = { version = "1.0.213", features = ["derive"] }
chrono = { version = "0.4.38", features = ["wasmbind", "serde"] }
lazy_static = "1.5.0"
wasm-bindgen = { version = "0.2", features = ["serde-serialize"] }
# instead of wasm-bindgen::serde-serialize feature that may lead to a cyclic package dependency
serde-wasm-bindgen = "0.6.5"
# display Rust panics as console.error()
console_error_panic_hook = "0.1.7"
# display logs
log = "0.4.22"
env_logger = "0.11.5"
# random number generator for tests
rand = "0.9.0-alpha.2"
# getrandom with js features should be included to make sure the wasm-unknown build target can use the crate in js context (even though we only use this crate in test code)
getrandom = { version = "0.2", features = ["js"] }
[dev-dependencies]
pretty_assertions = "1.4.1"
wasm-bindgen-test = "0.3.45"
[build-dependencies]
cc = "1.1.31"