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 49f5904 commit ede8e36Copy full SHA for ede8e36
justfile
@@ -88,7 +88,7 @@ fmt-toml *args: (cargo-install 'cargo-sort')
88
89
# Get any package's field from the metadata
90
get-crate-field field package=main_crate: (assert-cmd 'jq')
91
- 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}}")'
92
93
# Get the minimum supported Rust version (MSRV) for the crate
94
get-msrv package=main_crate: (get-crate-field 'rust_version' package)
0 commit comments