Remove the lightbeam backend (#3390)
This commit removes the Lightbeam backend from Wasmtime as per [RFC 14]. This backend hasn't received maintenance in quite some time, and as [RFC 14] indicates this doesn't meet the threshold for keeping the code in-tree, so this commit removes it. A fast "baseline" compiler may still be added in the future. The addition of such a backend should be in line with [RFC 14], though, with the principles we now have for stable releases of Wasmtime. I'll close out Lightbeam-related issues once this is merged. [RFC 14]: https://github.com/bytecodealliance/rfcs/pull/14
This commit is contained in:
@@ -34,7 +34,6 @@ cap-std = { version = "0.19.1", optional = true }
|
||||
|
||||
[features]
|
||||
default = ['jitdump', 'wat', 'wasi', 'cache']
|
||||
lightbeam = ["wasmtime/lightbeam"]
|
||||
jitdump = ["wasmtime/jitdump"]
|
||||
cache = ["wasmtime/cache"]
|
||||
wasi = ['wasi-common', 'wasi-cap-std-sync', 'wasmtime-wasi', 'cap-std']
|
||||
|
||||
@@ -26,19 +26,13 @@ typedef uint8_t wasmtime_strategy_t;
|
||||
* The default value is #WASMTIME_STRATEGY_AUTO.
|
||||
*/
|
||||
enum wasmtime_strategy_enum { // Strategy
|
||||
/// Wasmtime will automatically determine whether to use Cranelift or
|
||||
/// Lightbeam, and currently it will always pick Cranelift. This default may
|
||||
/// change over time though.
|
||||
/// Automatically picks the compilation backend, currently always defaulting
|
||||
/// to Cranelift.
|
||||
WASMTIME_STRATEGY_AUTO,
|
||||
|
||||
/// Indicates that Cranelift will unconditionally use Cranelift to compile
|
||||
/// Indicates that Wasmtime will unconditionally use Cranelift to compile
|
||||
/// WebAssembly code.
|
||||
WASMTIME_STRATEGY_CRANELIFT,
|
||||
|
||||
/// Indicates that Cranelift will unconditionally use Lightbeam to compile
|
||||
/// WebAssembly code. Note that Lightbeam isn't always enabled at compile
|
||||
/// time, and if that's the case an error will be returned.
|
||||
WASMTIME_STRATEGY_LIGHTBEAM,
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -20,7 +20,6 @@ wasmtime_c_api_macros::declare_own!(wasm_config_t);
|
||||
pub enum wasmtime_strategy_t {
|
||||
WASMTIME_STRATEGY_AUTO,
|
||||
WASMTIME_STRATEGY_CRANELIFT,
|
||||
WASMTIME_STRATEGY_LIGHTBEAM,
|
||||
}
|
||||
|
||||
#[repr(u8)]
|
||||
@@ -114,7 +113,6 @@ pub extern "C" fn wasmtime_config_strategy_set(
|
||||
let result = c.config.strategy(match strategy {
|
||||
WASMTIME_STRATEGY_AUTO => Strategy::Auto,
|
||||
WASMTIME_STRATEGY_CRANELIFT => Strategy::Cranelift,
|
||||
WASMTIME_STRATEGY_LIGHTBEAM => Strategy::Lightbeam,
|
||||
});
|
||||
handle_result(result, |_cfg| {})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user