1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#[cfg(not(feature="rsnek_multithreaded"))]
use self::impl_single_threaded as internal;
#[cfg(feature="rsnek_multithreaded")]
use self::impl_multithreaded as internal;
pub use self::internal::StrongRc;
pub use self::internal::WeakRc;
mod impl_single_threaded {
use std;
pub use std::rc::Rc as StrongRc;
pub use std::rc::Weak as WeakRc;
}
mod impl_multithreaded {
use std;
pub use std::sync::Arc as StrongRc;
pub use std::sync::Weak as WeakRc;
}