-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
62 lines (49 loc) · 1.49 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
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[package]
name = "fplc"
version = "0.9.517"
edition = "2021"
description = "A pseudolang interpreter written in Rust"
repository = "https://github.com/PseudoLang-Software-Foundation/Pseudolang"
license = "MIT"
[lib]
crate-type = ["cdylib", "rlib"]
[[bin]]
name = "fplc"
path = "src/main.rs"
[package.metadata.wasm-pack]
profile.release.wasm-opt = ["-Oz"]
[profile.dev]
panic = "abort"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"
strip = true
[dependencies]
rand = "0.8.5"
chrono = { version = "0.4", optional = true }
chrono-tz = { version = "0.10.0", optional = true }
wasm-bindgen = "0.2"
console_error_panic_hook = "0.1"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
chrono = "0.4"
chrono-tz = "0.10.0"
[target.'cfg(target_os = "windows")'.dependencies]
winapi = { version = "0.3", features = ["winuser"] }
[target.'cfg(unix)'.dependencies]
libc = "0.2"
[target.'cfg(target_os = "macos")'.dependencies]
libc = "0.2"
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = { version = "0.2", optional = true }
console_error_panic_hook = { version = "0.1", optional = true }
getrandom = { version = "0.2", features = ["js"] }
wasi = { version = "0.11", optional = true }
[features]
default = ["native"]
native = ["chrono", "chrono-tz"]
wasm = ["wasm-bindgen", "console_error_panic_hook"]
wasi = ["dep:wasi"]
bindgen = ["wasm-bindgen", "console_error_panic_hook"]