File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 36
36
//! (de)serializing [`IndexMap`] as an ordered sequence are available in the
37
37
//! [`map::serde_seq`] module.
38
38
//! * `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};`.
40
44
//! * `arbitrary`: Adds implementations for the [`arbitrary::Arbitrary`] trait
41
45
//! to [`IndexMap`] and [`IndexSet`].
42
46
//! * `quickcheck`: Adds implementations for the [`quickcheck::Arbitrary`] trait
50
54
//! [`Deserialize`]: `::serde::Deserialize`
51
55
//! [`BorshSerialize`]: `::borsh::BorshSerialize`
52
56
//! [`BorshDeserialize`]: `::borsh::BorshDeserialize`
57
+ //! [`borsh`]: `::borsh`
53
58
//! [`arbitrary::Arbitrary`]: `::arbitrary::Arbitrary`
54
59
//! [`quickcheck::Arbitrary`]: `::quickcheck::Arbitrary`
55
60
//!
You can’t perform that action at this time.
0 commit comments