From bead83f4b00f31923964ec1c4a9c931fe6dcc384 Mon Sep 17 00:00:00 2001 From: David Hewitt Date: Fri, 24 Nov 2023 22:11:40 +0000 Subject: [PATCH] docs: fixup docs for smallvec feature --- guide/src/features.md | 4 ++++ src/lib.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/guide/src/features.md b/guide/src/features.md index fc3b8eeb..b6b61ab1 100644 --- a/guide/src/features.md +++ b/guide/src/features.md @@ -159,3 +159,7 @@ struct User { } # } ``` + +### `smallvec` + +Adds a dependency on [smallvec](https://docs.rs/smallvec) and enables conversions into its [`SmallVec`](https://docs.rs/smallvec/latest/smallvec/struct.SmallVec.html) type. diff --git a/src/lib.rs b/src/lib.rs index e308ebc6..7cb40614 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -85,7 +85,6 @@ //! - [`eyre`]: Enables a conversion from [eyre]’s [`Report`] type to [`PyErr`]. //! - [`hashbrown`]: Enables conversions between Python objects and [hashbrown]'s [`HashMap`] and //! [`HashSet`] types. -//! - [`smallvec`][smallvec]: Enables conversions between Python list and [smallvec]'s [`SmallVec`]. //! - [`indexmap`][indexmap_feature]: Enables conversions between Python dictionary and [indexmap]'s [`IndexMap`]. //! - [`num-bigint`]: Enables conversions between Python objects and [num-bigint]'s [`BigInt`] and //! [`BigUint`] types. @@ -95,6 +94,7 @@ //! [`Decimal`] type. //! - [`serde`]: Allows implementing [serde]'s [`Serialize`] and [`Deserialize`] traits for //! [`Py`]`` for all `T` that implement [`Serialize`] and [`Deserialize`]. +//! - [`smallvec`][smallvec]: Enables conversions between Python list and [smallvec]'s [`SmallVec`]. //! //! ## Unstable features //!