-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
runtime-c-api: not installing cranelift if not necessary #708
runtime-c-api: not installing cranelift if not necessary #708
Conversation
…er-runtime` and `wasmer-runtime-core` dependencies
I'm not sure we want Singlepass as the default backend for the C API. |
@Hywan I've pushed a fix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are getting close. I take the opportunity you're working on this file to rename some features, just to clarify and cleaning things up.
Thanks!
lib/runtime-c-api/Cargo.toml
Outdated
llvm = ["wasmer-runtime/llvm"] | ||
cranelift-backend = ["wasmer-runtime/cranelift", "wasmer-runtime/default-backend-cranelift"] | ||
llvm-backend = ["wasmer-runtime/llvm"] | ||
singlepass-backend = ["wasmer-runtime/default-backend-singlepass", "wasmer-runtime-core/backend-singlepass"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is:
- wasmer-runtime-core/backend-singlepass
+ wasmer-runtime/backend-singlepass
Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checking shortly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Hywan I seems it should stay wasmer-runtime/default-backend-singlepass
https://github.com/wasmerio/wasmer/blob/master/lib/runtime/Cargo.toml#L41
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm talking about the second item of the list. You are using wasmer-runtime-core/…
, I think it is wasmer-runtime/…
.
da28f91
to
dd705d8
Compare
lib/runtime-c-api/Cargo.toml
Outdated
debug = ["wasmer-runtime/debug"] | ||
llvm = ["wasmer-runtime/llvm"] | ||
cranelift-backend = ["wasmer-runtime/cranelift", "wasmer-runtime/default-backend-cranelift"] | ||
llvm-backend = ["wasmer-runtime/llvm"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not adding default-backend-llvm
to the list of features to enable with llvm-backend
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
bors r+ |
708: runtime-c-api: not installing cranelift if not necessary r=Hywan a=YaronWittenstein having `default-features = false` lets us install the `runtime-c-api` with `default-backend-singlepass` without installing also `cranelift` Co-authored-by: Yaron Wittenstein <[email protected]>
having
default-features = false
lets us install theruntime-c-api
withdefault-backend-singlepass
without installing alsocranelift