2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-21 23:00:06 -07:00

cbindgen: Fix wasi crate 404

The crates.io link for the wasi crate 404s. Upstream have no git
tags for versions whatsoever. Using the v1 crates.io API we can
download the crate but it ends up being called 'download' rather
than 'wasi-bla-bla.crate'.

This is temporary until the issue is fixed upstream.
This commit is contained in:
Dylan Araps 2021-07-10 20:40:15 +03:00
parent b9dd1687d0
commit 8716e4e4a2
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
2 changed files with 5 additions and 1 deletions

View File

@ -20,6 +20,10 @@ export CARGO_HOME=$PWD
(
cd vendor
# Download link for this crate 404s. Mirror link saves
# the file as 'download' so it must be renamed.
mv -f download wasi-0.9.0+wasi-snapshot-preview1.crate
for crate in *.crate; do
tar xf "$crate"

View File

@ -48,7 +48,7 @@ https://static.crates.io/crates/unicode-segmentation/unicode-segmentation-1.6.0.
https://static.crates.io/crates/unicode-width/unicode-width-0.1.8.crate vendor
https://static.crates.io/crates/unicode-xid/unicode-xid-0.2.1.crate vendor
https://static.crates.io/crates/vec_map/vec_map-0.8.2.crate vendor
https://static.crates.io/crates/wasi-0.9.0+wasi-snapshot/wasi-0.9.0+wasi-snapshot-preview1.crate vendor
https://crates.io/api/v1/crates/wasi/0.9.0+wasi-snapshot-preview1/download vendor
https://static.crates.io/crates/winapi/winapi-0.3.9.crate vendor
https://static.crates.io/crates/winapi-i686-pc-windows-gnu/winapi-i686-pc-windows-gnu-0.4.0.crate vendor
https://static.crates.io/crates/winapi-x86_64-pc-windows-gnu/winapi-x86_64-pc-windows-gnu-0.4.0.crate vendor