Skip to content

Commit

Permalink
Move Traceable trait to mozjs-sys.
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Matthews <[email protected]>
  • Loading branch information
jdm committed Dec 25, 2024
1 parent 299ce51 commit 2a5a8f8
Show file tree
Hide file tree
Showing 6 changed files with 449 additions and 432 deletions.
1 change: 0 additions & 1 deletion mozjs-sys/src/jsgc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use crate::glue::CallPropertyDescriptorTracer;
use crate::jsapi::js::TraceValueArray;
use crate::jsapi::JS;
use crate::jsapi::{jsid, JSFunction, JSObject, JSScript, JSString, JSTracer};

use crate::jsid::VoidId;
use std::cell::UnsafeCell;
use std::ffi::{c_char, c_void};
Expand Down
2 changes: 2 additions & 0 deletions mozjs-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ pub mod glue;
pub mod jsgc;
pub mod jsid;
pub mod jsval;
pub mod trace;

// Reexport the bindings in the jsapi module
pub use crate::generated::root as jsapi;

// The bindings generated by bindgen
#[doc(hidden)]
#[allow(dead_code)]
mod generated {
include!(concat!(env!("OUT_DIR"), "/build/jsapi.rs"));
}
Expand Down
Loading

0 comments on commit 2a5a8f8

Please sign in to comment.