Wright AI writes rustdoc-style /// comments for undocumented Rust functions and structs — including Panics, Errors, and Examples sections — then catches drift when signatures change.
See it in action
Wright AI reads the function body, its callers, and its callees — generating documentation that reflects real intent, not just syntax.
pub fn parse_connection_string(s: &str) -> Result<ConnectionConfig, ConfigError> {
let parts: Vec<&str> = s.splitn(2, "://").collect();
if parts.len() != 2 { return Err(ConfigError::MissingScheme); }
let scheme = Scheme::try_from(parts[0])?;
ConnectionConfig::from_parts(scheme, parts[1])
}/// Parses a connection string into a validated `ConnectionConfig`.
///
/// # Errors
///
/// Returns `ConfigError::MissingScheme` if the input lacks `://`.
/// Returns `ConfigError::UnknownScheme` if the scheme is not recognised.
///
/// # Examples
///
/// ```
/// let cfg = parse_connection_string("postgres://localhost:5432/mydb")?;
/// ```
pub fn parse_connection_string(s: &str) -> Result<ConnectionConfig, ConfigError> {How it works
WrightAI generates, verifies and maintains documentation — so docs stay accurate as your Rust codebase evolves.
Comparison
Most tools for Rust documentation either render what exists or suggest one comment at a time. Wright does neither.
Renders existing rustdoc into HTML — does not write them for you.
Shows inlay hints for types inline. Does not generate doc comments.
Generates one docstring at a time. No batch mode, no coverage tracking, no CI gate.
Batch-generates rustdoc documentation across your entire Rust codebase. Tracks coverage. Detects drift on every commit. Feeds live docs to AI tools via MCP. Free to start.
Free VS Code extension · CLI · GitHub Action · MCP server.
No credit card required.