Skip to content

Commit 9cc5cb3

Browse files
Bump cargo_metadata from 0.19.2 to 0.20.0 (#56)
* Bump cargo_metadata from 0.19.2 to 0.20.0 Bumps [cargo_metadata](https://github.com/oli-obk/cargo_metadata) from 0.19.2 to 0.20.0. - [Release notes](https://github.com/oli-obk/cargo_metadata/releases) - [Changelog](https://github.com/oli-obk/cargo_metadata/blob/main/CHANGELOG.md) - [Commits](oli-obk/cargo_metadata@0.19.2...0.20.0) --- updated-dependencies: - dependency-name: cargo_metadata dependency-version: 0.20.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix wasmtime aot Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Simon Davies <simongdavies@users.noreply.github.com>
1 parent da5d4fc commit 9cc5cb3

File tree

3 files changed

+73
-6
lines changed

3 files changed

+73
-6
lines changed

Cargo.lock

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

src/hyperlight_wasm_aot/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ Application to precompile WebAssembly binaries to for hyperlight-wasm.
1414
[dependencies]
1515
wasmtime = { version = "34.0.1", default-features = false, features = ["cranelift", "runtime", "component-model" ] }
1616
clap = "4.5"
17-
cargo_metadata = "0.19"
17+
cargo_metadata = "0.20"
18+
cargo-util-schemas = "=0.2.0"

src/hyperlight_wasm_aot/src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ limitations under the License.
1717
use std::path::Path;
1818

1919
use cargo_metadata::{MetadataCommand, Package};
20+
use cargo_util_schemas::manifest::PackageName;
2021
use clap::{Arg, Command};
2122
use wasmtime::{Config, Engine, Module, Precompiled};
2223
fn main() {
@@ -85,8 +86,9 @@ fn main() {
8586
Some("check-wasmtime-version") => {
8687
// get the wasmtime version used by hyperlight-wasm-aot
8788
let metadata = MetadataCommand::new().exec().unwrap();
89+
let package_name = PackageName::new("wasmtime".to_string()).unwrap();
8890
let wasmtime_package: Option<&Package> =
89-
metadata.packages.iter().find(|p| p.name == "wasmtime");
91+
metadata.packages.iter().find(|p| p.name == package_name);
9092
let version_number = match wasmtime_package {
9193
Some(pkg) => pkg.version.clone(),
9294
None => panic!("wasmtime dependency not found"),

0 commit comments

Comments
 (0)