-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
58 lines (50 loc) · 1.48 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
[package]
name = "wasm-backend"
version = "0.1.0"
authors = ["gfelber <@users.noreply.github.com>"]
edition = "2021"
license = "GPL-3"
description = "terminal backend in rust wasm"
repository = "https://github.com/gfelber/website"
links = "build.rs"
[lib]
crate-type = ["cdylib", "rlib"]
[features]
default = ["console_error_panic_hook", "console_log"]
[dependencies]
wasm-bindgen = "0.2.87"
# 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.7", optional = true }
ansi_term = "0.12.1"
lazy_static = { version = "1.4.0", features = [] }
console_log = { version = "1", features = ["color"], optional = true}
cfg-if = "1.0.0"
log = { version = "0.4", features = [] }
clap = { version = "4.4.4", features = ["derive"] }
serde = { version = "1.0", features = ["derive"] }
ron = "0.8"
wasm-bindgen-futures = "0.4.37"
chrono = { version = "0.4.31", features = [] }
[build-dependencies]
serde = { version = "1.0", features = ["derive"] }
ron = "0.8"
[dependencies.web-sys]
version = "0.3.64"
features = [
"Window",
"History",
"XmlHttpRequest",
"Request",
"RequestInit",
"RequestMode",
"Response",
"Window",
]
[dev-dependencies]
wasm-bindgen-test = "0.3.37"
[profile.release]
# Tell `rustc` to optimize for small code size.
opt-level = "s"