Stream: cargo-component

Topic: github action / canonical way to test?


view this post on Zulip Yoshua Wuyts (Sep 06 2024 at 15:13):

Do we have a well-defined way already to test libraries using cargo-component? Or maybe even an example in a library somewhere?

view this post on Zulip Yoshua Wuyts (Sep 06 2024 at 15:13):

I was just running inventory of what we need to patch in the Rust ecosystem to properly support WASI 0.2 everywhere, and testing definitely is a big part of that.

view this post on Zulip Yoshua Wuyts (Sep 06 2024 at 15:33):

I guess this is the best example I've been able to find so far: https://github.com/rust-random/getrandom/blob/10f59f6a6403b57070e0100ab5041f0cfe2fdb0e/.github/workflows/tests.yml#L293-L310

A small cross-platform library for retrieving random data from (operating) system source - rust-random/getrandom

view this post on Zulip Taylor Thomas (Sep 06 2024 at 16:06):

I've desperately been wanting to do some mocks that could be customized and composed in. But I know testing and debugging is one of those high priority things we want to improve as a community

view this post on Zulip Yoshua Wuyts (Sep 06 2024 at 17:24):

Oh neat, I didn't realize we had this repo! https://github.com/bytecodealliance/actions

GitHub actions to setup wasm-tools and wasmtime. Contribute to bytecodealliance/actions development by creating an account on GitHub.

Last updated: Nov 25 2024 at 19:03 UTC