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) andSHA256SUMS, installing from source withcargo install --locked, and cutting a release - Request files: the workspace layout,
rustman.toml, the*.rman.yamlformat with one example per body type, collections andrustman 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.*]inrustman.tomland the user config (no credentials, no commands in the workspace), thekeychain,env,sops(age, PGP viagpg),onepassword(opCLI, Connect),vault(KV v1/v2, token, AppRole, OIDC),cmdand 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,
429backoff, the[safety]table inrustman.toml, andGovernedSender - HTTP requests: transport, timeouts, redirects, TLS and mTLS, proxies, cookie jars, default headers, auth helpers (including OAuth2 and
rustman auth login), timings, response bodies, andrustman import curl/rustman export curl - Code snippets:
rustman export snippetfor 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 openapifor OpenAPI 3.0/3.1 files and URLs, format and version detection,$refresolution 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,resumeandexport, 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 thebad-apifixture - GraphQL:
kind: graphqlrequest files, their fields and defaults, interpolation (never inside the document), introspection and its legacy fallback, the schema cache in.rustman/graphql/schemas/,schema_fileand[[graphql.endpoints]], how the schema is chosen, validation, sending over HTTP (GET, uploads, APQ), subscriptions over WebSocket (graphql-transport-wsand the legacy protocol) and SSE with their headless limits, GraphQL assertions and captures, history records,kind: graphqlinrustman run,rustman graphql introspect/query, and the TUI GraphQL editor - JSON-RPC:
kind: jsonrpcenvelopes 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, therpc_errorassertion 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: jsonrpcinrustman runand its JSON report, the TUI editor, method guards and the agentrpc_calltool - EVM toolkit: the
[evm]table inrustman.toml, chain pinning withchain_idin 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-callandkind: evm-txrequest 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_subscribeor HTTP polling, reorgs marked), ENS names, local Anvil forks with a temporary environment, the send-method guard and the@evm-readpreset;evmassertions (outputs with units,emits,reverts,reverts_with,gas_lt) and captures (evm_output,evm_event,evm_receipt),evm-callinrustman run, therustman evm call/decode/logs/tx/block/ens/forkcommands, the TUI EVM pane and status bar, and the read-only agent tools (evm_call,evm_decode,evm_tx,evm_block,evm_logs_querycapped at 10,000 blocks,evm_ens); blockchain GraphQL presets (geth EIP-1767 and subgraph detection, display-only scalar formatting,--paginate, subgraph freshness and thesubgraphassertion, result links into the toolkit) - EVM signing: the signing gate of
kind: evm-txrequests:[evm] allow_signing,[evm.signers.<id>]keystore, keychain (rustman evm signer import) and hardware-wallet (hw-walletfeature) signers, the refusal of raw private keys everywhere, key material in zeroized secrets, and therustman evm sendpreconditions (--signand the decoded preview, thechain_idpin 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 --signwith in-run nonces; agents never sign (rustman-mcpdoes not link the gate); signing in CI on a local Anvil - Probing EVM providers:
rustman evm probeover 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/logssubscription checks, multi-provider consistency (head drift, block hash, balance and--callat a fixed block), opt-in rate-limit discovery, safety budgets (skipped (budget)), thesubject: evm-rpcexploration report,--fail-on, exit codes and--vizdashboards - gRPC:
kind: grpcrequest files and their fields, interpolation and metadata redaction, schema sources (server reflection v1 with the v1alpha fallback,.protofiles 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, thegrpc_statusandmetadataassertions andfrom: metadatacaptures,kind: grpcinrustman runand history,rustman grpc list/describe/call/healthwith their exit codes, the TUI gRPC editor, and the agent toolsgrpc_list,grpc_describeandgrpc_call - WebSocket and SSE:
kind: wsandkind: ssesessions, 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 withLast-Event-IDandretry, the message timeline, headless bounds and size limits, themessagesandclose_codeassertions with JSONPath over$.messages, therealtimehistory and report record,rustman ws connect/rustman sse listen, the TUI realtime editor and the agentrealtime_listentool - Messaging:
kind: kafka,kind: mqttandkind: amqprequest 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 andmandatory, temporary-queue consume, named queues withdestructiveorrequeue; 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 servefor 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 andrustman://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]inrustman.tomlandmcp/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: mcprequest files (assertions, captures, runs with one session per server, history),rustman mcp-clientand 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
snapshotassertion 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,aapprove,rreject,Alt+Aqueue) - Trace propagation: the
trace:environment block and[trace]inrustman.toml,--trace, W3Ctraceparent/tracestate, B3 single and multi,baggagewith variables,scope: run, headers you set yourself, signed requests, the request kinds covered, recorded trace ids,traceresponseandServer-Timing, link templates and presets,rustman trace openand the TUICtrl+O, OTLP export of client spans ([trace.export], theotlpbuild feature) - Request history: what is recorded and where, retention, redaction at rest,
rustman history listfilters,show,replaywith secret re-resolution, andclear - Importing collections:
rustman importfor Postman collections and environments, Insomnia exports, Bruno collections, HAR captures and.httpfiles: 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; andrustman export postman/rustman export http - API docs:
rustman docs buildand therustman docs servelive-reload preview, the[docs]table inrustman.toml, thedocs: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.tomlversion = 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 --datawith CSV and JSON rows, a collection’s default data file, row variables and their precedence, iteration labels in reports,--bail=iterationand secret columns - Reports: the canonical
rustman.report/v1report of runs and explorations,rustman report schema,renderanddiff,--report <format>[=<path>], the JSON, JUnit, SARIF, Markdown and HTML formats with examples, redaction, and CI recipes (GitHub code scanning) - Load testing:
rustman benchfor request files and collections, iterations and virtual users, theconstant-vus,ramping-vusandconstant-arrival-rateexecutors, think time and stages, open and closed models and coordinated-omission correction, data feeding (sequential,per-vu,random,stopandrecycle), the safety policy pinned to--target, the[bench]caps inrustman.toml, metrics and the per-second series, thresholds (--threshold,[bench.thresholds], abort-on-fail!), Ctrl+C, generator lag, the live dashboard and progress lines,--vizstreaming, 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 stressand itsbreakpoint,spike,soakandfuzzmodes, fuzz mixing (schema-less or--specmutations, seeds, the baseline phase), malformed payload families, wire faults, therustman.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.yamlfiles (targets, environment,cronoreveryschedules with timezones and DST,timeout,allow_mutations,alerts),rustman monitor listandrustman monitor runfor 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 (smtpfeature) channels with redaction andrustman monitor test-alert, the daemon (overlap skip, reload, lock, drain, no port) andschedule-recipefor cron, systemd, launchd and GitHub Actions,rustman monitor statusandhistory, 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 inrustman.toml(source,sha256,grants,limits), sha256 pinning andrustman.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, therustman-plugin-sdkbindings 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: benchandkind: 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.tomland 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 betweenrustmanand 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]inrustman.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 inwebhook/mocks.yamland 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]inrustman.toml), the printed proxy exports, plain HTTP forwarding, opaqueCONNECTtunnels and HTTPS interception scoped by--intercept,TLS REJECTEDentries, 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 servefor an OpenAPI document, the bind address ([mock]inrustman.toml) and--allow-remote, document loading, route matching, problem+json errors, the response selection order, thePreferheader, content negotiation, seeded synthesis, request validation (400/415/422,--no-validate),--enforce-securityand[mock.security], hand-written overrides inmocks/*.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-unmatchedand--record, the explorer self-check, and the TUI mock server pane - Contract testing:
rustman contract difffor two OpenAPI documents or--base <git-ref>, exit codes and strictness (--fail-on-unknown,--fail-on non-breaking), thecontracts/allowlist.yamlallowlist (justification,expires, expired and unused entries), a GitHub Actions pull request workflow, Pact contracts (rustman contract pact generatefrom a collection,rustman contract pact verifyagainst a provider with provider states and the safety policy), passive conformance of recorded traffic (rustman contract verify),kind: contractreports, and redaction - Contract rule catalog:
rustman contract diffandrustman 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