build: move `generate-wasm-exports-lists to xtask

This commit is contained in:
Amaan Qureshi 2024-10-26 18:46:57 -04:00
parent c8cf75fd30
commit c7d6fd7fa5
3 changed files with 57 additions and 9 deletions

View file

@ -1,8 +0,0 @@
#!/usr/bin/env bash
set -e
while read -r wasm_file; do
wasm-objdump --details "$wasm_file" --section Import | \
sed -n 's/.*<env\.\([A-Za-z0-9_]*\)>.*/\1/p'
done < <(find target -maxdepth 2 -name 'tree-sitter-*.wasm') | sort -u