#1136735 wasm-pack: Unclear if wasm-pack honors --offline

Package:
wasm-pack
Source:
wasm-pack
Description:
post-processor for rust-generated WebAssembly
Submitter:
Jérémy Lal
Date:
2026-05-15 13:41:07 UTC
Severity:
normal
#1136735#5
Date:
2026-05-15 12:48:07 UTC
From:
To:
Hi Jonas,

I'm playing with wasm-pack because node-amaro needs it.

I watched closely how you're using it in oxigraph package.

However, it seems that passing `-- --offline` doesn't work:
it's still trying to download missing crates.

I tried several things... and discovered this:

- to get logs, env RUST_LOG=debug
- to stop net access, env CARGO_NET_OFFLINE=true

I suppose it's a bug in wasm-pack, or in cargo, and it might affect oxigraph.

Jérémy

#1136735#10
Date:
2026-05-15 13:36:16 UTC
From:
To:
Hi Jérémy,

Quoting Jérémy Lal (2026-05-15 14:48:07)

Thanks for the bugreport.

It is my impression that wasm-pack is unintuitive, but it is news to me
that its options cannot be trusted. :-(

It seems oxigraph will move away from using wasm-pack, instead carrying
locally a relatively large python script:
https://github.com/oxigraph/oxigraph/commit/4181d06

Perhaps that is of use for your use case?

 - Jonas

#1136735#15
Date:
2026-05-15 13:39:34 UTC
From:
To:
Le ven. 15 mai 2026 à 15:36, Jonas Smedegaard <jonas@jones.dk> a écrit :
It seems oxigraph will move away from using wasm-pack, instead carrying

Good to know there's a way out ;) Thanks