We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54e8f76 commit bf43049Copy full SHA for bf43049
justfile
@@ -125,7 +125,7 @@ fmt-toml *args: (cargo-install 'cargo-sort')
125
126
# Get any package's field from the metadata
127
get-crate-field field package=main_crate: (assert-cmd 'jq')
128
- cargo metadata --format-version 1 | jq -e -r '.packages | map(select(.name == "{{package}}")) | first | .{{field}} | select(. != null)'
+ cargo metadata --format-version 1 | jq -e -r '.packages | map(select(.name == "{{package}}")) | first | .{{field}} // error("Field \"{{field}}\" is missing in Cargo.toml for package {{package}}")'
129
130
# Get the minimum supported Rust version (MSRV) for the crate
131
get-msrv package=main_crate: (get-crate-field 'rust_version' package)
0 commit comments