cargo-dist
cargo-dist copied to clipboard
[npm-installer] support more than tar.gz
cargo-dist currently lets you select your binary archive format:
- .zip (default windows)
- .tar.gz
- .tar.xz (default unix)
- .tar.zstd
But the npm installer can only handle .tar.gz! This is a limitation inherited from the binary-install npm package (yes the "fork" is the Real One), which in turn inherits the limitation from the npm tar package which in turn inherits the limitation from "node-js bundles a gzip encoder/decoder and that's all we use".
As a workaround I will be making the new interactive UX default to .tar.gz compression if you enable npm installers, but we should really deal with by fixing/forking/ditching binary-install.