Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
64 lines (58 loc) · 1.76 KB
/
Copy pathCargo.toml
File metadata and controls
64 lines (58 loc) · 1.76 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
[workspace]
resolver = "3"
members = ["crates/*", "plugins/*"]
[workspace.package]
version = "0.5.1"
edition = "2024"
rust-version = "1.90"
license = "MIT"
authors = ["Alexandre Guimarães Malucelli"]
repository = "https://github.com/amalucelli/dffy"
readme = "README.md"
[workspace.lints.rust]
unsafe_code = "deny"
unused_qualifications = "warn"
let_underscore_drop = "warn"
unreachable_pub = "warn"
[workspace.lints.clippy]
all = { level = "deny", priority = -1 }
pedantic = { level = "warn", priority = -1 }
cargo = { level = "warn", priority = -1 }
# The duplicates are transitive and can't be unified from here: syn 2 and 3
# (gix's and clap's proc macros), bitflags 1 and 2 (portable-pty, a
# dev-dependency) and defmt (gix's faster-hex). Cargo has no `expect` level.
multiple_crate_versions = "allow"
unwrap_used = "warn"
dbg_macro = "warn"
todo = "warn"
allow_attributes = "warn"
allow_attributes_without_reason = "warn"
undocumented_unsafe_blocks = "warn"
multiple_unsafe_ops_per_block = "warn"
panic = "warn"
expect_used = "warn"
exit = "warn"
mem_forget = "warn"
rc_mutex = "warn"
clone_on_ref_ptr = "warn"
str_to_string = "warn"
rest_pat_in_fully_bound_structs = "warn"
use_self = "warn"
redundant_clone = "warn"
or_fun_call = "warn"
[profile.dev]
debug = "line-tables-only"
# Cargo's macOS default, unpacked, leaves debug info in the object files and
# has the binary point at them, so every incremental rebuild adds a full set
# of new object files to the unit's directory and none is ever removed.
# Packed collects it into one .dSYM (.dwp on Linux) next to the binary.
split-debuginfo = "packed"
# `--profile debugging`: full debug info, for a debugger.
[profile.debugging]
inherits = "dev"
debug = true
[profile.release]
lto = "fat"
codegen-units = 1
panic = "abort"
strip = true