Skip to content

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

Merged
pchickey merged 5 commits into
mainfrom
pch/wasmtime_wasi_usability
Mar 27, 2021
Merged

wasmtime-wasi usability: re-exports of common siblings#2776
pchickey merged 5 commits into
mainfrom
pch/wasmtime_wasi_usability

Conversation

@pchickey
Copy link
Copy Markdown
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
Copy Markdown

Subscribe to Label Action

cc @kubkon, @peterhuene

Details 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
Copy Markdown
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