- install GitHub - woodruffw/toml2json: A very small CLI for converting TOML to JSON (opens in a new tab)
- install
jq
withbrew install jq
- Run this command:
cat Cargo.lock | toml2json | jq '.package | length'
jq
with brew install jq
cat Cargo.lock | toml2json | jq '.package | length'