timonpost / cargo-dependency-inheritor Goto Github PK
View Code? Open in Web Editor NEWUtility to inherit dependencies from workspace file if it occurs 'n' or more times throughout the project.
License: Apache License 2.0
Utility to inherit dependencies from workspace file if it occurs 'n' or more times throughout the project.
License: Apache License 2.0
before:
dep = { git = "https://github.com/org/repo", rev = "longhexstring" }
after:
dep = "*"
Needless to say, this doesn't work :)
Currently dependencies with a path
attribute are also specifying a version when auto generated, i.e. version = "*"
. It's better to omit this, the only restriction it adds is that it prevents you from using pre-release versions of a crate that you have vendored in. This can result in the path attribute being ignored, leading to some very confusing builds.
Rust on Windows can correctly use /
but Rust on Linux cannot correctly use \
, so this tool should never output \
into a path attribute for a dependency.
I think dev-dependencies
are ignored in the released version on crates.io , but installing from git fixes that.
I have some dependencies which use a different registry
.
e.g.
foobar = { version = "=0.20.1", registry = "my-private-registry" }
Running cargo-dependency-inheritor causes them to be deleted.
Should add a license to the repo (not just the crate Cargo.toml), would recommend Rust standard MIT OR Apache-2.0
over only MIT
$ cargo +beta dependency-inherit -n 2
error: no such subcommand: `dependency-inherit`
Did you mean `dependency-inheritor`?
View all installed commands with `cargo --list`
$ cargo +beta dependency-inheritor -n 2
error: The subcommand 'dependency-inheritor' wasn't recognized
Did you mean 'dependency-inherit'?
If you believe you received this message in error, try re-running with 'cargo -- dependency-inheritor'
USAGE:
cargo <SUBCOMMAND>
For more information try --help
$ cargo +beta --version
cargo 1.65.0-beta.1 (082503982 2022-09-13)
System is Windows 11 with MSVC target.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.