-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
62 lines (55 loc) · 1.74 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
[workspace]
members = ["crates/cli", "crates/lib", "crates/macro", "e2e-tests"]
resolver = "2"
[workspace.package]
version = "0.3.0-beta.1"
edition = "2021"
rust-version = "1.76"
authors = ["Alex Ostrovski <[email protected]>"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/slowli/externref"
[workspace.dependencies]
# General-purpose dependencies
anyhow = "1.0.93"
clap = { version = "4.5.20", features = ["derive", "wrap_help"] }
dlmalloc = "0.2.7"
once_cell = "1.20.2"
predicates = { version = "3.1.2", default-features = false }
proc-macro2 = "1.0"
quote = "1.0"
syn = "2.0"
tracing = "0.1.40"
tracing-subscriber = "0.3.18"
walrus = "0.22.0"
# Test dependencies
assert_matches = "1.5.0"
doc-comment = "0.3.3"
term-transcript = { version = "=0.4.0-beta.1", features = ["portable-pty"] }
test-casing = "0.1.3"
tracing-capture = "0.1.0"
trybuild = "1.0.101"
version-sync = "0.9.4"
wasmtime = "25.0.2"
wat = "1.219.1"
# Internal dependencies
externref-macro = { version = "=0.3.0-beta.1", path = "crates/macro" }
externref = { version = "=0.3.0-beta.1", path = "crates/lib", default-features = false }
# ^ We require an exact version in order to simplify crate evolution (e.g., to not worry
# that future internal changes in macro implementations will break previous versions
# of the `externref` crate).
# Profile for WASM modules generated in E2E tests
[profile.wasm]
inherits = "release"
panic = "abort"
codegen-units = 1
opt-level = "z" # Optimize for size, rather than speed
lto = true
# Profile for workspace executables
[profile.executable]
inherits = "release"
strip = true
codegen-units = 1
lto = true
# Required to properly inline surrogate `externref`s (see "Limitations" in the crate docs)
[profile.dev.package.externref-test]
debug = 1