Skip to content

feat: provide default methods for WasiDir#5019

Merged
sunfishcode merged 1 commit into
bytecodealliance:mainfrom
npmccallum:wasidir
Oct 5, 2022
Merged

feat: provide default methods for WasiDir#5019
sunfishcode merged 1 commit into
bytecodealliance:mainfrom
npmccallum:wasidir

Conversation

@npmccallum
Copy link
Copy Markdown
Member

When implementing custom WasiDir instances, there is a lot of boilerplate. These default methods should reduce code for implementors who want to provide only a subset of functionality.

When implementing custom WasiDir instances, there is a lot of
boilerplate.  These default methods should reduce code for implementors
who want to provide only a subset of functionality.

Signed-off-by: Nathaniel McCallum <nathaniel@profian.com>
@github-actions github-actions Bot added the wasi Issues pertaining to WASI label Oct 5, 2022
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Oct 5, 2022

Subscribe to Label Action

cc @kubkon

Details This issue or pull request has been labeled: "wasi"

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

  • kubkon: wasi

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

Learn more.

@sunfishcode
Copy link
Copy Markdown
Member

To be sure, the vision for this code is that users will primarily write APis in wit, rather than encoding non-directory-like APIs within WasiDir. WasiDir may eventually be removed from the public API entirely.

That said, I recognize that wit isn't ready to take on all use cases yet, so this makes sense for now.

@sunfishcode sunfishcode enabled auto-merge (squash) October 5, 2022 14:16
@npmccallum
Copy link
Copy Markdown
Member Author

@sunfishcode I think you meant to merge this but just enabled auto-merge instead. :)

@sunfishcode sunfishcode merged commit bbdafaf into bytecodealliance:main Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wasi Issues pertaining to WASI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants