atagen

macltok

public
Star0
Watch0

Commit 67bf96a80270

tarball

atagen <boss@atagen.co>2026-09-27 01:42 UTC

1 file changed+14-0
flake: check that the wasm32 build still compiles

Nothing built the wasm target, so any native-only API slipping into src would go unnoticed until someone tried a browser build.
Modified file: flake.nix+14 additions
@@ -98,6 +98,20 @@
9898 buildInputs = [ pkgs.sqlite ];
9999 SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
100100 };
101+ wasm = wasmPlatform.buildRustPackage {
102+ pname = "macltok-wasm-check";
103+ version = "0.1.0";
104+ src = self;
105+ cargoLock.lockFile = ./Cargo.lock;
106+ buildPhase = ''
107+ runHook preBuild
108+ cargo check --offline --frozen --lib \
109+ --target wasm32-unknown-unknown --features ${storeFeature},mirror -j 2
110+ runHook postBuild
111+ '';
112+ doCheck = false;
113+ installPhase = "touch $out";
114+ };
101115 web = wasmPlatform.buildRustPackage {
102116 pname = "macltok-web-check";
103117 version = "0.1.0";