Skip to content

Commit

Permalink
fix Wasm example instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankReh committed May 2, 2024
1 parent 309daae commit fc6bb06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/tcp_listenfd_server.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// You can run this example from the root of the mio repo:
// cargo run --example tcp_listenfd_server --features="os-poll net"
// or with wasi:
// cargo +nightly build --target wasm32-wasi --example tcp_listenfd_server --features="os-poll net"
// wasmtime run --tcplisten 127.0.0.1:9000 --env 'LISTEN_FDS=1' target/wasm32-wasi/debug/examples/tcp_listenfd_server.wasm
// cargo build --target wasm32-wasi --example tcp_listenfd_server --features="os-poll net"
// wasmtime run -S preview2=n -S tcplisten=127.0.0.1:9000 --env 'LISTEN_FDS=1' ./target/wasm32-wasi/debug/examples/tcp_listenfd_server.wasm

use mio::event::Event;
use mio::net::{TcpListener, TcpStream};
Expand Down

0 comments on commit fc6bb06

Please sign in to comment.