-
Notifications
You must be signed in to change notification settings - Fork 5
/
Cargo.toml
56 lines (46 loc) · 1.56 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
[package]
name = "ax-x86"
version = "0.6.0"
authors = ["xarantolus <[email protected]>"]
edition = "2021"
license = "AGPL-3.0"
homepage = "https://ax.010.one"
repository = "https://github.com/xarantolus/ax"
description = "x86 emulator for running simple binaries in your browser"
keywords = ["x86", "emulator", "wasm", "webassembly", "browser", "asm", "assembly", "elf"]
readme = "README.md"
build = "src/build.rs"
[lib]
crate-type = ["cdylib", "rlib"]
[[bin]]
name = "ax"
path = "src/bin.rs"
[features]
default = ["console_error_panic_hook"]
[dependencies]
wasm-bindgen = {version = "0.2.83", 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.6", optional = true }
js-sys = "0.3.60"
wasm-bindgen-futures = "0.4.33"
lazy_static = { version = "1.4.0", features = ["spin_no_std"] }
rand = { version = "0.8.5" }
getrandom = { version = "0.2.7", features = ["js"] }
serde = { version = "1.0", features = ["derive"] }
serde_derive = "1.0.144"
serde-wasm-bindgen = "0.4"
elf = "0.7.1"
async-std = { version = "1.12.0" }
[dependencies.iced-x86]
version = "1.17.0"
default-features = false
features = ["no_std", "decoder", "fast_fmt", "instr_info", "serde"]
[dev-dependencies]
wasm-bindgen-test = "0.3.13"
[profile.release]
# Tell `rustc` to optimize for small code size.
opt-level = "s"
lto = true