-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cargo.toml
46 lines (38 loc) · 1.23 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
[package]
name = "airspace-visualizer"
description = "Visualize Skytraxx airspaces. Made with Rust + Webassembly."
version = "0.1.0"
authors = ["Danilo Bargen <[email protected]>"]
license = "AGPL-3.0"
repository = "https://github.com/dbrgn/airspace-visualizer"
edition = "2021"
publish = false
[lib]
crate-type = ["cdylib", "rlib"]
[features]
default = ["console_error_panic_hook", "console_log"]
[dependencies]
cfg-if = "1"
js-sys = "0.3"
openair = { version = "0.3.1", features = ["serde"] }
serde = { version = "1", features = ["derive"] }
serde-wasm-bindgen = "0.6"
wasm-bindgen = { version = "=0.2.95", features = ["serde-serialize"] }
# The `console_error_panic_hook` crate provides better debugging of panics by
# logging them with `console.error`. This is great for development, but requires
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
# code size when deploying.
console_error_panic_hook = { version = "0.1.1", optional = true }
# Add logging support
log = "0.4"
console_log = { version = "1", optional = true }
[dependencies.web-sys]
version = "0.3"
features = [
"console",
]
[dev-dependencies]
wasm-bindgen-test = "0.3"
[profile.release]
# Tell `rustc` to optimize for small code size.
opt-level = "s"