Skip to content

feat: improve Cargo.toml #940

Closed
Closed

Description

@georglauterbach

I would like to propose three improvements to Cargo.toml:

  1. 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"
    ]
  2. 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
  3. 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

  1. georglauterbach commented on Aug 16, 2026

    @georglauterbach
    ContributorAuthor

    @HalFrgrd If you're interested, I would offer a PR again - just let me know :)

  2. HalFrgrd commented on Aug 16, 2026

    @HalFrgrd
    Owner

    Sounds good to me! thanks

  3. added a commit that references this issue on Aug 19, 2026
    c175fe0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions