chore: checkpoint before Python removal

This commit is contained in:
2026-03-26 22:33:59 +00:00
parent 683cec9307
commit e568ddf82a
29972 changed files with 11269302 additions and 2 deletions

19
vendor/wasip3/examples/cli-command.rs vendored Normal file
View File

@@ -0,0 +1,19 @@
wasip3::cli::command::export!(Example);
struct Example;
impl wasip3::exports::cli::run::Guest for Example {
async fn run() -> Result<(), ()> {
let (mut tx, rx) = wasip3::wit_stream::new();
futures::join!(
async { wasip3::cli::stdout::write_via_stream(rx).await.unwrap() },
async {
let remaining = tx.write_all(b"Hello, WASI!".to_vec()).await;
assert!(remaining.is_empty());
drop(tx);
}
);
Ok(())
}
}