pchickey opened PR #2776 from pch/wasmtime_wasi_usability
to main
:
Until more impls come along, every user of
wasmtime-wasi
is going to usewasi-cap-std-sync
as theirWasiCtxBuilder
. Rather than make our users track a dependency on an additional crate, re-export it under the top-levelsync
module.This re-export sits behind the
sync
Cargo feature, which is enabled by default. Users who want to opt out of these re-exports can disable default-features.Additionally,
wasi-cap-std-sync
now re-exports thecap_std::fs::Dir
type 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: Nov 22 2024 at 16:03 UTC