Stream: git-wasmtime

Topic: wasmtime / issue #7772 Cranelift: add all Cranelift crate...


view this post on Zulip Wasmtime GitHub notifications bot (Jan 11 2024 at 23:06):

Rodrigodd opened issue #7772:

Feature

Add all Cranelift crates (cranelift-codegen, cranelift-frontend, cranelift-module, cranelift-native, cranelift-jit, cranelift-object, etc.) to the cranelift umbrella crate, each one behind a feature preferably.

Benefit

The cranelift crate is an "umbrella for commonly-used Cranelift crates" and "provides a convenient one-line dependency," but it just contains frontend and codegen, which is limited to creating in-memory JIT compilers. That means that if I expect to create a static compiler or generate object files in some form, I need to replace this crate with its underlying ones, defeating its purpose.

It also helps keep all versions in sync and make all these crates a little more discoverable.

Alternatives

view this post on Zulip Wasmtime GitHub notifications bot (May 17 2024 at 01:52):

elliottt closed issue #7772:

Feature

Add all Cranelift crates (cranelift-codegen, cranelift-frontend, cranelift-module, cranelift-native, cranelift-jit, cranelift-object, etc.) to the cranelift umbrella crate, each one behind a feature preferably.

Benefit

The cranelift crate is an "umbrella for commonly-used Cranelift crates" and "provides a convenient one-line dependency," but it just contains frontend and codegen, which is limited to creating in-memory JIT compilers. That means that if I expect to create a static compiler or generate object files in some form, I need to replace this crate with its underlying ones, defeating its purpose.

It also helps keep all versions in sync and make all these crates a little more discoverable.

Alternatives


Last updated: Dec 23 2024 at 12:05 UTC