• Technus@lemmy.zip
    link
    fedilink
    arrow-up
    5
    ·
    17 hours ago

    You can’t overwrite previously published versions.

    Application projects are recommended to check-in the Cargo.lock which pins dependency versions but you can always just run cargo update at any time which automatically upgrades all dependencies to the newest version allowed by the Cargo.toml.

    Some projects get around this by pinning the dependency in the Cargo.toml (using =) or by vendoring all their dependencies, which is a huge pain in the ass.