Registry / networking / wasmedge-wasi-socket

wasmedge-wasi-socket

JSON →
library0.5.5rscratesunverified

Rust API for the networking socket functions supported in the WasmEdge Runtime for WebAssembly.

# Cargo.toml [dependencies] wasmedge_wasi_socket = "0.5.5"
INSTALL
IMPORT
SIG · WASMEDGE-WASI-SOCK
W
wasmedge-wasi-socket
networkingrustv0.5.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TcpStream
use wasmedge_wasi_socket::TcpStream;

Connect to a TCP server using WasmEdge socket API.

use wasmedge_wasi_socket::TcpStream; fn main() { let stream = TcpStream::connect("127.0.0.1:8080").unwrap(); println!("Connected"); }
Debug
Known issues
gotchaRequires WasmEdge runtime with networking support.
fix
Ensure you are running under WasmEdge with the appropriate flags.
affects: >=0.5.0
Upgrade
Version history
0.5.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources