Docs.rs
  • wit-component-0.230.0
    • wit-component 0.230.0
    • Permalink
    • Docs.rs crate page
    • Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • peterhuene
    • github:bytecodealliance:wasmtime-publish
    • Dependencies
      • anyhow ^1.0.58 normal
      • bitflags ^2.3.3 normal
      • indexmap ^2.7.0 normal
      • log ^0.4.17 normal
      • serde ^1.0.166 normal
      • serde_derive ^1.0.166 normal
      • serde_json ^1 normal
      • wasm-encoder ^0.230.0 normal
      • wasm-metadata ^0.230.0 normal
      • wasmparser ^0.230.0 normal
      • wast ^230.0.0 normal optional
      • wat ^1.230.0 normal optional
      • wit-parser ^0.230.0 normal
      • env_logger ^0.11 dev
      • glob ^0.3.0 dev
      • libtest-mimic ^0.8.1 dev
      • pretty_assertions ^1.3.0 dev
      • wasm-metadata ^0.230.0 dev
      • wasmparser ^0.230.0 dev
      • wasmprinter ^0.230.0 dev
      • wat ^1.230.0 dev
      • wasmtime ^29.0.1 dev
    • Versions
    • 100% of the crate is documented
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • Rust
    • About docs.rs
    • Privacy policy
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate wit_component

wit_component0.230.0

  • All Items

Crate Items

  • Modules
  • Structs
  • Enums
  • Traits
  • Functions

Crates

  • wit_component

Crate wit_component

Source
Expand description

The WebAssembly component tooling.

Modules§

metadata
Definition for encoding of custom sections within core wasm modules of component-model related data.

Structs§

ComponentEncoder
An encoder of components based on wit interface definitions.
Linker
Builder type for composing dynamic library modules into a component
OutputToString
Helper structure to help maintain an indentation level when printing source, modeled after the support in wit-bindgen-core. Indentation is set to two spaces.
WitPrinter
A utility for printing WebAssembly interface definitions to a string.

Enums§

DecodedWasm
Result of the decode function.
StringEncoding
Supported string encoding formats.
TypeKind
Represents the different kinds of types that can be encountered while visiting a WIT file.

Traits§

Output
Trait defining visitor methods driven by WitPrinter.

Functions§

decode
Decodes an in-memory WebAssembly binary into a WIT Resolve and associated metadata.
decode_reader
Decode for incremental reading
dummy_moduledummy-module
Generate a dummy implementation core Wasm module for a given WIT document
embed_component_metadata
Embed component metadata in a buffer of bytes that contains a Wasm module
encode
Encodes the given package within resolve to a binary WebAssembly representation.
semver_checksemver-check
Tests whether new is a semver-compatible upgrade from the world prev.
targets
This function checks whether component_to_test correctly conforms to the world specified. It does so by instantiating a generated component that imports a component instance with the component type as described by the “target” world.

Results

Settings
Help

Type "FunctionKey" not found. Showing results for closest type name "function" instead.

No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.