# Cargo workspace crates as a table — run from workspace root
def cargo-ws [] {
  ^cargo metadata --format-version 1 --no-deps 2>/dev/null
  | from json
  | get packages
  | select name version manifest_path
  | each {|p| $p | upsert path ($p.manifest_path | path dirname) | reject manifest_path}
  | sort-by name
}
