rust-lang-nursery.github.io
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]...
The Rust Cookbook
Book
2024-01-01
~1 min read
rust-lang-nursery.github.io
Making Requests
The Rust Cookbook
Book
2024-01-01
~1 min read
rust-lang-nursery.github.io
Calling a Web API
The Rust Cookbook
Book
2024-01-01
~1 min read
rust-lang-nursery.github.io
Downloads
The Rust Cookbook
Book
2024-01-01
~1 min read
rust-lang-nursery.github.io
Authentication
The Rust Cookbook
Book
2024-01-01
~1 min read
rust-lang-nursery.github.io
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...
The Rust Cookbook
Book
2024-01-01
~3 min read
rust-lang-nursery.github.io
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...
The Rust Cookbook
Book
2024-01-01
~1 min read
rust-lang-nursery.github.io
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)...
The Rust Cookbook
Book
2024-01-01
~1 min read
rust-lang-nursery.github.io
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...
The Rust Cookbook
Book
2024-01-01
~1 min read
rust-lang-nursery.github.io
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...
The Rust Cookbook
Book
2024-01-01
~1 min read
rust-lang-nursery.github.io
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...
The Rust Cookbook
Book
2024-01-01
~1 min read
rust-lang-nursery.github.io
Smart Pointers
The Rust Cookbook
Book
2024-01-01
~1 min read
rust-lang-nursery.github.io
Synchronization Primitives
The Rust Cookbook
Book
2024-01-01
~1 min read
rust-lang-nursery.github.io
Option and Result Combinators
The Rust Cookbook
Book
2024-01-01
~1 min read
rust-lang-nursery.github.io
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]...
The Rust Cookbook
Book
2024-01-01
~1 min read
rust-lang-nursery.github.io
Parsing content from string
The Rust Cookbook
Book
2024-01-01
~1 min read
rust-lang-nursery.github.io
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...
The Rust Cookbook
Book
2024-01-01
~1 min read
rust-lang-nursery.github.io
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...
The Rust Cookbook
Book
2024-01-01
~1 min read
rust-lang-nursery.github.io
File Watching
The Rust Cookbook
Book
2024-01-01
~1 min read
rust-lang-nursery.github.io
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...
The Rust Cookbook
Book
2024-01-01
~1 min read