Clients | Recipe | Crates | Categories | |--------|--------|------------| | Make a HTTP GET request | [![reqwest-badge]][reqwest] | [![cat-net-badge]][cat-net] | | Set custom headers and URL parameters for a REST request | [![reqwest-badge]...
Full Stack Web Leptos is a full stack web framework. The first recipe renders HTML on the server only. The second adds hydration so the client can re-run the same components as WebAssembly for interactivity. Return filtered results as HTML...
WebAssembly [wasmtime][wasmtime] is an embeddable WebAssembly runtime. These recipes cover the host embedding API — loading modules, calling exports, sharing linear memory, and wiring up host-defined functions that guests can call back into...
Call an exported WebAssembly function [![wasmtime-badge]][wasmtime] [![cat-wasm-badge]][cat-wasm] [wasmtime][wasmtime] embeds a WebAssembly runtime inside a Rust host program. This recipe compiles a module from WebAssembly Text format (WAT)...
Exchange data via WebAssembly linear memory [![wasmtime-badge]][wasmtime] [![cat-wasm-badge]][cat-wasm] WebAssembly modules communicate with their host through linear memory — a flat, byte-addressable array that both sides can read and writ...
Define host functions for WebAssembly [![wasmtime-badge]][wasmtime] [![cat-wasm-badge]][cat-wasm] WebAssembly modules can import functions from the host, enabling guests to call back into Rust. This recipe defines a print function in the ho...
Component Model — typed strings and structs [![wasmtime-badge]][wasmtime] [![wasmtime-wasi-badge]][wasmtime-wasi] [![wit-bindgen-badge]][wit-bindgen] [![cat-wasm-badge]][cat-wasm] Core WebAssembly function parameters are limited to i32, i64...
Synchronization Primitives
Option and Result Combinators
Parsing | Recipe | Crates | Categories | |--------|--------|------------| | Parse tagged fields from a log line | [![nom-badge]][nom] | [![cat-parser-implementations-badge]][cat-parser-implementations] | | Decode a hex color | [![nom-badge]...
Parsing content from string
Parse an unstructured string into key value pairs [![winnow-badge]][winnow] [![cat-parser-implementations-badge]][cat-parser-implementations] [winnow][winnow] is a parser-combinator library descended from nom, tuned for ergonomics and speed...
Read CSV data with a parsing expression grammar [![pest-badge]][pest] [![cat-parser-implementations-badge]][cat-parser-implementations] [pest][pest] takes a different approach from the combinator libraries: instead of writing parser code, y...
Find an Executable Find a binary on the PATH [![which-badge]][which] [![cat-filesystem-badge]][cat-filesystem] Locating an executable means walking each directory on the PATH. It also means applying the platform's rules. On Windows that inc...