Skip to content

Commit

Permalink
misc. utils updates
Browse files Browse the repository at this point in the history
  • Loading branch information
joseluis committed Feb 11, 2025
1 parent 5d058e0 commit 7c59fa8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions utils/manifest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ case "$operation" in
features)
features=$(cargo metadata --format-version=1 --no-deps | jq ".packages[] | select(.name == \"$crate_name\") | .features | keys")

longest_feature=$(cargo metadata --format-version=1 --no-deps | jq -r ".packages[] | select(.name == \"$crate_name\") | .features | keys | map({name: ., length: length}) | sort_by(-.length) | first")

# Output feature list
echo "Features:"
echo "$features"
Expand All @@ -61,6 +63,8 @@ case "$operation" in
hidden=$(echo "$features" | rg '"_' | wc -l)
remaining=$((300 - total))

echo "longest feature name: $longest_feature"

# Output feature counts
echo "\n[features] # $total/300 ($remaining remaining), $visible visible, $hidden hidden"
;;
Expand Down
2 changes: 1 addition & 1 deletion utils/release_dates.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env -S rust-script -c
//! ```cargo
//! [dependencies]
//! jiff = "0.1"
//! jiff = "0.2"
//! ```
//
// Links for next releases:
Expand Down

0 comments on commit 7c59fa8

Please sign in to comment.