309a152d58
Sixteen `Stroke::new(1.0, ...)` calls in the editor relied on a numeric
inference fallback that rustc is removing:
warning: falling back to `f32` as the trait bound `f32: From<f64>` is
not satisfied
= warning: this was previously accepted by the compiler but is being
phased out; it will become a hard error in a future release!
These were never clippy lints - a plain `cargo build` emitted all sixteen
- and they are not style. They are a dated compile break: the code stops
building on whichever release drops the fallback. Applied via `cargo fix`,
since rustc marks the suggestion machine-applicable; the diff is sixteen
literals gaining an `_f32` suffix and nothing else. The values were
already f32, just inferred.
Denying the future_incompatible group makes the next one a build failure
the day it appears rather than something that accumulates unnoticed until
a toolchain bump breaks the build on a day nobody chose. Verified by
reverting one literal: the build then fails with exit 101 instead of
warning.
Pinning rust-toolchain.toml was considered and rejected for this purpose.
It buys reproducibility, but it works against early warning - a pinned
toolchain finds out about the next deferred hard error later, not sooner.
Build warnings drop from 17 to 0. The 15 remaining clippy lints are
genuine style suggestions and are untouched, as is clippy's absence from
CI.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WHt4DykxXaQnyaJfyS8KCn
43 lines
1.7 KiB
TOML
43 lines
1.7 KiB
TOML
[package]
|
|
name = "bari_206"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
authors = ["Mikkeli Matlock <mikkeli@novoyuuparosk.org>"]
|
|
homepage = "https://github.com/mikkeli/codename-206"
|
|
description = "A VST3/CLAP multiband compressor/limiter with a custom gain-curve display"
|
|
# VST3 is on by default in nih_plug, and its bindings (vst3-sys) are GPLv3. Any
|
|
# distributed VST3 binary built with them must therefore be GPL-3.0-or-later
|
|
# (or covered by a commercial Steinberg licence). CLAP carries no such requirement.
|
|
license = "GPL-3.0-or-later"
|
|
|
|
[workspace]
|
|
members = ["xtask"]
|
|
|
|
[lib]
|
|
# `cdylib` is the plugin binary; `lib` (rlib) lets `cargo test` link the unit tests.
|
|
crate-type = ["cdylib", "lib"]
|
|
|
|
# Future-incompatibility warnings are deferred hard errors: rustc is telling you
|
|
# this code stops compiling on some later release. Denying the group turns that
|
|
# into a build failure the day it appears, rather than 16 of them accumulating
|
|
# unnoticed until a toolchain bump breaks the build on a day you did not choose.
|
|
# Style and clippy lints are deliberately untouched - they stay warnings.
|
|
[lints.rust]
|
|
future_incompatible = { level = "deny", priority = -1 }
|
|
|
|
[dependencies]
|
|
# Pinned to the exact commit of the local ./nih-plug reference clone so the build
|
|
# is reproducible and matches the examples we read from. Bump the `rev` together
|
|
# with `git -C nih-plug pull` when you want to update.
|
|
nih_plug = { git = "https://github.com/robbert-vdh/nih-plug.git", rev = "f36931f7af4646065488a9845d8f8c2f95252c23", features = ["assert_process_allocs"] }
|
|
nih_plug_egui = { git = "https://github.com/robbert-vdh/nih-plug.git", rev = "f36931f7af4646065488a9845d8f8c2f95252c23" }
|
|
|
|
[profile.release]
|
|
lto = "thin"
|
|
strip = "symbols"
|
|
|
|
[profile.profiling]
|
|
inherits = "release"
|
|
debug = true
|
|
strip = "none"
|