//
Busca en todas las páginas de la documentación
unwrap to production paths.thiserror for public error enums. Stable matchable variants.Error + Display + From for sources. Enable ? chains.anyhow in public APIs. Consumers need typed errors.#[non_exhaustive]. Semver-friendly evolution.anyhow or eyre at binary boundary. Attach context liberally.Err to code 1+.RUST_BACKTRACE=1.unwrap in library fallible paths. Return Result.expect with message only when invariant documented. Tests and provable logic.? over match boilerplate. Clearer happy path.debug_assert! for dev invariants. Not user validation.Option for optional, Result for failure. Do not conflate.Result iterators with short-circuit awareness. Document partial failure policy.Stack versions: This page was written for Rust 1.97.0 (edition 2024), Tokio 1.x, Axum 0.8, serde 1.0, sqlx 0.8, clap 4, and Polars 0.46+.
Revisado por Chris St. John·Última actualización: 16 jul 2026