Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wasmtime-wasi usability: re-exports of common siblings #2776

Merged
merged 5 commits into from
Mar 27, 2021

Conversation

pchickey
Copy link
Contributor

Until more impls come along, every user of wasmtime-wasi is going to use wasi-cap-std-sync as their WasiCtxBuilder. Rather than make our users track a dependency on an additional crate, re-export it under the top-level sync 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 the cap_std::fs::Dir type that it consumes in WasiCtxBuilder::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.

@pchickey pchickey force-pushed the pch/wasmtime_wasi_usability branch from c5d6c3f to af70301 Compare March 26, 2021 00:07
@pchickey pchickey requested a review from fitzgen March 26, 2021 00:07
@github-actions github-actions bot added wasi Issues pertaining to WASI wasmtime:c-api Issues pertaining to the C API. labels Mar 26, 2021
@github-actions
Copy link

Subscribe to Label Action

cc @kubkon, @peterhuene

This issue or pull request has been labeled: "wasi", "wasmtime:c-api"

Thus the following users have been cc'd because of the following labels:

  • kubkon: wasi
  • peterhuene: wasmtime:c-api

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@pchickey pchickey merged commit 3abc29e into main Mar 27, 2021
@pchickey pchickey deleted the pch/wasmtime_wasi_usability branch March 27, 2021 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wasi Issues pertaining to WASI wasmtime:c-api Issues pertaining to the C API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants