You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to propose three improvements to Cargo.toml:
The [workspace] section can be improved. The resolver version is implicitly set by the edition (later), no need to specify it. The same goes for ".", which is not necessary AFAIK because Cargo picks it up automatically.
[workspace]
members = [
"crates/flycontent",
"crates/flycontent"
]
You specify dependencies like libc with a patch level, but you do not pin the patch level. This is a Cargo idiosyncrasy: libc = "x.y.z" does not actually pin to x.y.z, but to x.y.*. If you really want x.y.z, use =x.y.z.
Proposal: Drop the patch version unless really required and if required, pin with the "=" prefix
IMO most importantly, the project should start linting the code with clippy. Clippy is an extremely powerful tool that, used correctly, aids tremendously while developing software.
Proposal: I'd implement lints step-by-step by adding them to Cargo.toml and then fixing the parts of the code that trigger the lints.
Activity
georglauterbach commentedon Aug 16, 2026
@HalFrgrd If you're interested, I would offer a PR again - just let me know :)
HalFrgrd commentedon Aug 16, 2026
Sounds good to me! thanks
feat: improve `Cargo.toml` & introduce basic clippy (HalFrgrd#941)