script: Limit public exports. (#34915)

* script: Restrict reexport visibility of DOM types.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* script: Mass pub->pub(crate) conversion.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* script: Hide existing dead code warnings.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* Formatting.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* Fix clippy warnings.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* Formatting.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* Fix unit tests.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* Fix clippy.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* More formatting.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

---------

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
Josh Matthews 2025-01-10 03:19:19 -05:00 committed by GitHub
parent f220d6d3a5
commit c94d909a86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
585 changed files with 5411 additions and 5013 deletions

View file

@ -15,7 +15,7 @@ use crate::dom::webglrenderingcontext::WebGLRenderingContext;
use crate::script_runtime::CanGc;
#[dom_struct]
pub struct ANGLEInstancedArrays {
pub(crate) struct ANGLEInstancedArrays {
reflector_: Reflector,
ctx: Dom<WebGLRenderingContext>,
}

View file

@ -12,7 +12,7 @@ use crate::dom::webglrenderingcontext::WebGLRenderingContext;
use crate::script_runtime::CanGc;
#[dom_struct]
pub struct EXTBlendMinmax {
pub(crate) struct EXTBlendMinmax {
reflector_: Reflector,
}

View file

@ -13,7 +13,7 @@ use crate::dom::webglrenderingcontext::WebGLRenderingContext;
use crate::script_runtime::CanGc;
#[dom_struct]
pub struct EXTColorBufferHalfFloat {
pub(crate) struct EXTColorBufferHalfFloat {
reflector_: Reflector,
}

View file

@ -12,7 +12,7 @@ use crate::dom::webglrenderingcontext::WebGLRenderingContext;
use crate::script_runtime::CanGc;
#[dom_struct]
pub struct EXTFragDepth {
pub(crate) struct EXTFragDepth {
reflector_: Reflector,
}

View file

@ -12,7 +12,7 @@ use crate::dom::webglrenderingcontext::WebGLRenderingContext;
use crate::script_runtime::CanGc;
#[dom_struct]
pub struct EXTShaderTextureLod {
pub(crate) struct EXTShaderTextureLod {
reflector_: Reflector,
}

View file

@ -13,7 +13,7 @@ use crate::dom::webglrenderingcontext::WebGLRenderingContext;
use crate::script_runtime::CanGc;
#[dom_struct]
pub struct EXTTextureFilterAnisotropic {
pub(crate) struct EXTTextureFilterAnisotropic {
reflector_: Reflector,
}

View file

@ -5,19 +5,19 @@
use super::{WebGLExtension, WebGLExtensionSpec, WebGLExtensions};
use crate::dom::bindings::codegen::Bindings::WebGLRenderingContextBinding::WebGLRenderingContextConstants as constants;
pub mod angleinstancedarrays;
pub mod extblendminmax;
pub mod extcolorbufferhalffloat;
pub mod extfragdepth;
pub mod extshadertexturelod;
pub mod exttexturefilteranisotropic;
pub mod oeselementindexuint;
pub mod oesstandardderivatives;
pub mod oestexturefloat;
pub mod oestexturefloatlinear;
pub mod oestexturehalffloat;
pub mod oestexturehalffloatlinear;
pub mod oesvertexarrayobject;
pub mod webglcolorbufferfloat;
pub mod webglcompressedtextureetc1;
pub mod webglcompressedtextures3tc;
pub(crate) mod angleinstancedarrays;
pub(crate) mod extblendminmax;
pub(crate) mod extcolorbufferhalffloat;
pub(crate) mod extfragdepth;
pub(crate) mod extshadertexturelod;
pub(crate) mod exttexturefilteranisotropic;
pub(crate) mod oeselementindexuint;
pub(crate) mod oesstandardderivatives;
pub(crate) mod oestexturefloat;
pub(crate) mod oestexturefloatlinear;
pub(crate) mod oestexturehalffloat;
pub(crate) mod oestexturehalffloatlinear;
pub(crate) mod oesvertexarrayobject;
pub(crate) mod webglcolorbufferfloat;
pub(crate) mod webglcompressedtextureetc1;
pub(crate) mod webglcompressedtextures3tc;

View file

@ -12,7 +12,7 @@ use crate::dom::webglrenderingcontext::WebGLRenderingContext;
use crate::script_runtime::CanGc;
#[dom_struct]
pub struct OESElementIndexUint {
pub(crate) struct OESElementIndexUint {
reflector_: Reflector,
}

View file

@ -13,7 +13,7 @@ use crate::dom::webglrenderingcontext::WebGLRenderingContext;
use crate::script_runtime::CanGc;
#[dom_struct]
pub struct OESStandardDerivatives {
pub(crate) struct OESStandardDerivatives {
reflector_: Reflector,
}

View file

@ -12,7 +12,7 @@ use crate::dom::webglrenderingcontext::WebGLRenderingContext;
use crate::script_runtime::CanGc;
#[dom_struct]
pub struct OESTextureFloat {
pub(crate) struct OESTextureFloat {
reflector_: Reflector,
}

View file

@ -11,7 +11,7 @@ use crate::dom::webglrenderingcontext::WebGLRenderingContext;
use crate::script_runtime::CanGc;
#[dom_struct]
pub struct OESTextureFloatLinear {
pub(crate) struct OESTextureFloatLinear {
reflector_: Reflector,
}

View file

@ -13,7 +13,7 @@ use crate::dom::webglrenderingcontext::WebGLRenderingContext;
use crate::script_runtime::CanGc;
#[dom_struct]
pub struct OESTextureHalfFloat {
pub(crate) struct OESTextureHalfFloat {
reflector_: Reflector,
}

View file

@ -12,7 +12,7 @@ use crate::dom::webglrenderingcontext::WebGLRenderingContext;
use crate::script_runtime::CanGc;
#[dom_struct]
pub struct OESTextureHalfFloatLinear {
pub(crate) struct OESTextureHalfFloatLinear {
reflector_: Reflector,
}

View file

@ -16,7 +16,7 @@ use crate::dom::webglvertexarrayobjectoes::WebGLVertexArrayObjectOES;
use crate::script_runtime::CanGc;
#[dom_struct]
pub struct OESVertexArrayObject {
pub(crate) struct OESVertexArrayObject {
reflector_: Reflector,
ctx: Dom<WebGLRenderingContext>,
}

View file

@ -13,7 +13,7 @@ use crate::dom::webglrenderingcontext::WebGLRenderingContext;
use crate::script_runtime::CanGc;
#[dom_struct]
pub struct WEBGLColorBufferFloat {
pub(crate) struct WEBGLColorBufferFloat {
reflector_: Reflector,
}

View file

@ -13,7 +13,7 @@ use crate::dom::webgltexture::{TexCompression, TexCompressionValidation};
use crate::script_runtime::CanGc;
#[dom_struct]
pub struct WEBGLCompressedTextureETC1 {
pub(crate) struct WEBGLCompressedTextureETC1 {
reflector_: Reflector,
}

View file

@ -13,7 +13,7 @@ use crate::dom::webgltexture::{TexCompression, TexCompressionValidation};
use crate::script_runtime::CanGc;
#[dom_struct]
pub struct WEBGLCompressedTextureS3TC {
pub(crate) struct WEBGLCompressedTextureS3TC {
reflector_: Reflector,
}