pchickey opened PR #2776 from pch/wasmtime_wasi_usability to main:
Until more impls come along, every user of
wasmtime-wasiis going to usewasi-cap-std-syncas theirWasiCtxBuilder. Rather than make our users track a dependency on an additional crate, re-export it under the top-levelsyncmodule.This re-export sits behind the
syncCargo feature, which is enabled by default. Users who want to opt out of these re-exports can disable default-features.Additionally,
wasi-cap-std-syncnow re-exports thecap_std::fs::Dirtype that it consumes inWasiCtxBuilder::preopened_dir. Again, just keeps the consumers of these crates from tracking another dep version.And finally I cleaned up those extra deps for the wasmtime cli.
<!--Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
pchickey updated PR #2776 from pch/wasmtime_wasi_usability to main.
pchickey requested fitzgen for a review on PR #2776.
fitzgen submitted PR Review.
pchickey updated PR #2776 from pch/wasmtime_wasi_usability to main.
pchickey merged PR #2776.
Last updated: Dec 06 2025 at 06:05 UTC