-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
67 lines (53 loc) · 2.07 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
[package]
name = "aplang"
version = "0.1.10"
edition = "2021"
authors = ["Patrick Unick", "Eli Fischl"]
description = "A programming language made to aid students who are taking AP Computer Science Principals."
documentation = "https://aplang.org/book/"
readme = "README.md"
homepage = "https://aplang.org/"
license = "GPL-3.0-or-later"
keywords = ["aplang", "ap", "programming", "language", "apcsp"]
categories = ["compilers", "wasm"]
repository = "https://github.com/snowfoxsh/aplang"
default-run = "aplang"
# see more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[profile.release]
lto = true
opt-level = 3
[lib]
crate-type = ["cdylib", "rlib"]
name = "aplang_lib"
[dependencies]
cfg-if = "1.0.0"
mapro = "0.1.1"
owo-colors = "4.1.0"
thiserror = "2.0.11"
rand = { version = "0.9.0" }
getrandom = { version = "0.3.1"}
# dependencies based on features
clap = { version = "4.5.18", features = ["derive"], optional = true } # bin
miette = { version = "7.2.0", optional = true } # both
stacker = { version = "0.1.17", optional = true } # native
wasm-bindgen = { version = "0.2.93", optional = true } # wasm
js-sys = { version = "0.3.70", optional = true } # wasm
web-sys = { version = "0.3.77", optional = true } # wasm
[features]
# "native" feature for non-wasm platforms, enabling native dependencies
native = ["miette/fancy", "stacker", "clap/suggestions", "clap/color"]
# "portable" allows for fully static linking at the cost of low stack size
# cargo build --no-default-features --features portable
portable = ["miette/fancy-no-syscall", "clap"]
splash = []
# YOU SHALL NOT RUN AS A BINARY WITH THE WASM FEATURE!
# "wasm" feature, enabling wasm-specific dependencies
# cargo build --no-default-features --features wasm
# RUSTFLAGS='--cfg getrandom_backend="wasm_js"'
# you must set these flags to build for wasm
wasm = ["miette/fancy-no-syscall", "getrandom/wasm_js", "wasm-bindgen", "js-sys", "web-sys"]
# default is empty, so you can explicitly opt-in to "wasm"
default = ["native", "splash"]
[dev-dependencies]
assert_cmd = "2.0.16"
#predicates = "3.1.3"