Skip to content
Myr

Mirror PR 343 changes from readme to rustdoc

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent cb47d7c · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:src/lib.rs+3 added-3 removed
15 unmodified lines
16//! - Use `Result<T, anyhow::Error>`, or equivalently `anyhow::Result<T>`, as17//! the return type of any fallible function.18//!19//! Within the function, use `?` to easily propagate any error that implements20//! the `std::error::Error` trait.20//! the [`std::error::Error`] trait.21//!22//! ```23//! # pub trait Deserialize {}24//! #
166 unmodified lines
191//! <br>192//!193//! # No-std support194//!195//! In no_std mode, the same API is almost all available and works the same way.196//! To depend on Anyhow in no_std mode, disable our default enabled "std"195//! In no_std mode, almost all of the same API is available and works the same196//! way. To depend on Anyhow in no_std mode, disable our default enabled "std"197//! feature in Cargo.toml. A global allocator is required.198//!199//! ```toml200//! [dependencies]
502 unmodified lines