build(zig): add optional wasmtime dependency

And support compiling a shared library
This commit is contained in:
ObserverOfTime 2024-10-04 19:11:30 +03:00 committed by Amaan Qureshi
parent cad2d03101
commit 9d2196cdbd
3 changed files with 177 additions and 22 deletions

View file

@ -291,8 +291,8 @@ fn update_zig(next_version: &Version) -> Result<()> {
let zig = zig
.lines()
.map(|line| {
if line.starts_with(" .version") {
format!(" .version = \"{next_version}\",")
if line.starts_with(" .version") {
format!(" .version = \"{next_version}\",")
} else {
line.to_string()
}