Skip to content

Commit 31c9862

Browse files
authored
Merge pull request #363 from Fraser999/update-rustdocs
Mention cyclic dependency in main rustdocs
2 parents 539b401 + 779505f commit 31c9862

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@
3636
//! (de)serializing [`IndexMap`] as an ordered sequence are available in the
3737
//! [`map::serde_seq`] module.
3838
//! * `borsh`: Adds implementations for [`BorshSerialize`] and [`BorshDeserialize`]
39-
//! to [`IndexMap`] and [`IndexSet`].
39+
//! to [`IndexMap`] and [`IndexSet`]. **Note:** When this feature is enabled,
40+
//! you cannot enable the `derive` feature of [`borsh`] due to a cyclic
41+
//! dependency. Instead, add the `borsh-derive` crate as an explicit
42+
//! dependency in your Cargo.toml and import as e.g.
43+
//! `use borsh_derive::{BorshSerialize, BorshDeserialize};`.
4044
//! * `arbitrary`: Adds implementations for the [`arbitrary::Arbitrary`] trait
4145
//! to [`IndexMap`] and [`IndexSet`].
4246
//! * `quickcheck`: Adds implementations for the [`quickcheck::Arbitrary`] trait
@@ -50,6 +54,7 @@
5054
//! [`Deserialize`]: `::serde::Deserialize`
5155
//! [`BorshSerialize`]: `::borsh::BorshSerialize`
5256
//! [`BorshDeserialize`]: `::borsh::BorshDeserialize`
57+
//! [`borsh`]: `::borsh`
5358
//! [`arbitrary::Arbitrary`]: `::arbitrary::Arbitrary`
5459
//! [`quickcheck::Arbitrary`]: `::quickcheck::Arbitrary`
5560
//!

0 commit comments

Comments
 (0)