forked from abba23/spotify-adblock
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
72 lines (62 loc) · 2.39 KB
/
Cargo.toml
File metadata and controls
72 lines (62 loc) · 2.39 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 = ["spotify-adblock", "cef-sys"]
exclude = []
resolver = "2"
# Shared workspace dependencies for version consistency
[workspace.dependencies]
# Core dependencies
lazy_static = "1.5"
libc = "0.2"
regex = "1.10"
serde = { version = "1.0", features = ["derive"] }
serde_regex = "1.1"
toml = "0.9.8"
# Build dependencies
bindgen = "0.72.1"
cc = "1.0"
# THIS SECTION WAS MISSING - ADD IT:
[workspace.package]
authors = ["coleleavitt"]
edition = "2024" # Changed from "2024" to "2021"
license = "MIT"
repository = "https://github.com/coleleavitt/spotify-adblock"
rust-version = "1.85"
# Workspace-wide profiles
[profile.release]
lto = true # Link-time optimization
opt-level = 3 # Maximum optimization
panic = "abort" # Smaller binary size, critical for embedded
codegen-units = 1 # Better optimization
strip = "symbols" # Remove debug symbols in final binary
overflow-checks = true # Detect integer overflows, critical for safety
# For verification and testing
[profile.verify]
inherits = "release"
debug = true # Keep debug info for verification tools
debug-assertions = true # Enable assertions
overflow-checks = true # Critical safety check
# Development profile optimizations
[profile.dev]
opt-level = 1 # Some optimization for faster builds
overflow-checks = true # Safety checks in development
# Enforce memory safety and code quality workspace-wide
[workspace.lints.rust]
unsafe_code = "warn" # Track unsafe code usage
non_ascii_idents = "forbid" # Ensure readable identifiers
missing_debug_implementations = "warn"
missing_copy_implementations = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unused_import_braces = "warn"
unused_qualifications = "warn"
[workspace.lints.clippy]
all = "deny" # Enable all clippy lints
pedantic = "warn" # Strict code quality standards
nursery = "warn" # Experimental lints
cargo = "warn" # Cargo-specific lints
# Workspace metadata for tools
[workspace.metadata]
docs = { all-features = true, rustdoc-args = ["--cfg", "docsrs"] }
# Workspace patch section for any dependency overrides if needed
[patch.crates-io]
# Add any patches here if needed in the future