@ai-ecoverse/wasi-cargo

中文文档
0.99.0-6发布于 2026/10/21(MIT OR Apache-2.0) AND GPL-2.0-only WITH GCC-exception-2.0 AND MPL-2.0 AND BSD-2-Clause AND BSD-3-Clause AND Unicode-3.0 AND Zlib AND blessing零依赖构建来源已验证近 30 天下载 2825

Cargo, the Rust package manager and build tool, for SLICC.

原始使用文档

@ai-ecoverse/wasi-cargo

Cargo 0.99 (Rust 1.98.1) for SLICC's WASI realm. It uses the installed @ai-ecoverse/wasi-rustc driver and targets wasm32-wasip1.

  • Registry access. crates.io dependencies come through the realm's HTTP proxy, the one https_proxy names, over the sparse index. The proxy does TLS, so Cargo needs none. Index files and crates are fetched over 6 connections at once (CARGO_HTTP_MAX_CONNECTIONS changes the count). Without a proxy, use --offline with vendored or path dependencies.
  • Proc macros. Derives such as serde, clap and thiserror need wasi-rustc 1.98.1-1 or later, which runs proc macros as child processes.
  • cargo test builds and runs unit and integration tests with wasi-rustc 1.98.1-5 or later (1.98.1-4's wasm32-wasip1 libc lacked the pthread stubs libtest links, homescoop#1043). Doc tests need rustdoc, which isn't packaged: cargo test skips them with warning: doc tests skipped: rustdoc isn't available in slicc and exits with the status of the tests that ran, and cargo test --doc and cargo doc fail with that reason (since 0.99.0-5, homescoop#1463), as does cargo rustdoc (since 0.99.0-6, homescoop#1540).
  • Unsupported on WASI. Git dependencies need a git network transport, and they fail with a message that names the realm.
  • Untested. cargo search, publish, login, owner and yank use the same proxy client.

The package sets CARGO_BUILD_JOBS=1 because WASI std cannot query host CPU parallelism. It disables incremental compilation because the realm filesystem does not provide the file locks rustc requires. It also sets CARGO_BUILD_TARGET=wasm32-wasip1.

Cargo runs the installed @ai-ecoverse/wasi-rustc driver found on PATH. It needs wasi-rustc 1.98.1 or later: the 1.83 compiler panicked on rustc -vV, which Cargo runs to probe the compiler.

The package sets CARGO to its installed Bash driver, which Cargo uses for subprocesses. Its WASIX Command bridge sends captured child stdin to /dev/null, so rustc probes do not wait on a live terminal.

版本与发布记录

@ai-ecoverse/wasi-cargo 共发布 8 个版本,首次发布于 2026/10/03;过去 12 个月发布了 8 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.99.0-6latest2026/10/2117 天前
0.99.0-52026/10/2117 天前
0.99.0-42026/10/2118 天前
0.99.0-32026/10/1721 天前
0.99.0-22026/10/041 个月前
0.99.0-12026/10/031 个月前

关于 @ai-ecoverse/wasi-cargo 的常见问题

@ai-ecoverse/wasi-cargo 是什么?

Cargo, the Rust package manager and build tool, for SLICC.

如何安装 @ai-ecoverse/wasi-cargo?

在项目目录运行 npm install @ai-ecoverse/wasi-cargo,或使用 pnpm add / yarn add / bun add。

@ai-ecoverse/wasi-cargo 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/ai-ecoverse__wasi-cargo 是否存在。

@ai-ecoverse/wasi-cargo 可以商用吗?

@ai-ecoverse/wasi-cargo 使用 (MIT OR Apache-2.0) AND GPL-2.0-only WITH GCC-exception-2.0 AND MPL-2.0 AND BSD-2-Clause AND BSD-3-Clause AND Unicode-3.0 AND Zlib AND blessing 许可。可在 MIT、Apache-2.0) AND GPL-2.0-only WITH GCC-exception-2.0 AND MPL-2.0 AND BSD-2-Clause AND BSD-3-Clause AND Unicode-3.0 AND Zlib AND blessing 中任选其一遵守。选择 MIT 时,宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@ai-ecoverse/wasi-cargo 的下载量有多少?

根据 npm 官方下载统计,@ai-ecoverse/wasi-cargo 在 2026/10/05 – 2026/11/03 这 30 天内被下载 2,825 次,日均约 94 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@ai-ecoverse/wasi-cargo 还在维护吗?

最新版本 0.99.0-6 发布于 2026/10/21(17 天前);至今共发布 8 个版本,其中过去 12 个月发布了 8 个;首次发布于 2026/10/03。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。