-
Notifications
You must be signed in to change notification settings - Fork 20
/
Cargo.toml
105 lines (92 loc) · 2.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# Disabled for now since it was ICEing
# cargo-features = ["codegen-backend"]
[workspace]
resolver = "2"
members = ["tetanes", "tetanes-core", "tetanes-utils"]
[workspace.package]
version = "0.11.0"
rust-version = "1.78.0"
edition = "2021"
license = "MIT OR Apache-2.0"
authors = ["Luke Petherbridge <[email protected]>"]
readme = "README.md"
documentation = "https://docs.rs/tetanes"
repository = "https://github.com/lukexor/tetanes.git"
homepage = "https://lukeworks.tech/tetanes"
[workspace.lints.clippy]
all = { level = "warn", priority = -1 }
missing_const_for_fn = "warn"
print_literal = "warn"
[workspace.lints.rust]
future_incompatible = "warn"
nonstandard_style = "warn"
rust_2018_compatibility = "warn"
rust_2018_idioms = "warn"
rust_2021_compatibility = "warn"
unused = "warn"
[workspace.dependencies]
anyhow = "1.0"
bincode = "1.3"
cfg-if = "1.0"
clap = { version = "4.5", default-features = false, features = [
"std",
"help",
"usage",
"suggestions",
"derive",
] }
dirs = "5.0"
image = { version = "0.25", default-features = false, features = ["png"] }
puffin = "0.19"
serde = { version = "1.0", features = ["derive"] }
tetanes-core = { version = "0.11", path = "tetanes-core" }
thiserror = "1.0.58"
tracing = { version = "0.1", default-features = false, features = [
"std",
"release_max_level_info",
] }
tracing-subscriber = "0.3"
serde_json = "1.0"
web-time = "1.0"
web-sys = "0.3"
# Playable framerates in development
[profile.dev]
opt-level = 1
# TODO: Would be nice to move lto to `dist` but Trunk doesn't support profiles yet
# See: https://github.com/trunk-rs/trunk/issues/605
[profile.release]
codegen-units = 1
lto = true
# See: https://smallcultfollowing.com/babysteps/blog/2024/05/02/unwind-considered-harmful/
panic = "abort"
[profile.flamegraph]
inherits = "release"
debug = true
[profile.dist]
inherits = "release"
strip = true
[profile.dev.package."*"]
opt-level = 2
[workspace.metadata.cross.target.x86_64-unknown-linux-gnu]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"""apt update && apt install -y \
libudev-dev:$CROSS_DEB_ARCH \
libssl-dev:$CROSS_DEB_ARCH \
libasound2-dev:$CROSS_DEB_ARCH
""",
]
[workspace.metadata.cross.target.aarch64-unknown-linux-gnu]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"""apt update && apt install -y \
libudev-dev:$CROSS_DEB_ARCH \
libssl-dev:$CROSS_DEB_ARCH \
libasound2-dev:$CROSS_DEB_ARCH
""",
]
[workspace.metadata.wix]
upgrade-guid = "DB76CEB0-15B8-4727-9C3E-55819AB5E7B9"
path-guid = "5731AE63-80DE-4CD7-ADFA-9E79BEDCE08B"
license = false
eula = false