Skip to content

Commit

Permalink
Release 0.6.0
Browse files Browse the repository at this point in the history
srtool-cli@0.6.0
srtool-lib@0.6.0

Generated by cargo-workspaces
  • Loading branch information
chevdor committed Jul 14, 2021
1 parent 34bbb1a commit 78216a0
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 41 deletions.
60 changes: 38 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = "MIT"
name = "srtool-cli"
readme = "README.md"
repository = "https://github.com/chevdor/srtool-cli"
version = "0.5.0"
version = "0.6.0"

[[bin]]
bench = false
Expand Down
26 changes: 17 additions & 9 deletions doc/usage.adoc
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
srtool-cli 0.3.0
srtool-cli 0.6.0
chevdor <chevdor@gmail.com>
This utility allows invoking the srtool with the right parameters and environment variables. See
documentations of each command below
This utility helps starting a container from the srtool Docker image. It passes the right parameters
and environment variables to the container. Learn more about the srtool image here:
https://github.com/paritytech/srtool

USAGE:
srtool [FLAGS] <SUBCOMMAND>
srtool [FLAGS] [OPTIONS] <SUBCOMMAND>

FLAGS:
-h, --help Prints help information
-j, --json Whether we output json or something for humans
-n, --no-cache
-j, --json This option is DEPRECATED and has no effect
-n, --no-cache Do not use the local cached tag value
-V, --version Prints version information

OPTIONS:
-i, --image <image> Chose an alternative image. Beware to chose an image that is compatible
with the original srtool image. Using a random image, you take the risk
to NOT produce exactly the same deterministic result than srtool
[default: paritytech/srtool]

SUBCOMMANDS:
build Build opts
build Start a new srtool container to build your runtime
help Prints this message or the help of the given subcommand(s)
info Info opts
version Version opts
info Provide information about the srtool container and your repo
version Show the versions of the srtool container. Use --version if you want the version
of this executable
15 changes: 9 additions & 6 deletions doc/usage_build.adoc
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
srtool-build 0.3.0
srtool-build 0.6.0
chevdor <chevdor@gmail.com>
Build opts
Start a new srtool container to build your runtime

USAGE:
srtool build [OPTIONS] --package <package> --runtime-dir <runtime-dir> [path]
srtool build [FLAGS] [OPTIONS] --package <package> [path]

ARGS:
<path> By default, srtool will work in the current folder. If your project is located in
another location, you can pass it here [default: .]

FLAGS:
-a, --app Enable the "app" mode which is a mix of json output and outputing progress
during the build. This flag is recommended for CI. the json output will be
provided as a single line at the end in compact mode
-h, --help Prints help information
-j, --json Enable json output, same than the global --json option
-V, --version Prints version information

OPTIONS:
Expand All @@ -26,14 +30,13 @@ OPTIONS:
if BUILD_OPTS is set [env: DEFAULT_FEATURES=]

-p, --package <package>
Provide the runtime such as kusama-runtime, polkadot-runtime, etc... [env:
PACKAGE=polkadot-runtime]
Provide the runtime such as kusama-runtime, polkadot-runtime, etc... [env: PACKAGE=]

--profile <profile>
The default profile to build runtimes is always `release`. You may override the default
with this flag [env: PROFILE=] [default: release]

-r, --runtime-dir <runtime-dir>
If your runtime is not in the standard location runtime/<chain_name> you can pass this
args to help srtool find it [env: RUNTIME_DIR=runtime/polkadot]
args to help srtool find it [env: RUNTIME_DIR=]

4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
VERSION := `toml get cli/Cargo.toml package.version | jq -r`

bump:
cargo workspaces version minor --no-individual-tags
bump level:
cargo workspaces version {{level}} --no-individual-tags

usage:
cargo run -q -- --help > doc/usage.adoc
Expand Down
2 changes: 1 addition & 1 deletion lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "srtool-lib"
version = "0.5.0"
version = "0.6.0"
authors = ["chevdor <chevdor@gmail.com>"]
edition = "2018"

Expand Down

0 comments on commit 78216a0

Please sign in to comment.