mirror of
https://github.com/getnora-io/nora.git
synced 2026-04-12 06:50:31 +00:00
chore: add workspace clippy lints, release profiles, COMPAT.md, diff-registry.sh (#119)
- Workspace clippy lints: or_fun_call, redundant_clone, collection_is_never_read, naive_bytecount, stable_sort_primitive, large_types_passed_by_value, assigning_clones - Fix or_fun_call in cargo_registry.rs (unwrap_or -> unwrap_or_else) - Release profiles: release (thin LTO) + release-official (full LTO, codegen-units=1) - COMPAT.md: protocol compatibility matrix for all 7 registries (40 endpoints) - scripts/diff-registry.sh: differential smoke tests (Docker/npm/Cargo/PyPI/Go/Raw)
This commit is contained in:
24
Cargo.toml
24
Cargo.toml
@@ -26,3 +26,27 @@ sha2 = "0.11"
|
||||
async-trait = "0.1"
|
||||
hmac = "0.13"
|
||||
hex = "0.4"
|
||||
|
||||
[workspace.lints.clippy]
|
||||
or_fun_call = "deny"
|
||||
redundant_clone = "deny"
|
||||
collection_is_never_read = "deny"
|
||||
naive_bytecount = "deny"
|
||||
stable_sort_primitive = "deny"
|
||||
large_types_passed_by_value = "deny"
|
||||
assigning_clones = "deny"
|
||||
|
||||
[workspace.lints.rust]
|
||||
unexpected_cfgs = { level = "warn", check-cfg = [] }
|
||||
|
||||
[profile.release]
|
||||
debug = "line-tables-only"
|
||||
codegen-units = 4
|
||||
panic = "abort"
|
||||
lto = "thin"
|
||||
|
||||
# Maximum optimization for GitHub Releases and published binaries
|
||||
[profile.release-official]
|
||||
inherits = "release"
|
||||
codegen-units = 1
|
||||
lto = true
|
||||
|
||||
Reference in New Issue
Block a user