From: 志宇 Date: Mon, 19 Oct 2026 14:34:08 +0000 (+0000) Subject: chore: cargo fmt `crates/core/src/lib.rs` X-Git-Url: http://internal-gitweb-vhost/-script/src/example_cli/database/struct.InsertBlockNotMatchingError.html?a=commitdiff_plain;h=f97885f8694eca9d72656ba585846bf43378ce25;p=bdk chore: cargo fmt `crates/core/src/lib.rs` --- diff --git a/crates/core/src/lib.rs b/crates/core/src/lib.rs index 247cc915..c9c97f3e 100644 --- a/crates/core/src/lib.rs +++ b/crates/core/src/lib.rs @@ -2,16 +2,16 @@ //! //! # Features //! -//! - `std` (default): use the standard library, including its `HashMap`/`HashSet`. Without it, -//! this crate is `no_std` and uses `alloc`'s `BTreeMap`/`BTreeSet` instead. +//! - `std` (default): use the standard library, including its `HashMap`/`HashSet`. Without it, this +//! crate is `no_std` and uses `alloc`'s `BTreeMap`/`BTreeSet` instead. //! - `serde`: implement `serde::Serialize`/`serde::Deserialize` for this crate's types. //! - `hashbrown`: use [`hashbrown`](https://docs.rs/hashbrown)'s `HashMap`/`HashSet` for this -//! crate's hash collections (e.g. `bdk_chain`'s `TxGraph`), on `std` builds too. These hash -//! with `ahash` using fixed, publicly known keys unless `ahash`'s `runtime-rng` or -//! `compile-time-rng` feature is enabled somewhere in the dependency graph. With fixed keys, a -//! malicious chain source can send transactions crafted to collide, making insertion -//! quadratic. To randomize the keys, depend on -//! `ahash = { version = "0.8", features = ["runtime-rng"] }` (or `compile-time-rng`) yourself. +//! crate's hash collections (e.g. `bdk_chain`'s `TxGraph`), on `std` builds too. These hash with +//! `ahash` using fixed, publicly known keys unless `ahash`'s `runtime-rng` or `compile-time-rng` +//! feature is enabled somewhere in the dependency graph. With fixed keys, a malicious chain +//! source can send transactions crafted to collide, making insertion quadratic. To randomize the +//! keys, depend on `ahash = { version = "0.8", features = ["runtime-rng"] }` (or +//! `compile-time-rng`) yourself. // only enables the `doc_cfg` feature when the `docsrs` configuration attribute is defined #![cfg_attr(docsrs, feature(doc_cfg))]