bindings: Move string-related bindings code to script_bindings. (#35172)

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
Josh Matthews 2025-01-29 02:40:25 -05:00 committed by GitHub
parent 1188d2b2e7
commit a6218b42ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 688 additions and 601 deletions

View file

@ -1,3 +1,19 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
#[macro_use]
extern crate jstraceable_derive;
#[macro_use]
extern crate log;
#[macro_use]
extern crate malloc_size_of_derive;
pub mod conversions;
pub mod str;
mod trace;
// These trait exports are public, because they are used in the DOM bindings.
// Since they are used in derive macros,
// it is useful that they are accessible at the root of the crate.
pub(crate) use js::gc::Traceable as JSTraceable;