File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 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> {
149149/// Note that it clones itself so that it is empty, requiring the user to configure each clone separately, specifically
150150/// and explicitly. This is to have the fastest-possible default configuration available by default, but allow
151151/// 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"]`.
152155pub struct Repository {
153156 /// A ref store with shared ownership (or the equivalent of it).
154157 pub refs : crate :: RefStore ,
@@ -182,6 +185,9 @@ pub struct Repository {
182185/// it's merely meant to be able to exist in a `Sync` context.
183186///
184187/// 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"]`.
185191#[ derive( Clone ) ]
186192pub struct ThreadSafeRepository {
187193 /// A store for references to point at objects
You can’t perform that action at this time.
0 commit comments