Stream: git-wasmtime

Topic: wasmtime / issue #4871 Docs do not say how to install fro...


view this post on Zulip Wasmtime GitHub notifications bot (Sep 06 2022 at 11:18):

sgbeal opened issue #4871:

Feature

i'm trying to install a copy of wasmtime built from the source tree.

These docs cover the build process well enough, but the only mentions i can find of _installing_ it refer to the ultra-evil pipe-remote-script-to-shell approach or to prebuilt binaries.

What we (the royal we) would like to see is a step added to the build docs which explain how to install it after building it.

Perhaps the installation method is obvious to users of the rust tools, but it's certainly not to us C folks ;/.

Benefit

If we can't install a build, it's not terribly much use for us.

Implementation

No clue.

Alternatives

N/A. Docs are the only solution.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 06 2022 at 12:29):

bjorn3 commented on issue #4871:

You can follow the build instructions at https://docs.wasmtime.dev/contributing-building.html#building-the-wasmtime-c-api amd after that you will find the library in target/release. There is nothing to install. You can copy the library anywhere as it only depends on system libraries and doesn't hard code an install location.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 06 2022 at 12:36):

sgbeal commented on issue #4871:

_That_ detail belongs in the docs :). It may well be something users of cargo take for granted, but not all of us are rusters.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 06 2022 at 16:11):

alexcrichton commented on issue #4871:

Do you have an intended embedding use case in mind? Installation means different things to different people and understanding what you're looking for can assist in guiding what needs to be written in documentation. For example:

There's a different path for each of these so I think it would be good to clarify which one you're looking for.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 06 2022 at 16:56):

sgbeal commented on issue #4871:

Fair question: i'm simply trying to run wasm files from the CLI. i have no intention of embedding and don't use rust. @bjorn3 provided the answer, but i'd have never figured that out without his answer and it doesn't appear to be anywhere in the docs.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 06 2022 at 17:03):

alexcrichton commented on issue #4871:

Ah ok, did you try the Installation heading in the README? That should have installed the wasmtime executable for you to run on the CLI

view this post on Zulip Wasmtime GitHub notifications bot (Sep 06 2022 at 17:07):

sgbeal commented on issue #4871:

Piping remote scripts through a shell is the single most horrid installation method there is. i'd rather spend an hour trying to figure out the build tree than pipe a random internet script through my shell.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 20 2022 at 23:15):

eminence commented on issue #4871:

Another possibility is cargo install wasmtime-cli which is also not currently documented AFAICT


Last updated: Dec 23 2024 at 12:05 UTC