Skip to content

Commit

Permalink
Include Version in the export name if required (#7656)
Browse files Browse the repository at this point in the history
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
  • Loading branch information
jsturtevant authored Dec 11, 2023
1 parent 4f2d634 commit ef70686
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/component-macro/tests/codegen/multiversion/root.wit
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ package foo:bar;
world foo {
import my:dep/a@0.1.0;
import my:dep/a@0.2.0;
export my:dep/a@0.1.0;
export my:dep/a@0.2.0;
}
2 changes: 1 addition & 1 deletion crates/wit-bindgen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ impl Wasmtime {
format!(
"{}_{}_{snake}",
pkgname.namespace.to_snake_case(),
pkgname.name.to_snake_case()
self.name_package_module(resolve, iface.package.unwrap())
),
),
None => (format!("exports::{snake}::{camel}"), snake.clone()),
Expand Down

0 comments on commit ef70686

Please sign in to comment.