Skip to content

Commit 6d38d1a

Browse files
authored
Merge pull request #29 from dhil/wasmfx-merge
Merge with upstream
2 parents 08fb654 + 5807a59 commit 6d38d1a

File tree

13 files changed

+173
-132
lines changed

13 files changed

+173
-132
lines changed

Cargo.lock

Lines changed: 146 additions & 105 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ resolver = "2"
1818

1919
[workspace.package]
2020
edition = "2021"
21-
version = "0.33.0"
21+
version = "0.34.0"
2222
license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT"
2323
repository = "https://github.com/bytecodealliance/wasi-rs"
2424

@@ -32,21 +32,21 @@ indexmap = "2.0.0"
3232
prettyplease = "0.2.20"
3333
syn = { version = "2.0", features = ["printing"] }
3434

35-
wasmparser = { git = "https://github.com/wasmfx/wasmfx-tools", tag = "v1.218.0" }
36-
wasm-metadata = { git = "https://github.com/wasmfx/wasmfx-tools", tag = "v1.218.0" }
37-
wasm-encoder = { git = "https://github.com/wasmfx/wasmfx-tools", tag = "v1.218.0" }
38-
wit-parser = { git = "https://github.com/wasmfx/wasmfx-tools", tag = "v1.218.0" }
39-
wit-component = { git = "https://github.com/wasmfx/wasmfx-tools", tag = "v1.218.0" }
35+
wasmparser = { git = "https://github.com/wasmfx/wasmfx-tools", tag = "v1.219.0" }
36+
wasm-metadata = { git = "https://github.com/wasmfx/wasmfx-tools", tag = "v1.219.0" }
37+
wasm-encoder = { git = "https://github.com/wasmfx/wasmfx-tools", tag = "v1.219.0" }
38+
wit-parser = { git = "https://github.com/wasmfx/wasmfx-tools", tag = "v1.219.0" }
39+
wit-component = { git = "https://github.com/wasmfx/wasmfx-tools", tag = "v1.219.0" }
4040

41-
wit-bindgen-core = { path = 'crates/core', version = '0.33.0' }
42-
wit-bindgen-c = { path = 'crates/c', version = '0.33.0' }
43-
wit-bindgen-rust = { path = "crates/rust", version = "0.33.0" }
44-
wit-bindgen-teavm-java = { path = 'crates/teavm-java', version = '0.33.0' }
45-
wit-bindgen-go = { path = 'crates/go', version = '0.33.0' }
46-
wit-bindgen-csharp = { path = 'crates/csharp', version = '0.33.0' }
47-
wit-bindgen-markdown = { path = 'crates/markdown', version = '0.33.0' }
48-
wit-bindgen-moonbit = { path = 'crates/moonbit', version = '0.33.0' }
49-
wit-bindgen = { path = 'crates/guest-rust', version = '0.33.0', default-features = false }
41+
wit-bindgen-core = { path = 'crates/core', version = '0.34.0' }
42+
wit-bindgen-c = { path = 'crates/c', version = '0.34.0' }
43+
wit-bindgen-rust = { path = "crates/rust", version = "0.34.0" }
44+
wit-bindgen-teavm-java = { path = 'crates/teavm-java', version = '0.34.0' }
45+
wit-bindgen-go = { path = 'crates/go', version = '0.34.0' }
46+
wit-bindgen-csharp = { path = 'crates/csharp', version = '0.34.0' }
47+
wit-bindgen-markdown = { path = 'crates/markdown', version = '0.34.0' }
48+
wit-bindgen-moonbit = { path = 'crates/moonbit', version = '0.34.0' }
49+
wit-bindgen = { path = 'crates/guest-rust', version = '0.34.0', default-features = false }
5050

5151
[[bin]]
5252
name = "wit-bindgen"

crates/c/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1778,7 +1778,7 @@ impl InterfaceGenerator<'_> {
17781778
self.src.c_fns("\n");
17791779

17801780
let core_module_name = interface_name.map(|s| self.resolve.name_world_key(s));
1781-
let export_name = func.core_export_name(core_module_name.as_deref());
1781+
let export_name = func.legacy_core_export_name(core_module_name.as_deref());
17821782

17831783
// Print the actual header for this function into the header file, and
17841784
// it's what we'll be calling.

crates/csharp/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ impl InterfaceGenerator<'_> {
12261226

12271227
let interop_name = format!("wasmExport{}", func.name.to_upper_camel_case());
12281228
let core_module_name = interface_name.map(|s| self.resolve.name_world_key(s));
1229-
let export_name = func.core_export_name(core_module_name.as_deref());
1229+
let export_name = func.legacy_core_export_name(core_module_name.as_deref());
12301230
let access = self.gen.access_modifier();
12311231

12321232
uwrite!(

crates/guest-rust/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Used when compiling Rust programs to the component model.
1212
"""
1313

1414
[dependencies]
15-
wit-bindgen-rust-macro = { path = "./macro", optional = true, version = "0.33.0" }
16-
wit-bindgen-rt = { path = "./rt", version = "0.33.0", features = ["bitflags"] }
15+
wit-bindgen-rust-macro = { path = "./macro", optional = true, version = "0.34.0" }
16+
wit-bindgen-rt = { path = "./rt", version = "0.34.0", features = ["bitflags"] }
1717

1818
[features]
1919
default = ["macros", "realloc"]

crates/guest-rust/rt/src/cabi_realloc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
#include <stdint.h>
44

5-
extern void *cabi_realloc_wit_bindgen_0_33_0(void *ptr, size_t old_size, size_t align, size_t new_size);
5+
extern void *cabi_realloc_wit_bindgen_0_34_0(void *ptr, size_t old_size, size_t align, size_t new_size);
66

77
__attribute__((__weak__, __export_name__("cabi_realloc")))
88
void *cabi_realloc(void *ptr, size_t old_size, size_t align, size_t new_size) {
9-
return cabi_realloc_wit_bindgen_0_33_0(ptr, old_size, align, new_size);
9+
return cabi_realloc_wit_bindgen_0_34_0(ptr, old_size, align, new_size);
1010
}
0 Bytes
Binary file not shown.

crates/guest-rust/rt/src/cabi_realloc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This file is generated by ./ci/rebuild-libcabi-realloc.sh
22

33
#[no_mangle]
4-
pub unsafe extern "C" fn cabi_realloc_wit_bindgen_0_33_0(
4+
pub unsafe extern "C" fn cabi_realloc_wit_bindgen_0_34_0(
55
old_ptr: *mut u8,
66
old_len: usize,
77
align: usize,
0 Bytes
Binary file not shown.

crates/moonbit/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ impl InterfaceGenerator<'_> {
828828

829829
let func_sig = self.sig_string(func, true);
830830

831-
let export_name = func.core_export_name(interface_name);
831+
let export_name = func.legacy_core_export_name(interface_name);
832832

833833
let mut toplevel_generator =
834834
self.gen

0 commit comments

Comments
 (0)