Skip to content

Commit

Permalink
Update wit-parser to 0.212.0 (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffcharles authored Jul 2, 2024
1 parent 77249cc commit 5173111
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 11 deletions.
21 changes: 17 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ swc_core = { version = "0.96.0", features = [
"ecma_ast",
"ecma_parser",
] }
wit-parser = "0.209.1"
wit-parser = "0.212.0"
convert_case = "0.6.0"
wasm-opt = "0.116.1"
tempfile = { workspace = true }
Expand Down
7 changes: 3 additions & 4 deletions crates/cli/src/wit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ use std::path::Path;

use anyhow::{bail, Result};

use wit_parser::{Resolve, UnresolvedPackage, WorldItem};
use wit_parser::{Resolve, WorldItem};

pub fn parse_exports(wit: impl AsRef<Path>, world: &str) -> Result<Vec<String>> {
let mut resolve = Resolve::default();
let package = UnresolvedPackage::parse_path(wit.as_ref())?;
resolve.push(package)?;
resolve.push_path(wit.as_ref())?;
let (_, package_id) = resolve.package_names.first().unwrap();
let world_id = resolve.select_world(*package_id, Some(world))?;
let world_id = resolve.select_world(&[*package_id], Some(world))?;
let world = resolve.worlds.get(world_id).unwrap();

if !world.imports.is_empty() {
Expand Down
10 changes: 8 additions & 2 deletions supply-chain/imports.lock
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,12 @@ when = "2024-05-29"
user-id = 73222
user-login = "wasmtime-publish"

[[publisher.wasmparser]]
version = "0.212.0"
when = "2024-06-27"
user-id = 73222
user-login = "wasmtime-publish"

[[publisher.wasmprinter]]
version = "0.201.0"
when = "2024-02-27"
Expand Down Expand Up @@ -1028,8 +1034,8 @@ user-id = 73222
user-login = "wasmtime-publish"

[[publisher.wit-parser]]
version = "0.209.1"
when = "2024-05-29"
version = "0.212.0"
when = "2024-06-27"
user-id = 73222
user-login = "wasmtime-publish"

Expand Down

0 comments on commit 5173111

Please sign in to comment.