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.
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.
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.
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:
- Are you looking to embed the Rust
wasmtime
crate in your own application?- Do you want to execute program with the
wasmtime
CLI? If so what kind of programs?- Do you want to embed Wasmtime in a non-Rust application? If so which language? How do you want to distribute the final artifacts?
There's a different path for each of these so I think it would be good to clarify which one you're looking for.
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.
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
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.
eminence commented on issue #4871:
Another possibility is
cargo install wasmtime-cli
which is also not currently documented AFAICT
Last updated: Nov 22 2024 at 16:03 UTC