Truly independent web browser
Meta: Export the classes of the wrappers of Rust interfaces
Andreas Kling3749aea49722
diff --git a/Meta/Generators/libweb_bindings/rust_bindings.py b/Meta/Generators/libweb_bindings/rust_bindings.pyindex 2f7ac903148..6ced0006169 100644--- a/Meta/Generators/libweb_bindings/rust_bindings.py+++ b/Meta/Generators/libweb_bindings/rust_bindings.py@@ -122,9 +122,11 @@ def write_cpp_declaration(out: TextIO, includes: GeneratedIncludes, interface: Iincludes.add("LibJS/Runtime/NativeFunction.h")includes.add("LibJS/Runtime/Object.h")includes.add("LibWeb/Bindings/InterfaceObject.h")+ includes.add("LibWeb/Export.h")out.write(- f"""// The class of the wrappers of {interface.name}, whose implementation is in Rust.-extern "C" JSHostClass const {wrapper_host_class_symbol(interface)};+ f"""// The class of the wrappers of {interface.name}, whose implementation is in Rust, which code outside LibWeb names+// as well when it asks whether an object is a wrapper of the interface.+extern "C" WEB_API JSHostClass const {wrapper_host_class_symbol(interface)};struct {interface.constructor_class} {{public: