pub enum PackageSurface {
Public,
WithTestModules,
}Expand description
What a compiled package’s Wasm exports.
Variants§
Public
The entry module’s exports: what programs and other packages link against.
WithTestModules
Also every function, global and class static that a non-entry module
exports, for the package’s own tests under submilli build test. Never
publish such a build: Wasm compiled elsewhere could import an internal
helper and skip the checks the public functions run. A public build
still exports every class’s constructor and methods, internal classes’
included, so keep secrets and checks out of internal classes. Internal
functions escape in this build, so their Wasm signatures can be wider
than the public build’s.
Trait Implementations§
Source§impl Clone for PackageSurface
impl Clone for PackageSurface
impl Copy for PackageSurface
Source§impl Debug for PackageSurface
impl Debug for PackageSurface
impl Eq for PackageSurface
Source§impl PartialEq for PackageSurface
impl PartialEq for PackageSurface
impl StructuralPartialEq for PackageSurface
Auto Trait Implementations§
impl Freeze for PackageSurface
impl RefUnwindSafe for PackageSurface
impl Send for PackageSurface
impl Sync for PackageSurface
impl Unpin for PackageSurface
impl UnsafeUnpin for PackageSurface
impl UnwindSafe for PackageSurface
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.