diener

Crates.iodiener
lib.rsdiener
version0.4.6
sourcesrc
created_at2020-09-10 16:04:16.75422
updated_at2022-12-28 13:01:21.683862
descriptiondependency diener is a tool for easily changing [Substrate](https://github.com/paritytech/substrate), [Polkadot](https://github.com/paritytech/polkadot) or [BEEFY](https://github.com/paritytech/grandpa-bridge-gadget) dependency versions
homepage
repositoryhttps://github.com/bkchr/diener
max_upload_size
id287077
size65,048
Bastian Köcher (bkchr)

documentation

https://docs.rs/diener

README

diener - dependency diener is a tool for easily changing Substrate or Polkadot dependency versions

Usage

You can find the full documentation on docs.rs.

Update

The update subcommand changes all Cargo.toml files in a given folder to use a specific branch/path/commit/tag.

Change all Substrate dependencies in a folder to a different branch:

diener update --substrate --branch diener-branch

Or you want to change Polkadot and Substrate dependencies to the same branch:

diener update --branch diener-branch-2

Diener also supports tag and rev as arguments.

If a dependency is belongs to Substrate or Polkadot is currently done by looking at the git url. It also only works for repos called substrate or polkadot.

Patch

The patch subcommand adds a patch section for each crate in a given cargo workspace to the workspace Cargo.toml file in some other cargo workspace.

Patch all Substrate git dependencies to be build from a given path:

diener patch --crates-to-patch ../path/to/substrate/checkout --substrate

This subcommand can be compared to .cargo/config without using a deprecated feature of Cargo ;)

License

Licensed under either of

at your option.

License: Apache-2.0/MIT

Commit count: 81

cargo fmt