Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Rustman documentation

User and developer documentation for Rustman. Pages are added as the features they describe are implemented; the behavior itself is specified in openspec/.

The same pages are published as a book at https://cyberdynecorp.github.io/rustman/, built with mdBook from this folder: docs/SUMMARY.md is its table of contents, and python3 scripts/check_docs.py checks that every page is listed there and every relative link and anchor resolves.

Available

  • Install and quick start: building from source, a first workspace and a short tour of the commands
  • Migrating from Postman: Postman and Newman concepts mapped to Rustman, a step-by-step migration (export, rustman import, review the converted scripts, run in CI) and the known gaps
  • Installing: the release archives per platform and the features they are built with, verifying the Sigstore build provenance (gh attestation verify) and SHA256SUMS, installing from source with cargo install --locked, and cutting a release
  • Request files: the workspace layout, rustman.toml, the *.rman.yaml format with one example per body type, collections and rustman init
  • Environments, variables and secrets: environment files, the active environment, variable precedence, dynamic variables, rustman secret, secret storage and redaction, and the CI pattern
  • Secret providers: {{secret:<provider>/<path>#field}} references and provider-backed environment variables, resolution at send time only, [secret_providers.*] in rustman.toml and the user config (no credentials, no commands in the workspace), the keychain, env, sops (age, PGP via gpg), onepassword (op CLI, Connect), vault (KV v1/v2, token, AppRole, OIDC), cmd and cloud provider types, timeouts, the in-memory cache and Refresh secrets, failures and exit codes, redaction, rustman secret get|test|list-providers, and agents
  • Safety policy: the rules automated senders (exploration, agents) pass before a request is sent: method gating, the origin allowlist, the production guard, rate, concurrency and budgets, 429 backoff, the [safety] table in rustman.toml, and GovernedSender
  • HTTP requests: transport, timeouts, redirects, TLS and mTLS, proxies, cookie jars, default headers, auth helpers (including OAuth2 and rustman auth login), timings, response bodies, and rustman import curl / rustman export curl
  • Code snippets: rustman export snippet for curl, HTTPie, wget, Python, JavaScript, Go, Rust, PowerShell and C#, redaction and --show-secrets, signature-auth helpers, placeholder mode and GraphQL requests
  • Signature auth: Digest (challenge, nonce reuse, replayable bodies), AWS SigV4 (credential sources, redirects, unsigned payloads, clock skew) and JWT (algorithms, keys, claims, placement, redaction)
  • OpenAPI import: rustman import openapi for OpenAPI 3.0/3.1 files and URLs, format and version detection, $ref resolution and --allow-remote-refs, validation diagnostics with JSON pointers, the generated collection layout, example bodies and the schema synthesizer, servers as environments, security schemes as auth with secret placeholders, the import snapshot, and --sync (three-way merge, _removed/, the change summary, --json, --dry-run)
  • OpenAPI exploration: rustman explore plan, run, status, resume and export, dependency discovery (links, heuristics, [explore.producers]), the probe families, seeded fuzzing, the finding rules and their severities, cleanup and resources left behind, the exploration report and coverage, reproducing findings as curl and regression request files, Ctrl+C and resume, exit codes, [explore].disabled_rules, and the bad-api fixture
  • GraphQL: kind: graphql request files, their fields and defaults, interpolation (never inside the document), introspection and its legacy fallback, the schema cache in .rustman/graphql/schemas/, schema_file and [[graphql.endpoints]], how the schema is chosen, validation, sending over HTTP (GET, uploads, APQ), subscriptions over WebSocket (graphql-transport-ws and the legacy protocol) and SSE with their headless limits, GraphQL assertions and captures, history records, kind: graphql in rustman run, rustman graphql introspect / query, and the TUI GraphQL editor
  • JSON-RPC: kind: jsonrpc envelopes and id handling, notifications, response classification and errors, batches matched by id, timeouts, retries for idempotent calls, the WebSocket transport and its per-run connection reuse, and generic subscriptions with their headless bounds, the rpc_error assertion and envelope-wide JSONPath assertions and captures, history records with redacted params, OpenRPC catalogs ([jsonrpc.catalogs], the cache, validation and --no-validate), rustman rpc call / batch / discover, kind: jsonrpc in rustman run and its JSON report, the TUI editor, method guards and the agent rpc_call tool
  • EVM toolkit: the [evm] table in rustman.toml, chain pinning with chain_id in environments and the exact mismatch refusal, node client detection, the known-chain registry and [evm.chains.<id>] overrides, exact unit-aware quantities (hex, decimal, wei, gwei, ether, native symbols, token units), kind: evm-call and kind: evm-tx request files and their load-time checks (signing: EVM signing), ABI sources (built-in ERC-20/721/1155, JSON ABIs, Foundry and Hardhat artifacts, path containment, the content-hash cache), opt-in explorer ABI fetch with EIP-1967 proxy resolution and .rustman/abi-cache/, and decoding of calls, outputs, reverts (Error, Panic, custom errors), transactions, receipts and logs with token metadata; running calls with block selection, state overrides and gas estimates, call traces (debug_traceCall, trace_call), head and log streams (eth_subscribe or HTTP polling, reorgs marked), ENS names, local Anvil forks with a temporary environment, the send-method guard and the @evm-read preset; evm assertions (outputs with units, emits, reverts, reverts_with, gas_lt) and captures (evm_output, evm_event, evm_receipt), evm-call in rustman run, the rustman evm call / decode / logs / tx / block / ens / fork commands, the TUI EVM pane and status bar, and the read-only agent tools (evm_call, evm_decode, evm_tx, evm_block, evm_logs_query capped at 10,000 blocks, evm_ens); blockchain GraphQL presets (geth EIP-1767 and subgraph detection, display-only scalar formatting, --paginate, subgraph freshness and the subgraph assertion, result links into the toolkit)
  • EVM signing: the signing gate of kind: evm-tx requests: [evm] allow_signing, [evm.signers.<id>] keystore, keychain (rustman evm signer import) and hardware-wallet (hw-wallet feature) signers, the refusal of raw private keys everywhere, key material in zeroized secrets, and the rustman evm send preconditions (--sign and the decoded preview, the chain_id pin checked against the node, simulation from the signer and --force-revert) with their exact refusals and exit codes, node-suggested fee and gas ceilings, rustman run --sign with in-run nonces; agents never sign (rustman-mcp does not link the gate); signing in CI on a local Anvil
  • Probing EVM providers: rustman evm probe over one or more RPC providers (URLs, {{variables}} or environment names), the read-only method catalog (--methods standard|all|list) and support matrix (supported, unsupported, restricted, error), archive detection, latency per method, newHeads/logs subscription checks, multi-provider consistency (head drift, block hash, balance and --call at a fixed block), opt-in rate-limit discovery, safety budgets (skipped (budget)), the subject: evm-rpc exploration report, --fail-on, exit codes and --viz dashboards
  • gRPC: kind: grpc request files and their fields, interpolation and metadata redaction, schema sources (server reflection v1 with the v1alpha fallback, .proto files compiled in-process, descriptor sets), path containment and compile errors, the descriptor cache in .rustman/grpc/descriptors/ and offline browsing, the method browser with its message templates, message encoding and unknown-field errors, unary and streaming calls with the message timeline, headless stream bounds, deadlines, binary metadata, TLS, mTLS and h2c, gRPC-Web, rich status details, the grpc_status and metadata assertions and from: metadata captures, kind: grpc in rustman run and history, rustman grpc list / describe / call / health with their exit codes, the TUI gRPC editor, and the agent tools grpc_list, grpc_describe and grpc_call
  • WebSocket and SSE: kind: ws and kind: sse sessions, the WebSocket handshake (headers, auth, subprotocols, TLS, proxies, refused upgrades), scripted steps (send, wait_for, sleep, close), ping/pong and close handling, SSE streams over GET and POST and their WHATWG parsing, reconnect and resume with Last-Event-ID and retry, the message timeline, headless bounds and size limits, the messages and close_code assertions with JSONPath over $.messages, the realtime history and report record, rustman ws connect / rustman sse listen, the TUI realtime editor and the agent realtime_listen tool
  • Messaging: kind: kafka, kind: mqtt and kind: amqp request files (operation: produce|consume, brokers, destinations, limits, start, tls, auth), message payloads (text, compact JSON, base64, workspace files), Kafka produce (explicit partition, Java-compatible murmur2 key hashing, round robin, acks) with recorded partitions and offsets, Kafka consume by partition and offset (earliest, latest, absolute, timestamp) with no consumer group and no commits, bounded memory, TLS and SASL PLAIN/SCRAM with redacted passwords, Schema Registry decoding and encoding (Avro, Protobuf, JSON Schema) with a per-run cache, client limitations; MQTT 3.1.1/5 publish and subscribe (QoS 0-2, retain, MQTT 5 properties, wildcards, clean sessions, TLS, mutual TLS, WebSocket); AMQP publish with confirms and mandatory, temporary-queue consume, named queues with destructive or requeue; AsyncAPI 2.6/3.0 import and payload validation; runs with headless bounds, start: before_next, assertions and captures over consumed messages and history with 64 KiB previews; safety gating of produce and named-queue consume for agents; rustman kafka|mqtt|amqp produce|consume; the TUI messaging pane; and the broker tests
  • Agents (MCP server): rustman mcp serve for Claude Code, Claude Desktop and other MCP clients, stdio and Streamable HTTP (loopback bind, bearer token, Origin check), the [agent] table, the read-only default and human confirmation of mutations, redaction of results, output limits and rustman://bodies/, the audit log, background jobs (progress, cancellation, resume), the generated tool reference, and the tool error codes
  • MCP client: MCP server definitions ([mcp_servers] in rustman.toml and mcp/servers/*.yaml), interpolation, workspace trust for stdio commands (.rustman/trust.yaml, --trust), the stdio, Streamable HTTP and legacy HTTP+SSE transports, initialization, version negotiation and capabilities, tools (schema forms, argument validation, results, outputSchema), resources and templates, prompts and completion, notifications, progress, timeouts and cancellation, sampling, elicitation and roots, OAuth, kind: mcp request files (assertions, captures, runs with one session per server, history), rustman mcp-client and the TUI MCP inspector
  • Assertions and captures: status, header, JSONPath, JSON Schema, body and latency assertions, interpolated expected values, captures, and where captured values are kept
  • Snapshot testing: the snapshot assertion and its full form, where snapshots are stored, the snapshot file format, compared parts and the header include list, normalization (secret redaction, ignore, presets, replace, sort) and its fixed order, JSON, text and binary diffs, event-list snapshots, recording, update and CI modes, and reviewing failures in the TUI (Snapshot tab, a approve, r reject, Alt+A queue)
  • Trace propagation: the trace: environment block and [trace] in rustman.toml, --trace, W3C traceparent/tracestate, B3 single and multi, baggage with variables, scope: run, headers you set yourself, signed requests, the request kinds covered, recorded trace ids, traceresponse and Server-Timing, link templates and presets, rustman trace open and the TUI Ctrl+O, OTLP export of client spans ([trace.export], the otlp build feature)
  • Request history: what is recorded and where, retention, redaction at rest, rustman history list filters, show, replay with secret re-resolution, and clear
  • Importing collections: rustman import for Postman collections and environments, Insomnia exports, Bruno collections, HAR captures and .http files: format detection, the destination, dry runs, secret extraction, script handling and Postman script migration, deterministic names, the conflict policy, the import report and exit codes; and rustman export postman / rustman export http
  • API docs: rustman docs build and the rustman docs serve live-reload preview, the [docs] table in rustman.toml, the docs: key of request files, the generated site (sections, endpoint pages, OpenAPI enrichment, search, themes), opt-in examples from history or snapshots, code samples and custom sample templates, Markdown output, GraphQL schema and JSON-RPC method references, redaction and the leak scan, publishing variables, layout template overrides, the output folder and its manifest, and publishing to GitHub Pages
  • Stability and compatibility: the public contracts frozen for v1.0 (request-file version: 1, rustman.toml version = 1, rustman.report/v1, rustman-viz/1, the plugin WIT API and the exit codes), the additive-only promise within a major version, deprecations, what is not covered, and the tests that guard each contract
  • CLI reference: every command, global flags, rustman send (including ad-hoc requests), rustman run (filters, iterations, parallel folders, bail), the pretty, json, junit and tap reporters, terminal output and logs, completions and exit codes
  • Data-driven runs: rustman run --data with CSV and JSON rows, a collection’s default data file, row variables and their precedence, iteration labels in reports, --bail=iteration and secret columns
  • Reports: the canonical rustman.report/v1 report of runs and explorations, rustman report schema, render and diff, --report <format>[=<path>], the JSON, JUnit, SARIF, Markdown and HTML formats with examples, redaction, and CI recipes (GitHub code scanning)
  • Load testing: rustman bench for request files and collections, iterations and virtual users, the constant-vus, ramping-vus and constant-arrival-rate executors, think time and stages, open and closed models and coordinated-omission correction, data feeding (sequential, per-vu, random, stop and recycle), the safety policy pinned to --target, the [bench] caps in rustman.toml, metrics and the per-second series, thresholds (--threshold, [bench.thresholds], abort-on-fail !), Ctrl+C, generator lag, the live dashboard and progress lines, --viz streaming, JSON and HTML reports, redaction, the summary, error classes and exit codes
  • Load testing internals: VUs as runners over one execution path, the governed gates and the global governor, the crate’s modules, per-second HDR windows and their memory bound, the run controller and monitor, and the executor overhead benchmark with its last result
  • Stress testing: rustman stress and its breakpoint, spike, soak and fuzz modes, fuzz mixing (schema-less or --spec mutations, seeds, the baseline phase), malformed payload families, wire faults, the rustman.toml [stress] table (targets, production opt-in, costly families, caps), the stress gate and its refusals, SLOs over 5-second windows, breakpoint steps and bisection, failure modes, the first failing endpoint, rate limiting, spike recovery, soak drift, the client-saturation guard and the open-file check, VUs on worker threads, the kill switch and recovery check, minimization, the live dashboard, reports and --viz, regression export, a CI recipe, and exit codes
  • Monitors: monitors/*.rman-monitor.yaml files (targets, environment, cron or every schedules with timezones and DST, timeout, allow_mutations, alerts), rustman monitor list and rustman monitor run for external schedulers with their exit codes, the read-only monitor policy (the environment’s hosts, mutations opt-in, DELETE never), the whole-run deadline, the result store in .rustman/monitors/ (raw day files, hourly aggregates, state.json, locking), retention and compaction ([monitors].retention) and the git-ignore warning, alert rules with deduplication, cooldown and recovery, the desktop, webhook (templates) and email (smtp feature) channels with redaction and rustman monitor test-alert, the daemon (overlap skip, reload, lock, drain, no port) and schedule-recipe for cron, systemd, launchd and GitHub Actions, rustman monitor status and history, and the TUI Monitors view
  • Plugins: WebAssembly component plugins, the plugin package and rustman-plugin.toml, rustman plugin add|list|remove|verify|api|test|new, declaring plugins in rustman.toml (source, sha256, grants, limits), sha256 pinning and rustman.lock, URL sources and their cache, the grant vocabulary, the sandbox (no ambient WASI, files, network through the safety policy, secrets as handles, logs), CPU and memory limits and fault isolation, plugin API versions, the rustman-plugin-sdk bindings and project templates, and the host test harness with its fake clock, randomness, network and secrets
  • Report schema: the JSON Schema of rustman.report/v1 (kind: run, kind: exploration, kind: contract, kind: bench and kind: stress)
  • Terminal UI: starting rustman / rustman tui, workspace discovery, the create-or-scratch prompt, the responsive layout, focus, status bar, toasts, mouse, themes and colour detection, --ascii, tui.toml, the command palette, help, vim mode, keybindings.toml and the key reference, the collection tree, tabs, saving and changes on disk, the HTTP editor, the GraphQL editor (diagnostics, completion, schema explorer, refresh, subscriptions), the gRPC editor (method browser, message templates, interactive bidi streams, status details, filtered timeline), variable highlighting, the external editor, sending and cancelling, the environment switcher, secret masking and reveal, the TLS badge, the response viewer (JSON tree, JSONPath filter, search, highlighting, binary and large bodies, timing waterfall, latency sparkline, exchange diff), the viz companion hand-off and HTML report, copy as code (OSC 52), importing from the palette, quitting and terminal restore, rendering screenshots, and the platform checks (pty smoke test, manual terminal matrix)
  • Viz protocol: rustman-viz/1, the JSON-lines protocol between rustman and the optional graphical companion: transport, versioning, the handshake, every message with an example, and the companion’s exit codes
  • Webhook inspector: rustman webhook listen, the bind address ([webhook] in rustman.toml) and --allow-remote, JSON-lines output (--jsonl) and --max-captures, the TUI webhook pane, HTTP handling and limits (400/408/413/431), what a capture keeps, the capture buffer, the default reply, mocks in webhook/mocks.yaml and their hot reload, the event log, signature verification (GitHub, Stripe, generic HMAC), and replay and save with header hygiene
  • Traffic recorder: rustman record, the local recording proxy (loopback by default, --allow-remote, [record] in rustman.toml), the printed proxy exports, plain HTTP forwarding, opaque CONNECT tunnels and HTTPS interception scoped by --intercept, TLS REJECTED entries, the per-workspace local CA (rustman record ca init, export, install, uninstall, rotate, remove), its security model, the timeouts, trusting it per platform and in Firefox, saving captures as request files (--save), HAR 1.2 export (--har), and the TUI recorder pane
  • Mock server: rustman mock serve for an OpenAPI document, the bind address ([mock] in rustman.toml) and --allow-remote, document loading, route matching, problem+json errors, the response selection order, the Prefer header, content negotiation, seeded synthesis, request validation (400/415/422, --no-validate), --enforce-security and [mock.security], hand-written overrides in mocks/*.rman-mock.yaml, response templates, latency and faults, stateful mode and /__rustman/reset, request limits (413/431) and Ctrl+C, CORS, the request log (--jsonl) and its sources, --history, hot reload, --proxy-unmatched and --record, the explorer self-check, and the TUI mock server pane
  • Contract testing: rustman contract diff for two OpenAPI documents or --base <git-ref>, exit codes and strictness (--fail-on-unknown, --fail-on non-breaking), the contracts/allowlist.yaml allowlist (justification, expires, expired and unused entries), a GitHub Actions pull request workflow, Pact contracts (rustman contract pact generate from a collection, rustman contract pact verify against a provider with provider states and the safety policy), passive conformance of recorded traffic (rustman contract verify), kind: contract reports, and redaction
  • Contract rule catalog: rustman contract diff and rustman contract rules, how two OpenAPI documents are matched and compared (request and response directions, $refs, recursive schemas, compositions), the JSON pointers of each difference, and every rule with its classification, description and example (generated from the catalog, with its version)
  • Import report schema: the JSON Schema of rustman.import-report/v1
  • JSON schemas: the machine-readable output formats and where their schemas live