Skip to content

Commit

Permalink
Bump crate versions (#1052)
Browse files Browse the repository at this point in the history
* Bump crate versions

* Push the entire `deps` dir into a `Resolve`

This assists with world-binding for WIT dependencies
  • Loading branch information
alexcrichton committed May 26, 2023
1 parent a636906 commit eb0266b
Show file tree
Hide file tree
Showing 16 changed files with 36 additions and 34 deletions.
28 changes: 14 additions & 14 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wasm-tools"
version = "1.0.34"
version = "1.0.35"
authors = ["The Wasmtime Project Developers"]
edition.workspace = true
description = "CLI tools for interoperating with WebAssembly files"
Expand Down Expand Up @@ -43,19 +43,19 @@ url = "2.0.0"
pretty_assertions = "1.3.0"
semver = "1.0.0"

wasm-encoder = { version = "0.28.0", path = "crates/wasm-encoder"}
wasm-compose = { version = "0.2.16", path = "crates/wasm-compose"}
wasm-metadata = { version = "0.7.0", path = "crates/wasm-metadata" }
wasm-mutate = { version = "0.2.26", path = "crates/wasm-mutate" }
wasm-shrink = { version = "0.1.27", path = "crates/wasm-shrink" }
wasm-smith = { version = "0.12.9", path = "crates/wasm-smith" }
wasmparser = { version = "0.106.0", path = "crates/wasmparser" }
wasmprinter = { version = "0.2.58", path = "crates/wasmprinter" }
wast = { version = "59.0.0", path = "crates/wast" }
wat = { version = "1.0.65", path = "crates/wat" }
wit-component = { version = "0.10.0", path = "crates/wit-component" }
wit-parser = { version = "0.7.1", path = "crates/wit-parser" }
wit-smith = { version = "0.1.4", path = "crates/wit-smith" }
wasm-encoder = { version = "0.29.0", path = "crates/wasm-encoder"}
wasm-compose = { version = "0.2.17", path = "crates/wasm-compose"}
wasm-metadata = { version = "0.8.0", path = "crates/wasm-metadata" }
wasm-mutate = { version = "0.2.27", path = "crates/wasm-mutate" }
wasm-shrink = { version = "0.1.28", path = "crates/wasm-shrink" }
wasm-smith = { version = "0.12.10", path = "crates/wasm-smith" }
wasmparser = { version = "0.107.0", path = "crates/wasmparser" }
wasmprinter = { version = "0.2.59", path = "crates/wasmprinter" }
wast = { version = "60.0.0", path = "crates/wast" }
wat = { version = "1.0.66", path = "crates/wat" }
wit-component = { version = "0.11.0", path = "crates/wit-component" }
wit-parser = { version = "0.8.0", path = "crates/wit-parser" }
wit-smith = { version = "0.1.5", path = "crates/wit-smith" }

[dependencies]
anyhow = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/wasm-compose/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wasm-compose"
version = "0.2.16"
version = "0.2.17"
edition.workspace = true
authors = ["Peter Huene <peter@huene.dev>"]
license = "Apache-2.0 WITH LLVM-exception"
Expand Down
2 changes: 1 addition & 1 deletion crates/wasm-encoder/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wasm-encoder"
version = "0.28.0"
version = "0.29.0"
authors = ["Nick Fitzgerald <fitzgen@gmail.com>"]
edition.workspace = true
license = "Apache-2.0 WITH LLVM-exception"
Expand Down
2 changes: 1 addition & 1 deletion crates/wasm-metadata/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wasm-metadata"
version = "0.7.0"
version = "0.8.0"
edition.workspace = true
license = "Apache-2.0 WITH LLVM-exception"
repository = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-metadata"
Expand Down
2 changes: 1 addition & 1 deletion crates/wasm-mutate/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wasm-mutate"
version = "0.2.26"
version = "0.2.27"
edition.workspace = true
license = "Apache-2.0 WITH LLVM-exception"
repository = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-mutate"
Expand Down
2 changes: 1 addition & 1 deletion crates/wasm-shrink/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = "Apache-2.0 WITH LLVM-exception"
readme = "./README.md"
repository = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-shrink"
name = "wasm-shrink"
version = "0.1.27"
version = "0.1.28"

[dependencies]
anyhow = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/wasm-smith/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = "Apache-2.0 WITH LLVM-exception"
name = "wasm-smith"
readme = "./README.md"
repository = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-smith"
version = "0.12.9"
version = "0.12.10"
exclude = ["/benches/corpus"]

[[bench]]
Expand Down
2 changes: 1 addition & 1 deletion crates/wasmparser/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wasmparser"
version = "0.106.0"
version = "0.107.0"
authors = ["Yury Delendik <ydelendik@mozilla.com>"]
license = "Apache-2.0 WITH LLVM-exception"
repository = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasmparser"
Expand Down
2 changes: 1 addition & 1 deletion crates/wasmprinter/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wasmprinter"
version = "0.2.58"
version = "0.2.59"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
edition.workspace = true
license = "Apache-2.0 WITH LLVM-exception"
Expand Down
2 changes: 1 addition & 1 deletion crates/wast/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wast"
version = "59.0.0"
version = "60.0.0"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
edition.workspace = true
license = "Apache-2.0 WITH LLVM-exception"
Expand Down
2 changes: 1 addition & 1 deletion crates/wat/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wat"
version = "1.0.65"
version = "1.0.66"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
edition.workspace = true
license = "Apache-2.0 WITH LLVM-exception"
Expand Down
2 changes: 1 addition & 1 deletion crates/wit-component/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "wit-component"
authors = ["Peter Huene <peter@huene.dev>"]
version = "0.10.0"
version = "0.11.0"
edition.workspace = true
license = "Apache-2.0 WITH LLVM-exception"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion crates/wit-parser/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "wit-parser"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
version = "0.7.1"
version = "0.8.0"
edition.workspace = true
license = "Apache-2.0 WITH LLVM-exception"
readme = "README.md"
Expand Down
12 changes: 7 additions & 5 deletions crates/wit-parser/src/resolve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::{
use anyhow::{anyhow, bail, Context, Result};
use id_arena::{Arena, Id};
use indexmap::{IndexMap, IndexSet};
use std::collections::{HashMap, HashSet};
use std::collections::{BTreeMap, HashMap, HashSet};
use std::mem;
use std::path::{Path, PathBuf};

Expand Down Expand Up @@ -83,7 +83,9 @@ impl Resolve {
// this `Resolve`.
let mut order = IndexSet::new();
let mut visiting = HashSet::new();
visit(&pkg, &deps, &mut order, &mut visiting)?;
for pkg in deps.values().chain([&pkg]) {
visit(&pkg, &deps, &mut order, &mut visiting)?;
}

// Using the topological ordering insert each package incrementally.
// Additionally note that the last item visited here is the root
Expand All @@ -100,8 +102,8 @@ impl Resolve {

return Ok((last.unwrap(), files));

fn parse_deps_dir(path: &Path) -> Result<HashMap<PackageName, UnresolvedPackage>> {
let mut ret = HashMap::new();
fn parse_deps_dir(path: &Path) -> Result<BTreeMap<PackageName, UnresolvedPackage>> {
let mut ret = BTreeMap::new();
// If there's no `deps` dir, then there's no deps, so return the
// empty set.
if !path.exists() {
Expand All @@ -122,7 +124,7 @@ impl Resolve {

fn visit<'a>(
pkg: &'a UnresolvedPackage,
deps: &'a HashMap<PackageName, UnresolvedPackage>,
deps: &'a BTreeMap<PackageName, UnresolvedPackage>,
order: &mut IndexSet<PackageName>,
visiting: &mut HashSet<&'a PackageName>,
) -> Result<()> {
Expand Down
4 changes: 2 additions & 2 deletions crates/wit-parser/tests/ui/parse-fail/pkg-cycle2.wit.result
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package depends on itself
--> tests/ui/parse-fail/pkg-cycle2/deps/a2/root.wit:3:7
--> tests/ui/parse-fail/pkg-cycle2/deps/a1/root.wit:3:7
|
3 | use foo:a1/foo.{}
3 | use foo:a2/foo.{}
| ^-----
2 changes: 1 addition & 1 deletion crates/wit-smith/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition.workspace = true
license = "Apache-2.0 WITH LLVM-exception"
name = "wit-smith"
repository = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wit-smith"
version = "0.1.4"
version = "0.1.5"

[dependencies]
arbitrary = { workspace = true, features = ["derive"] }
Expand Down

0 comments on commit eb0266b

Please sign in to comment.