-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
72 lines (67 loc) · 2.13 KB
/
Copy pathCargo.toml
File metadata and controls
72 lines (67 loc) · 2.13 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
[workspace]
members = ["crates/fosfora-app"]
resolver = "3"
# Patch midir to allow alsa 0.11 (needed for cpal 0.17.3 compatibility on Linux).
# midir only uses alsa::seq (sequencer) APIs which are stable across 0.9-0.11.
# Remove this patch when midir publishes a version with alsa 0.11 support.
[profile.dev]
opt-level = 1
[profile.dev.package."*"]
opt-level = 2
[profile.release]
# Fat LTO: modest benefit for this GPU-bound app (helps CPU-side egui/audio),
# but increases compile time significantly vs "thin".
lto = "fat"
codegen-units = 1
[workspace.lints.clippy]
pedantic = { level = "warn", priority = -1 }
# Allow common patterns that pedantic flags but are fine in this codebase
module_name_repetitions = "allow"
must_use_candidate = "allow"
cast_precision_loss = "allow"
cast_possible_truncation = "allow"
cast_sign_loss = "allow"
too_many_lines = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
wildcard_imports = "allow"
struct_excessive_bools = "allow"
similar_names = "allow"
unreadable_literal = "allow"
many_single_char_names = "allow"
items_after_statements = "allow"
doc_markdown = "allow"
struct_field_names = "allow"
match_same_arms = "allow"
needless_pass_by_value = "allow"
needless_raw_string_hashes = "allow"
redundant_else = "allow"
# Style preferences — allowed to reduce noise on existing code
collapsible_if = "allow"
cast_lossless = "allow"
uninlined_format_args = "allow"
trivially_copy_pass_by_ref = "allow"
redundant_closure_for_method_calls = "allow"
map_unwrap_or = "allow"
if_not_else = "allow"
used_underscore_binding = "allow"
match_wildcard_for_single_variants = "allow"
single_match_else = "allow"
default_trait_access = "allow"
ignored_unit_patterns = "allow"
manual_let_else = "allow"
unnecessary_map_or = "allow"
collapsible_else_if = "allow"
borrow_as_ptr = "allow"
float_cmp = "allow"
needless_range_loop = "allow"
too_many_arguments = "allow"
unused_self = "allow"
cast_possible_wrap = "allow"
assigning_clones = "allow"
cloned_instead_of_copied = "allow"
ref_option = "allow"
# Require SAFETY comments on all unsafe blocks
undocumented_unsafe_blocks = "warn"
[patch.crates-io]
midir = { path = "patches/midir" }