remove unnecessary files, deps, and configuration
This commit is contained in:
parent
82543fb031
commit
0950610f90
4 changed files with 4 additions and 89 deletions
|
|
@ -4,6 +4,7 @@
|
||||||
/giallo-js/Cargo.toml
|
/giallo-js/Cargo.toml
|
||||||
/giallo-js/src
|
/giallo-js/src
|
||||||
/giallo-js/target
|
/giallo-js/target
|
||||||
|
/giallo-js/wit
|
||||||
/mise.toml
|
/mise.toml
|
||||||
/node_modules
|
/node_modules
|
||||||
/test
|
/test
|
||||||
|
|
|
||||||
69
giallo-js/Cargo.lock
generated
69
giallo-js/Cargo.lock
generated
|
|
@ -26,12 +26,6 @@ version = "2.10.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3"
|
checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "bumpalo"
|
|
||||||
version = "3.19.1"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "5dd9dc738b7a8311c7ade152424974d8115f2cdad61e8dab8dac9f2362298510"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cc"
|
name = "cc"
|
||||||
version = "1.2.53"
|
version = "1.2.53"
|
||||||
|
|
@ -104,8 +98,6 @@ name = "giallo-js"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"giallo",
|
"giallo",
|
||||||
"js-sys",
|
|
||||||
"wasm-bindgen",
|
|
||||||
"wit-bindgen",
|
"wit-bindgen",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
@ -154,16 +146,6 @@ version = "1.0.17"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2"
|
checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "js-sys"
|
|
||||||
version = "0.3.85"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "8c942ebf8e95485ca0d52d97da7c5a2c387d0e7f0ba4c35e93bfcaee045955b3"
|
|
||||||
dependencies = [
|
|
||||||
"once_cell",
|
|
||||||
"wasm-bindgen",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "leb128fmt"
|
name = "leb128fmt"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
|
@ -298,12 +280,6 @@ dependencies = [
|
||||||
"serde",
|
"serde",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "rustversion"
|
|
||||||
version = "1.0.22"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "seize"
|
name = "seize"
|
||||||
version = "0.5.1"
|
version = "0.5.1"
|
||||||
|
|
@ -398,51 +374,6 @@ version = "0.2.6"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
|
checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "wasm-bindgen"
|
|
||||||
version = "0.2.108"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "64024a30ec1e37399cf85a7ffefebdb72205ca1c972291c51512360d90bd8566"
|
|
||||||
dependencies = [
|
|
||||||
"cfg-if",
|
|
||||||
"once_cell",
|
|
||||||
"rustversion",
|
|
||||||
"wasm-bindgen-macro",
|
|
||||||
"wasm-bindgen-shared",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "wasm-bindgen-macro"
|
|
||||||
version = "0.2.108"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "008b239d9c740232e71bd39e8ef6429d27097518b6b30bdf9086833bd5b6d608"
|
|
||||||
dependencies = [
|
|
||||||
"quote",
|
|
||||||
"wasm-bindgen-macro-support",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "wasm-bindgen-macro-support"
|
|
||||||
version = "0.2.108"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "5256bae2d58f54820e6490f9839c49780dff84c65aeab9e772f15d5f0e913a55"
|
|
||||||
dependencies = [
|
|
||||||
"bumpalo",
|
|
||||||
"proc-macro2",
|
|
||||||
"quote",
|
|
||||||
"syn",
|
|
||||||
"wasm-bindgen-shared",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "wasm-bindgen-shared"
|
|
||||||
version = "0.2.108"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "1f01b580c9ac74c8d8f0c0e4afb04eeef2acf145458e52c03845ee9cd23e3d12"
|
|
||||||
dependencies = [
|
|
||||||
"unicode-ident",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "wasm-encoder"
|
name = "wasm-encoder"
|
||||||
version = "0.244.0"
|
version = "0.244.0"
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,4 @@ crate-type = ["cdylib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
giallo = { version = "0.2.2", features = ["dump"] }
|
giallo = { version = "0.2.2", features = ["dump"] }
|
||||||
js-sys = "0.3.85"
|
|
||||||
wasm-bindgen = "0.2.108"
|
|
||||||
wit-bindgen = "0.51.0"
|
wit-bindgen = "0.51.0"
|
||||||
|
|
|
||||||
21
mise.toml
21
mise.toml
|
|
@ -9,32 +9,17 @@ targets = "wasm32-wasip2"
|
||||||
[tools."github:WebAssembly/wasi-sdk"]
|
[tools."github:WebAssembly/wasi-sdk"]
|
||||||
version_prefix = "wasi-sdk-"
|
version_prefix = "wasi-sdk-"
|
||||||
version = "29"
|
version = "29"
|
||||||
postinstall = 'mise run link-wasi "$MISE_TOOL_INSTALL_PATH"'
|
|
||||||
|
|
||||||
[tasks.clean]
|
[tasks.clean]
|
||||||
run = """
|
run = """
|
||||||
rm -r ./target || 0
|
rm -r ./target || true
|
||||||
rm -r ./transpiled || 0
|
rm -r ./transpiled || true
|
||||||
"""
|
|
||||||
dir = "giallo-js"
|
|
||||||
|
|
||||||
[tasks.link-wasi]
|
|
||||||
hide = true
|
|
||||||
description = "[INTERNAL] Symlink the WASI artifacts installed by mise into the project directory."
|
|
||||||
usage = 'arg "<wasi_install_path>"'
|
|
||||||
run = """
|
|
||||||
mkdir -p ./build
|
|
||||||
ln -sf "${usage_wasi_install_path?}" ./build/wasi-sdk
|
|
||||||
"""
|
"""
|
||||||
dir = "giallo-js"
|
dir = "giallo-js"
|
||||||
|
|
||||||
[tasks.compile]
|
[tasks.compile]
|
||||||
description = "Compile Rust code to wasm component."
|
description = "Compile Rust code to wasm component."
|
||||||
run = """
|
run = "cargo build --target=wasm32-wasip2"
|
||||||
RUSTFLAGS="-L $(pwd)/build/wasi-sdk/share/wasi-sysroot/lib/wasm32-wasi -lstatic=c++ -lstatic=c++abi" \
|
|
||||||
CC="$(pwd)/build/wasi-sdk/bin/clang" \
|
|
||||||
cargo build --target=wasm32-wasip2
|
|
||||||
"""
|
|
||||||
dir = "giallo-js"
|
dir = "giallo-js"
|
||||||
|
|
||||||
[tasks.transpile]
|
[tasks.transpile]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue