mirror of
https://github.com/vacp2p/zerokit.git
synced 2026-01-09 13:47:58 -05:00
126 lines
2.3 KiB
TOML
126 lines
2.3 KiB
TOML
[tasks.build]
|
|
clear = true
|
|
dependencies = ["pack_build", "pack_rename"]
|
|
|
|
[tasks.build_parallel]
|
|
clear = true
|
|
dependencies = ["pack_build_parallel", "pack_rename"]
|
|
|
|
[tasks.build_utils]
|
|
clear = true
|
|
dependencies = ["pack_build_utils", "pack_rename_utils"]
|
|
|
|
[tasks.pack_build]
|
|
command = "wasm-pack"
|
|
args = ["build", "--release", "--target", "web", "--scope", "waku"]
|
|
|
|
[tasks.pack_build_parallel]
|
|
command = "env"
|
|
args = [
|
|
"RUSTFLAGS=-C target-feature=+atomics,+bulk-memory,+mutable-globals",
|
|
"rustup",
|
|
"run",
|
|
"nightly-2025-09-24",
|
|
"wasm-pack",
|
|
"build",
|
|
"--release",
|
|
"--target",
|
|
"web",
|
|
"--scope",
|
|
"waku",
|
|
"--features",
|
|
"parallel",
|
|
"-Z",
|
|
"build-std=panic_abort,std",
|
|
]
|
|
|
|
[tasks.pack_rename]
|
|
script = "sed -i.bak 's/rln-wasm/zerokit-rln-wasm/g' pkg/package.json && rm pkg/package.json.bak"
|
|
|
|
[tasks.pack_build_utils]
|
|
command = "wasm-pack"
|
|
args = [
|
|
"build",
|
|
"--release",
|
|
"--target",
|
|
"web",
|
|
"--scope",
|
|
"waku",
|
|
"--no-default-features",
|
|
"--features",
|
|
"utils",
|
|
]
|
|
|
|
[tasks.pack_rename_utils]
|
|
script = "sed -i.bak 's/rln-wasm/zerokit-rln-wasm-utils/g' pkg/package.json && rm pkg/package.json.bak"
|
|
|
|
|
|
[tasks.test]
|
|
command = "wasm-pack"
|
|
args = [
|
|
"test",
|
|
"--release",
|
|
"--node",
|
|
"--target",
|
|
"wasm32-unknown-unknown",
|
|
"--",
|
|
"--nocapture",
|
|
]
|
|
dependencies = ["build"]
|
|
|
|
[tasks.test_browser]
|
|
command = "wasm-pack"
|
|
args = [
|
|
"test",
|
|
"--release",
|
|
"--chrome",
|
|
"--headless",
|
|
"--target",
|
|
"wasm32-unknown-unknown",
|
|
"--",
|
|
"--nocapture",
|
|
]
|
|
dependencies = ["build"]
|
|
|
|
[tasks.test_parallel]
|
|
command = "env"
|
|
args = [
|
|
"RUSTFLAGS=-C target-feature=+atomics,+bulk-memory,+mutable-globals",
|
|
"rustup",
|
|
"run",
|
|
"nightly-2025-09-24",
|
|
"wasm-pack",
|
|
"test",
|
|
"--release",
|
|
"--chrome",
|
|
"--headless",
|
|
"--target",
|
|
"wasm32-unknown-unknown",
|
|
"--features",
|
|
"parallel",
|
|
"-Z",
|
|
"build-std=panic_abort,std",
|
|
"--",
|
|
"--nocapture",
|
|
]
|
|
dependencies = ["build_parallel"]
|
|
|
|
[tasks.test_utils]
|
|
command = "wasm-pack"
|
|
args = [
|
|
"test",
|
|
"--release",
|
|
"--node",
|
|
"--target",
|
|
"wasm32-unknown-unknown",
|
|
"--no-default-features",
|
|
"--features",
|
|
"utils",
|
|
"--",
|
|
"--nocapture",
|
|
]
|
|
dependencies = ["build_utils"]
|
|
|
|
[tasks.bench]
|
|
disabled = true
|