-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
47 lines (41 loc) · 1.2 KB
/
Cargo.toml
File metadata and controls
47 lines (41 loc) · 1.2 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
[package]
name = "cpnsim"
version = "0.4.8"
authors = ["István Koren"]
edition = "2024"
license = "MIT"
description = "CPNsim is a Rust library and command-line tool with WebAssembly target for simulating Colored Petri Nets (CPNs)"
repository = "https://github.com/rwth-pads/cpnsim"
[lib]
crate-type = ["cdylib", "rlib"]
[features]
default = []
wasm = [
"wasm-bindgen",
"js-sys",
"serde-wasm-bindgen",
"getrandom/wasm_js",
"rhai/wasm-bindgen",
"web-sys",
]
[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
cfg-if = "1.0"
rand = "0.9.1"
rand_distr = "0.5"
rhai = { version = "1.21.0", features = ["sync", "decimal", "serde"] }
anyhow = "1.0"
itertools = "0.14.0"
chrono = { version = "0.4", features = ["serde"] }
# Conditional dependencies for wasm builds
wasm-bindgen = { version = "0.2.100", optional = true }
js-sys = { version = "0.3", optional = true }
serde-wasm-bindgen = { version = "0.6.5", optional = true }
web-sys = { version = "0.3", optional = true, features = ["console"] }
getrandom = { version = "0.3", features = ["wasm_js"] }
[dev-dependencies]
wasm-bindgen-test = "0.3.37"
[profile.release]
# Optimize for small Wasm binary size
opt-level = "s"