-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
171 lines (143 loc) · 3.88 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
[workspace]
members = [".", "spcasm_derive", "spcasm-web", "sals", "sapemu", "spcfile"]
[package]
version.workspace = true
edition.workspace = true
rust-version.workspace = true
authors.workspace = true
license-file.workspace = true
homepage.workspace = true
repository.workspace = true
name = "spcasm"
description = "A modern, user-friendly SPC700 assembler."
keywords = ["spc-700", "s-smp", "snes"]
categories = [
"compilers",
"command-line-utilities",
"development-tools",
"multimedia::audio",
]
exclude = ["tests", "doc", ".github", ".vscode", "include"]
build = "build.rs"
default-run = "spcasm"
[workspace.package]
version = "1.2.0"
edition = "2021"
rust-version = "1.83"
authors = ["kleines Filmröllchen <filmroellchen@serenityos.org>"]
license-file = "LICENSE"
homepage = "https://spcasm.filmroellchen.eu/"
repository = "https://github.com/kleinesfilmroellchen/spcasm"
[lib]
name = "spcasm"
path = "src/lib.rs"
required-features = []
[[bin]]
name = "spcasm"
# shut up cargo
path = "src/../src/lib.rs"
required-features = ["binaries"]
test = false
bench = false
[[bin]]
name = "brr"
path = "src/brr/cli.rs"
required-features = ["binaries"]
test = false
bench = false
[features]
default = ["binaries"]
binaries = ["dep:clap", "dep:object", "dep:shadow-rs"]
[dependencies]
object = { version = "0.36", features = [
"write_core",
"write_std",
"elf",
], optional = true, default-features = false }
parking_lot = "0.12"
thiserror = "2"
lalrpop-util = { git = "https://github.com/lalrpop/lalrpop", rev = "b8b82e9ecde5ca531efd13ce1beb9c1c5fa488a1" }
num-traits = "0.2"
num-derive = "0.4"
arrcat = "0.1"
proc-macro2 = "^1.0.87"
human-panic = { version = "2", optional = true }
flexstr = { version = "0.9.2", features = ["int_convert", "serde"] }
hound = "3.5.1"
[dependencies.miette]
# TODO: figure out how to use fancy-no-backtrace without breaking the wasm build
features = ["fancy-no-syscall"]
version = "7"
# Only compile clap for the CLIs.
[dependencies.clap]
version = "4"
optional = true
features = ["derive", "wrap_help", "string"]
[dependencies.spcasm_derive]
path = "spcasm_derive"
version = "1.2.0"
[dependencies.shadow-rs]
version = "0.36"
optional = true
default-features = false
features = ["metadata"]
[dev-dependencies]
trycmd = { version = "0.15", default-features = false, features = [
"filesystem",
] }
reqwest = { version = "0.12", features = ["blocking"] }
[build-dependencies]
lalrpop = { git = "https://github.com/lalrpop/lalrpop", rev = "b8b82e9ecde5ca531efd13ce1beb9c1c5fa488a1", default-features = false }
# lalrpop = { version = "0.22", default-features = false }
[build-dependencies.shadow-rs]
version = "0.36"
optional = true
default-features = false
[profile.release]
opt-level = "s"
lto = true
debug-assertions = false
debug = false
[profile.bench]
opt-level = 3
debug = 2
lto = "thin"
debug-assertions = true
incremental = true
# This is the actual release profile; wasm-pack can't use custom profiles so we reserve "release" for it.
[profile.spcasm-fastrelease]
inherits = "release"
lto = "thin"
opt-level = 3
incremental = true
# development profile for performance testing, similar to "bench"
[profile.perfcheck]
inherits = "spcasm-fastrelease"
debug = 2
debug-assertions = true
[profile.spcasm-release]
inherits = "spcasm-fastrelease"
lto = "fat"
incremental = false
# Cross configuration
[package.metadata.cross.target.x86_64-unknown-linux-gnu]
pre-build = [
"apt-get update && apt-get install -y openssl clang",
] # openssl seems to be outdated otherwise
[workspace.lints.rust]
missing_docs = { level = "deny", priority = -10 }
unused = { level = "deny", priority = -10 }
non_upper_case_globals = "allow"
incomplete_features = "allow"
# wasm_bindgen messed up
unexpected_cfgs = { level = "allow", check-cfg = [
'cfg(wasm_bindgen_unstable_test_coverage)',
] }
[workspace.lints.clippy]
all = "deny"
pedantic = "deny"
nursery = "deny"
[workspace.lints.rustdoc]
all = "deny"
[lints]
workspace = true