diff --git a/src/rust.rs b/src/rust.rs index 9ac226c6a..ef00d1101 100644 --- a/src/rust.rs +++ b/src/rust.rs @@ -57,7 +57,8 @@ impl RtUtils for rc::Rc { } } -unsafe extern fn gc_callback(rt: *mut JSRuntime, _status: JSGCStatus) { +/// If you set your own callback, the first step should be a call to this one. +pub unsafe extern fn gc_callback(rt: *mut JSRuntime, _status: JSGCStatus) { use std::rt::local::Local; use std::rt::task::Task; unsafe {