#cli #substrate #polkadot

app diener

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

6 releases

0.3.3 Apr 6, 2021
0.3.2 Mar 16, 2021
0.3.1 Feb 8, 2021
0.2.0 Sep 14, 2020
0.1.0 Sep 10, 2020

#470 in Command line utilities

Download history 40/week @ 2020-12-22 85/week @ 2020-12-29 172/week @ 2021-01-05 114/week @ 2021-01-12 13/week @ 2021-01-19 8/week @ 2021-01-26 34/week @ 2021-02-02 152/week @ 2021-02-09 131/week @ 2021-02-16 46/week @ 2021-02-23 25/week @ 2021-03-02 16/week @ 2021-03-09 24/week @ 2021-03-16 46/week @ 2021-03-23 66/week @ 2021-03-30 43/week @ 2021-04-06

257 downloads per month

Apache-2.0/MIT

21KB
382 lines

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

Usage

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 depdendency 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

Dependencies

~9MB
~208K SLoC