Docs.rs
  • linera-witty-0.13.1
    • linera-witty 0.13.1
    • 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
      • genawaiter ^0.99.1 normal
      • linera-witty-macros ^0.13.1 normal optional
      • log ^0.4.21 normal optional
      • thiserror ^1.0.65 normal
      • linera-wasmer ^4.4.0-linera.5 normal optional
      • wasmtime ^25.0.0 normal optional
      • assert_matches ^1.5.0 dev
      • insta ^1.36.1 dev
      • test-case ^3.3.1 dev
      • tracing ^0.1.40 dev
      • cfg_aliases ^0.2.1 build
      • linera-wasmer ^4.4.0-linera.5 normal optional
      • linera-wasmer ^4.4.0-linera.5 normal optional
    • Versions
    • 100% of the crate is documented
  • 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.13.1

  • All Items

Crate Items

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

Crates

  • linera_witty

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.
wit_generation
Generation of WIT files.

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 BTreeMap.
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

Settings
Help
    trait
    linera_witty::wit_generation::WitInterface
    Generates WIT snippets for an interface.
    struct
    linera_witty::wit_generation::WitInterfaceWriter
    Helper type to write a WitInterface to a file.
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.