Tests failing with the stable-x86_64-pc-windows-gnu
toolchain.
#29
Labels
bug
Something isn't working
stable-x86_64-pc-windows-gnu
toolchain.
#29
The tests fail with the
stable-x86_64-pc-windows-gnu
toolchain, apparently because of some issue with the linkme crate. It works withstable-x86_64-pc-windows-msvc
, though.The
linkme
crate is used for creating the static slicewasm::WASM_EXPORTS
, which contains an entry for every function that can be called from WASM. This includes functions decorated with the#[wasm_export]
and#[module_export]
attributes, which ultimately result in the use of the#[distributed_slice]
attribute provided bylinkme
. Example:For some reason, when using the
stable-x86_64-pc-windows-gnu
toolchain, not all functions are added to thewasm::WASM_EXPORTS
slice, only the ones declared in theyara-x/src/wasm/mod.rs
file are added. All other functions, specifically those declared in modules are not added at all. The compilation process works well, but tests fail due to the missing entries inwasm::WASM_EXPORTS
.The text was updated successfully, but these errors were encountered: