Skip to content

Commit

Permalink
disable author generation
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshuawuyts committed Feb 18, 2025
1 parent 8a5a526 commit 74fd578
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
10 changes: 6 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1032,10 +1032,12 @@ fn add_component_metadata(package: &Package, wasm: &[u8]) -> Result<Vec<u8>> {
.to_string(),
)],
sdk: vec![],
author: match package.authors.len() {
0 => None,
_ => Some(wasm_metadata::Author::new(package.authors.join(","))),
},
author: None,
// TODO: uncomment this line after `wasm-metadata` 0.256.0 has been released
// match package.authors.len() {
// 0 => None,
// _ => Some(wasm_metadata::Author::new(package.authors.join(","))),
// },
description: package
.description
.as_ref()
Expand Down
17 changes: 9 additions & 8 deletions tests/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1003,14 +1003,15 @@ fn it_adds_metadata_from_cargo_toml() -> Result<()> {
&metadata.name.as_ref().expect("missing name").to_string(),
name
);
assert_eq!(
&metadata
.author
.as_ref()
.expect("missing authors")
.to_string(),
authors
);
// TODO: uncomment this test case after `wasm-metadata` 0.256.0 has been released
// assert_eq!(
// &metadata
// .author
// .as_ref()
// .expect("missing authors")
// .to_string(),
// authors
// );
assert_eq!(
&metadata
.description
Expand Down

0 comments on commit 74fd578

Please sign in to comment.