Stream: git-wasmtime

Topic: wasmtime / PR #1305 Fill out API docs on `wasmtime::Module`


view this post on Zulip Wasmtime GitHub notifications bot (Mar 12 2020 at 20:48):

alexcrichton opened PR #1305 from module-docs to master:

Part of #1272

view this post on Zulip Wasmtime GitHub notifications bot (Mar 12 2020 at 20:48):

alexcrichton requested fitzgen for a review on PR #1305.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 12 2020 at 21:36):

fitzgen submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 12 2020 at 21:36):

fitzgen submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 12 2020 at 21:36):

fitzgen created PR Review Comment:

/// // Now we're using the WebAssembly text extension: `.wat`!
/// let module = Module::from_file(&store, "path/to/foo.wat")?;

view this post on Zulip Wasmtime GitHub notifications bot (Mar 12 2020 at 21:36):

fitzgen created PR Review Comment:

    /// The `.wat` text format is also supported:

view this post on Zulip Wasmtime GitHub notifications bot (Mar 12 2020 at 21:36):

fitzgen created PR Review Comment:

    /// Note that the text format is **not** accepted by this function:

view this post on Zulip Wasmtime GitHub notifications bot (Mar 12 2020 at 21:36):

fitzgen created PR Review Comment:

    /// assert!(module.exports().is_empty());

view this post on Zulip Wasmtime GitHub notifications bot (Mar 12 2020 at 21:36):

fitzgen created PR Review Comment:

    /// Or you can also pass in a string to be parsed as the wasm text

view this post on Zulip Wasmtime GitHub notifications bot (Mar 12 2020 at 21:36):

fitzgen created PR Review Comment:

    /// When the exports are not empty, you can inspect each export:

view this post on Zulip Wasmtime GitHub notifications bot (Mar 12 2020 at 21:36):

fitzgen created PR Review Comment:

/// // It also works with the text format!

view this post on Zulip Wasmtime GitHub notifications bot (Mar 12 2020 at 21:41):

alexcrichton updated PR #1305 from module-docs to master:

Part of #1272

view this post on Zulip Wasmtime GitHub notifications bot (Mar 12 2020 at 21:41):

alexcrichton merged PR #1305.


Last updated: Nov 22 2024 at 16:03 UTC