Docs.rs
  • linera-witty-0.10.5
    • linera-witty 0.10.5
    • Docs.rs crate page
    • Apache-2.0
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • afck
    • jvff
    • ma2bd
    • Dependencies
      • anyhow ^1.0.80 normal
      • either ^1.10.0 normal
      • frunk ^0.4.2 normal
      • linera-witty-macros ^0.10.5 normal optional
      • thiserror ^1.0.57 normal
      • wasmer =3.1.1 normal optional
      • wasmer-vm =3.1.1 normal optional
      • wasmtime ^1.0 normal optional
      • assert_matches ^1.5.0 dev
      • test-case ^3.3.1 dev
      • tracing ^0.1.40 dev
      • cfg_aliases ^0.2.0 build
    • Versions
    • 100% of the crate is documented
  • This release has been yanked, go to latest version
  • 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 linera_witty

linera_witty0.10.5

  • All Items
  • Modules
  • Macros
  • Structs
  • Enums
  • Traits
  • Attribute Macros
  • Derive Macros

Crates

  • linera_witty
?
Settings

Crate linera_witty

source ·
Expand description

Linera Witty

This crate allows generating WIT files and host side code to interface with WebAssembly guests that adhere to the WIT interface format. The source of truth for the generated code and WIT files is the Rust source code.

Modules§

  • hlist
    Module that holds HList data structures, implementations, and typeclasses.

Macros§

  • HList
    Returns a type signature for an HList of the provided types
  • hlist
    Returns an HList based on the values passed in.
  • hlist_pat
    Macro for pattern-matching on HLists.

Structs§

  • GuestPointer
    An address for a location in a guest WebAssembly module’s memory.
  • HCons
    Represents the most basic non-empty HList. Its value is held in head while its tail is another HList.
  • HNil
    Represents the right-most end of a heterogeneous list
  • Memory
    A handle to interface with a guest Wasm module instance’s memory.

Enums§

  • RuntimeError
    Errors that can occur when using a Wasm runtime.

Traits§

  • ExportFunction
    A type that accepts registering a host function as an export for a guest Wasm instance.
  • ExportTo
    A type that can register some functions as exports for the target Instance.
  • ExportedFunctionInterface
    Representation of an exported host function’s interface.
  • HList
    Typeclass for HList-y behaviour
  • ImportedFunctionInterface
    Representation of an imported function’s interface.
  • Instance
    An active guest Wasm module.
  • InstanceWithFunction
    How a runtime supports a function signature.
  • InstanceWithMemory
    Trait alias for a Wasm module instance with the WIT Canonical ABI functions.
  • JoinFlatLayouts
    Allows converting between the current flat layout and the joined Target flat layout, which may be longer or have some elements wider than the current elements.
  • Layout
    Representation of the memory layout of complex types as a sequence of fundamental WIT types.
  • Merge
    Merging of two heterogeneous lists, resulting in a new heterogenous list where every element is of type Either<Left, Right>, where Left is an element from the current list and Right is an element from the Other list.
  • RegisterWitTypes
    Trait to register a compile-time list of WitTypes into a HashMap.
  • Runtime
    A Wasm runtime.
  • RuntimeMemory
    Interface for accessing a runtime specific memory.
  • Split
    Compile time splitting of heterogeneous lists.
  • WitLoad
    A type that can be loaded from a guest Wasm module.
  • WitStore
    A type that can be stored in a guest Wasm module.
  • WitType
    A type that is representable by fundamental WIT types.

Attribute Macros§

  • wit_import
    Generates a generic type from a trait.

Derive Macros§

  • WitLoad
    Derives WitLoad for the Rust type.
  • WitStore
    Derives WitStore for the Rust type.
  • WitType
    Derives WitType for a Rust type.

Results

trait
linera_witty::ExportFunction
A type that accepts registering a host function as an …
trait method
linera_witty::ExportFunction::export
Registers a host function executed by the handler with the …
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.