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

WASI support #147

Merged
merged 2 commits into from
May 29, 2024
Merged

WASI support #147

merged 2 commits into from
May 29, 2024

Conversation

calebschoepp
Copy link
Contributor

Motivation

I was attempting to use this library with a WASI target and it was not compiling. The cfg options in the Cargo.toml and the source files did not match. See #146.

Solution

Fix cfg options to match.

I was attempting to use this library with a WASI target and it was not compiling. The cfg options in the Cargo.toml and the source files did not match.

Signed-off-by: Caleb Schoepp <caleb.schoepp@fermyon.com>
Copy link
Collaborator

@djc djc left a comment

Choose a reason for hiding this comment

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

This looks reasonable to me, thanks!

@djc
Copy link
Collaborator

djc commented May 28, 2024

Can this target be tested in CI? Would be good to avoid regressions.

@calebschoepp
Copy link
Contributor Author

@djc we could perhaps add another job to CI.yaml similar to:

  test-build-wasm:
    name: build tests (wasm)
    needs: check
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - uses: dtolnay/rust-toolchain@stable
      with:
        target: wasm32-unknown-unknown
    - name: build all tests
      run: cargo test --no-run

I have no familiarity with your CI though so not too sure.

@djc
Copy link
Collaborator

djc commented May 28, 2024

That looks like a good start, could you add that in?

Signed-off-by: Caleb Schoepp <caleb.schoepp@fermyon.com>
@djc djc merged commit 6af4551 into tokio-rs:v0.1.x May 29, 2024
14 checks passed
@djc
Copy link
Collaborator

djc commented May 29, 2024

Thanks! Going to publish this in #142.

@calebschoepp
Copy link
Contributor Author

@djc thanks for all the reviews and work on this library 👍

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