File tree 2 files changed +8
-3
lines changed 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ readme = "README.md"
9
9
10
10
[dependencies ]
11
11
# Optional: Support for zerogc
12
- zerogc = { version = " 0.1.3" , optional = true }
12
+ zerogc = { version = " 0.2.0-alpha.2" , optional = true }
13
+ zerogc-derive = { version = " 0.2.0-alpha.2" , optional = true }
13
14
# Optional: Support for numeric traits
14
15
num-traits = { version = " 0.2.14" , optional = true }
15
16
@@ -22,4 +23,4 @@ builtins = []
22
23
23
24
24
25
[workspace ]
25
- members = [" lib/*" ]
26
+ members = [" lib/*" ]
Original file line number Diff line number Diff line change 5
5
use std:: mem:: MaybeUninit ;
6
6
use crate :: { StaticReflect , field_offset, TypeInfo } ;
7
7
8
+ #[ cfg( feature = "zerogc" ) ]
9
+ use zerogc_derive:: Trace ;
10
+
8
11
/// A FFi-safe slice type (`&[T]`)
9
12
///
10
13
/// Unlike the rust type, this has a well-defined C representation.
@@ -67,6 +70,7 @@ unsafe impl<T: Sync> Send for AsmSlice<T> {}
67
70
#[ cfg_attr( feature = "zerogc" , zerogc( nop_trace, copy) ) ]
68
71
pub struct AsmStr {
69
72
/// The underlying memory of the string
73
+ #[ cfg_attr( feature = "zerogc" , zerogc( unsafe_skip_trace) ) ]
70
74
pub bytes : AsmSlice < u8 >
71
75
}
72
76
impl AsmStr {
@@ -177,4 +181,4 @@ unsafe impl<T: StaticReflect> StaticReflect for AsmOption<T> {
177
181
}
178
182
179
183
/// This is an owned value, so it's safe to send
180
- unsafe impl < T : Send > Send for AsmOption < T > { }
184
+ unsafe impl < T : Send > Send for AsmOption < T > { }
You can’t perform that action at this time.
0 commit comments