cargo-patch

Cargo Subcommand for patching dependencies using patch files (by itmettkeDE)

Cargo-patch Alternatives

Similar projects and alternatives to cargo-patch

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better cargo-patch alternative or higher similarity.

cargo-patch reviews and mentions

Posts with mentions or reviews of cargo-patch. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-06-23.
  • Rust for the Kernel Could Possibly Be Merged for Linux 5.20
    13 projects | news.ycombinator.com | 23 Jun 2022
    First commit 2 months ago, started with edition 2021. https://hg.sr.ht/~cyplo/legdur/browse/Cargo.toml?rev=ca11815...

    Have you tried compiling something less than bleeding edge, with a year old compiler, or are you picking projects specifically to "showcase" the supposed failings of the Rust compiler?

    Many libraries in the ecosystem have a MSRV (minimum support rust version) guarantee, with compile-time shims to enable newer features if a more recent version is detected.

    You can pin your dependencies to those versions (and if they don't have an explicit MSRV, just pin it to a version by date or by running https://github.com/foresterre/cargo-msrv on the project to find the effective MSRV).

    You can cargo install specific versions of a binary crate, and if they move to the 2021 edition, or use a recently stabilized standard library function or w/e, you can simply choose to install a specific version, that would work with your distro's rustc/cargo.

    I'm not even talking about the completely valid, but last resort strategy of many non-bleeding edge distro package maintainers, of simply creating a .patch file and applying it. In legdur's case, --- edition = "2021" +++ edition = "2018" on Cargo.toml would probably do the trick. For libraries/binaries you control, you can use https://doc.rust-lang.org/cargo/reference/overriding-depende... and https://github.com/itmettkeDE/cargo-patch.

    Giving up after the first minor roadblock and crying bloody murder is intellectually lazy.

Stats

Basic cargo-patch repo stats
1
58
4.4
5 months ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com