-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
83 lines (75 loc) · 2.66 KB
/
Cargo.toml
File metadata and controls
83 lines (75 loc) · 2.66 KB
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
[workspace]
resolver = "2"
members = [
"surplus-cli",
"surplus",
"surplus-wasm",
"surplus-test",
]
default-members = ["surplus-cli", "surplus", "surplus-test"]
[workspace.package]
edition = "2024"
authors = [
"Joshua Lee Junon (https://github.com/qix-)"
]
license = "MIT"
repository = "https://github.com/surplus/compiler.git"
[workspace.dependencies]
clap = { version = "4.5.34", features = ["derive"] }
oxc = { version = "0.61.2", features = ["semantic", "codegen", "minifier", "mangler"] }
oxc_traverse = "0.61.2"
syn = { version = "2.0.110", features = ["full"] }
proc-macro2 = "1.0.103"
quote = "1.0.42"
prettyplease = "0.2.37"
base64 = "0.22.1"
[workspace.lints.rust]
missing_docs = "warn"
elided_lifetimes_in_paths = "deny"
future-incompatible = "warn"
missing-unsafe-on-extern = "warn"
unused-lifetimes = "warn"
unused-qualifications = "warn"
unused-import-braces = "warn"
#unused-crate-dependencies = "warn" # TODO(qix-): Sadly, super bugged: https://github.com/rust-lang/rust/issues/57274
variant-size-differences = "warn"
trivial-numeric-casts = "warn"
unit-bindings = "warn"
unused-features = "warn" # TODO(qix-): Doesn't do what I'd like it to: https://github.com/rust-lang/rust/issues/23528
[workspace.lints.rustdoc]
all = { level = "deny", priority = -1 }
private_doc_tests = "allow"
private_intra_doc_links = "allow"
[workspace.lints.clippy]
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
missing_docs_in_private_items = "warn"
integer_division = "warn"
module_name_repetitions = "allow"
verbose_bit_mask = "allow"
too_many_lines = "allow"
missing_errors_doc = "allow"
struct_field_names = "allow"
items_after_statements = "allow"
cast_possible_truncation = "allow" # TODO(qix-): Temporary until the virt/phys types land.
assertions_on_constants = "allow"
new_without_default = "allow"
needless_doctest_main = "allow"
tabs_in_doc_comments = "allow"
redundant_closure_for_method_calls = "allow"
#undocumented_unsafe_blocks = "warn"
[profile.dev]
panic = "abort" # Use "abort" panic strategy
debug = "full" # Full debugging symbols
[profile.release]
opt-level = 3 # Maximum optimizations
lto = "fat" # Perform LTO across all crates
codegen-units = 1 # Reduce number of codegen units to increase optimizations.
strip = true # Strip symbols from binary
incremental = false # Disable incremental building
panic = "abort" # Use "abort" panic strategy
debug = 0 # Do not generate debug information
[profile.relwithdebinfo]
inherits = "release"
debug = "full" # Full debugging symbols
strip = false # Don't strip symbols from binary