File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,9 @@ pub struct Reference<'r> {
149
149
/// Note that it clones itself so that it is empty, requiring the user to configure each clone separately, specifically
150
150
/// and explicitly. This is to have the fastest-possible default configuration available by default, but allow
151
151
/// those who experiment with workloads to get speed boosts of 2x or more.
152
+ ///
153
+ /// Note: when built with `default-features = false`, this type is **not** `Send`.
154
+ /// The minimal feature set to activate `Send` is `features = ["parallel"]`.
152
155
pub struct Repository {
153
156
/// A ref store with shared ownership (or the equivalent of it).
154
157
pub refs : crate :: RefStore ,
@@ -182,6 +185,9 @@ pub struct Repository {
182
185
/// it's merely meant to be able to exist in a `Sync` context.
183
186
///
184
187
/// Note that it can also cheaply be cloned, and it will retain references to all contained resources.
188
+ ///
189
+ /// Note: when built with `default-features = false`, this type is **not** `Send` or `Sync`.
190
+ /// The minimal feature set to activate `Send + Sync` is `features = ["parallel"]`.
185
191
#[ derive( Clone ) ]
186
192
pub struct ThreadSafeRepository {
187
193
/// A store for references to point at objects
You can’t perform that action at this time.
0 commit comments