49 lines
1015 B
TOML
49 lines
1015 B
TOML
[package]
|
|
name = "ducklang"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
lazy_static = "1.4.0"
|
|
pest = "2.7.5"
|
|
pest_derive = "2.7.5"
|
|
termion = "2.0.3"
|
|
# web
|
|
egui = "0.24.0"
|
|
eframe = { version = "0.24.0", default-features = false, features = [
|
|
"default_fonts", # Embed the default egui fonts.
|
|
"glow", # Use the glow rendering backend. Alternative: "wgpu".
|
|
] }
|
|
|
|
[lib]
|
|
name = "ducklang"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "duck_parser"
|
|
path = "src/parser/duck_parser.rs"
|
|
|
|
[[bin]]
|
|
name = "duck_interpreter"
|
|
path = "src/interpreter/duck_interpreter.rs"
|
|
|
|
[[bin]]
|
|
name = "duck_web"
|
|
path = "src/web/main.rs"
|
|
|
|
# native:
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
tracing-subscriber = "0.3.18"
|
|
|
|
# web:
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
console_error_panic_hook = "0.1.7"
|
|
tracing-wasm = "0.2.1"
|
|
wasm-bindgen-futures = "0.4.39"
|
|
|
|
[profile.release]
|
|
opt-level = 's'
|
|
lto = true
|