Stream: general

Topic: wasmtime as git dep


view this post on Zulip appcypher (Apr 11 2024 at 22:45):

How do I use wasmtime as a git dependency? This is my config rn but wasmtime does not seem to be in the worspace toml:

wasmtime = { git = "https://github.com/bytecodealliance/wasmtime", rev = "e9ca2ff79", features = [
    "component-model",
] }

view this post on Zulip Alex Crichton (Apr 11 2024 at 22:49):

that should work yeah, but is it not? If you have multiple crates to depend on, such as wasmtime-wasi as well, it'd need to list the same git and rev too

view this post on Zulip Alex Crichton (Apr 11 2024 at 22:49):

(and all other wasmtime deps would need to mention that)

view this post on Zulip appcypher (Apr 11 2024 at 22:56):

This is the error I'm getting.
Screenshot-2024-04-11-at-23.54.51.png
Screenshot-2024-04-11-at-23.55.19.png

view this post on Zulip Alex Crichton (Apr 11 2024 at 22:59):

that commit you're referencing appears to be a gh-pages deployment?

view this post on Zulip Alex Crichton (Apr 11 2024 at 22:59):

how'd you get that rev?

view this post on Zulip appcypher (Apr 11 2024 at 23:00):

Oh. I actually have a clone of wasmtime on my machine so I just chose the latest commit I could see

view this post on Zulip appcypher (Apr 11 2024 at 23:00):

Could that be the problem?

view this post on Zulip Dan Gohman (Apr 11 2024 at 23:05):

Do you have a

[dependencies]
wasmtime = { workspace = true }

view this post on Zulip appcypher (Apr 11 2024 at 23:05):

@Alex Crichton I had the --all flag set on my git log command. I have switched to a commit on main wc fixed it.
Thanks for the help.


Last updated: Dec 23 2024 at 12:05 UTC