diff options
author | Samson <16504129+sagudev@users.noreply.github.com> | 2024-08-25 15:58:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-25 13:58:09 +0000 |
commit | 88d87702147b296de230c120e636fe97f8466e96 (patch) | |
tree | 989f797f0c4f362417ee50c927473b3e88cd829e /components/script/lib.rs | |
parent | 6357998ede902de7fb75354283f4fabbc141c28c (diff) | |
download | servo-88d87702147b296de230c120e636fe97f8466e96.tar.gz servo-88d87702147b296de230c120e636fe97f8466e96.zip |
Use global exports from derives (#33169)
* pub reexport *Traceable
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* reexport `HasParent` for derives
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* reexport DomObject, Reflector, MutDomObject
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* fmt
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Update lib.rs
Signed-off-by: Samson <16504129+sagudev@users.noreply.github.com>
* Update lib.rs
Signed-off-by: Samson <16504129+sagudev@users.noreply.github.com>
* Update lib.rs
Signed-off-by: Samson <16504129+sagudev@users.noreply.github.com>
---------
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Signed-off-by: Samson <16504129+sagudev@users.noreply.github.com>
Diffstat (limited to 'components/script/lib.rs')
-rw-r--r-- | components/script/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/script/lib.rs b/components/script/lib.rs index b145e83227a..534e1917194 100644 --- a/components/script/lib.rs +++ b/components/script/lib.rs @@ -96,3 +96,10 @@ mod window_named_properties; pub use init::init; pub use script_runtime::JSEngineSetup; + +// 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 use crate::dom::bindings::inheritance::HasParent; +pub use crate::dom::bindings::reflector::{DomObject, MutDomObject, Reflector}; +pub use crate::dom::bindings::trace::{CustomTraceable, JSTraceable}; |