build(zig): add optional wasmtime dependency
And support compiling a shared library
This commit is contained in:
parent
cad2d03101
commit
9d2196cdbd
3 changed files with 177 additions and 22 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue