File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,17 @@ impl<T> SendSync for T {}
3030
3131/// Immutable reference-counted container.
3232#[ cfg( not( feature = "sync" ) ) ]
33- pub use std:: rc:: Rc as Shared ;
33+ // TODO: Further audit no_std compatibility
34+ // When building with no_std + sync features, explicit imports from alloc
35+ // are needed despite using no_std_compat. This fixed compilation errors
36+ // around missing trait implementations for some users.
37+ pub use alloc:: rc:: Rc as Shared ;
3438/// Immutable reference-counted container.
3539#[ cfg( feature = "sync" ) ]
36- pub use std:: sync:: Arc as Shared ;
40+ // TODO: Further audit no_std compatibility
41+ // While no_std_compat should map std::sync::Arc to alloc::sync::Arc,
42+ // there appear to be cases where this mapping fails.
43+ pub use alloc:: sync:: Arc as Shared ;
3744
3845/// Synchronized shared object.
3946#[ cfg( not( feature = "sync" ) ) ]
You can’t perform that action at this time.
0 commit comments