alexcrichton opened PR #2117 from move-compilers-out-of-environ
to main
:
This commit extracts the two implementations of
Compiler
into two
separate crates,wasmtime-cranelfit
andwasmtime-lightbeam
. The
wasmtime-jit
crate then depends on these two and instantiates them
appropriately. The goal here is to start reducing the weight of the
wasmtime-environ
crate, which currently serves as a common set of
types between allwasmtime-*
crates. Long-term I'd like to remove the
dependency on Cranelift fromwasmtime-environ
, but that's going to
take a lot more work.In the meantime I figure it's a good way to get started by separating
out the lightbeam/cranelift function compilers from the
wasmtime-environ
crate. We can continue to iterate on moving things
out in the future, too.
yurydelendik created PR Review Comment:
It is possible to move some of this imports into "crates/environ/src/data_structures.rs"?
yurydelendik submitted PR Review.
alexcrichton updated PR #2117 from move-compilers-out-of-environ
to main
:
This commit extracts the two implementations of
Compiler
into two
separate crates,wasmtime-cranelfit
andwasmtime-lightbeam
. The
wasmtime-jit
crate then depends on these two and instantiates them
appropriately. The goal here is to start reducing the weight of the
wasmtime-environ
crate, which currently serves as a common set of
types between allwasmtime-*
crates. Long-term I'd like to remove the
dependency on Cranelift fromwasmtime-environ
, but that's going to
take a lot more work.In the meantime I figure it's a good way to get started by separating
out the lightbeam/cranelift function compilers from the
wasmtime-environ
crate. We can continue to iterate on moving things
out in the future, too.
alexcrichton submitted PR Review.
alexcrichton created PR Review Comment:
:+1:
alexcrichton updated PR #2117 from move-compilers-out-of-environ
to main
:
This commit extracts the two implementations of
Compiler
into two
separate crates,wasmtime-cranelfit
andwasmtime-lightbeam
. The
wasmtime-jit
crate then depends on these two and instantiates them
appropriately. The goal here is to start reducing the weight of the
wasmtime-environ
crate, which currently serves as a common set of
types between allwasmtime-*
crates. Long-term I'd like to remove the
dependency on Cranelift fromwasmtime-environ
, but that's going to
take a lot more work.In the meantime I figure it's a good way to get started by separating
out the lightbeam/cranelift function compilers from the
wasmtime-environ
crate. We can continue to iterate on moving things
out in the future, too.
alexcrichton updated PR #2117 from move-compilers-out-of-environ
to main
:
This commit extracts the two implementations of
Compiler
into two
separate crates,wasmtime-cranelfit
andwasmtime-lightbeam
. The
wasmtime-jit
crate then depends on these two and instantiates them
appropriately. The goal here is to start reducing the weight of the
wasmtime-environ
crate, which currently serves as a common set of
types between allwasmtime-*
crates. Long-term I'd like to remove the
dependency on Cranelift fromwasmtime-environ
, but that's going to
take a lot more work.In the meantime I figure it's a good way to get started by separating
out the lightbeam/cranelift function compilers from the
wasmtime-environ
crate. We can continue to iterate on moving things
out in the future, too.
yurydelendik created PR Review Comment:
Nice. Sorry, I also meant other no
use cranelift_codegen::XXX
above -- they can be re-exported in wasmtime_environ too thus removing direct dependency on cranelift crates.
yurydelendik submitted PR Review.
yurydelendik edited PR Review Comment.
alexcrichton submitted PR Review.
alexcrichton created PR Review Comment:
I was thinking of doing that yeah but I realized that lightbeam itself depends on
cranelift-codegen
, so I figured it was probably best to just do the same thing.
alexcrichton updated PR #2117 from move-compilers-out-of-environ
to main
:
This commit extracts the two implementations of
Compiler
into two
separate crates,wasmtime-cranelfit
andwasmtime-lightbeam
. The
wasmtime-jit
crate then depends on these two and instantiates them
appropriately. The goal here is to start reducing the weight of the
wasmtime-environ
crate, which currently serves as a common set of
types between allwasmtime-*
crates. Long-term I'd like to remove the
dependency on Cranelift fromwasmtime-environ
, but that's going to
take a lot more work.In the meantime I figure it's a good way to get started by separating
out the lightbeam/cranelift function compilers from the
wasmtime-environ
crate. We can continue to iterate on moving things
out in the future, too.
alexcrichton updated PR #2117 from move-compilers-out-of-environ
to main
:
This commit extracts the two implementations of
Compiler
into two
separate crates,wasmtime-cranelfit
andwasmtime-lightbeam
. The
wasmtime-jit
crate then depends on these two and instantiates them
appropriately. The goal here is to start reducing the weight of the
wasmtime-environ
crate, which currently serves as a common set of
types between allwasmtime-*
crates. Long-term I'd like to remove the
dependency on Cranelift fromwasmtime-environ
, but that's going to
take a lot more work.In the meantime I figure it's a good way to get started by separating
out the lightbeam/cranelift function compilers from the
wasmtime-environ
crate. We can continue to iterate on moving things
out in the future, too.
yurydelendik submitted PR Review.
tschneidereit merged PR #2117.
Last updated: Dec 23 2024 at 12:05 UTC