# No [build] target: the wasm target is on `cargo wasm` (and `atlibs publish`'s build), so `cargo install --path rust/cli` # from here builds the CLI for this machine. [net] git-fetch-with-cli = true [target.wasm32-unknown-unknown] rustflags = ["--cfg", "getrandom_backend=\"unsupported\""] # Modules must be release builds: a debug build is ~20 MB, past the 4 MB the wasm runner accepts. [alias] wasm = "build --release --target wasm32-unknown-unknown" # rust/ (atlibs-host and the atlibs CLI) is native and its own workspace: these build it from here, into # rust/host/target. `cargo host` is the CLI with its default transports (iroh, from the atlibs-iroh repo); # `cargo host-test` tests both crates. host = "build --release --manifest-path rust/Cargo.toml -p atlibs --target host-tuple --target-dir rust/host/target" host-test = "test --release --manifest-path rust/Cargo.toml --workspace --target host-tuple --target-dir rust/host/target" # atlibs without iroh (--no-default-features): the host-built-without-a-transport of conformance.test.mjs, in its own # target dir so it and `cargo host` never rebuild each other: rust/host/target/loopback//release/atlibs. loopback = "build --release --manifest-path rust/Cargo.toml -p atlibs --no-default-features --target host-tuple --target-dir rust/host/target/loopback"