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

feat(vfs) Make host_fs the default, and exclusive to mem_fs #2523

Merged
merged 5 commits into from
Aug 17, 2021

Conversation

Hywan
Copy link
Contributor

@Hywan Hywan commented Aug 16, 2021

Description

This patch makes host_fs part of the default features. It also makes host_fs mutually eclusive to mem_fs. Finally, it generates a final compiler error if none of them have been enabled.

Finally (promise), it fixes the Cargo.toml file of wasmer-cli and wasmer-c-api because the changes weren't required. See 5b53c54 for more explanations.

Address a feedback in #2491.

Hywan added 2 commits August 16, 2021 15:48
This patch generates a compiler error if `host_fs` and `mem_fs` are
both enabled at compile-time. It also generates a compiler error if
none of them have been enabled.
`wasmer-wasi`'s default features don't change, except that it adds
`host_fs` in the default features, which maps to
`wasmer-vfs/host_fs`. It then ensures that the same behavior is
guaranteed.

We don't need to change how `wasmer-cli` and `wasmer-c-api` fetch
`wasmer-wasi` in this case.
@Hywan Hywan changed the base branch from master to js-api-wasi August 16, 2021 13:56
lib/vfs/src/lib.rs Outdated Show resolved Hide resolved
@Hywan Hywan merged commit 2240fa9 into wasmerio:js-api-wasi Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants