Bump Wasmtime to 2.0.0 (#4874)

This commit replaces #4869 and represents the actual version bump that
should have happened had I remembered to bump the in-tree version of
Wasmtime to 1.0.0 prior to the branch-cut date. Alas!
This commit is contained in:
Alex Crichton
2022-09-06 13:49:56 -05:00
committed by GitHub
parent a0e4bb0190
commit 65930640f8
47 changed files with 203 additions and 200 deletions

View File

@@ -323,6 +323,9 @@ fn bump_version(krate: &Crate, crates: &[Crate], patch: bool) {
/// releases. This may end up getting tweaked as we stabilize crates and start
/// doing more minor/patch releases, but for now this should do the trick.
fn bump(version: &str, patch_bump: bool) -> String {
if version == "0.41.0" {
return String::from("2.0.0");
}
let mut iter = version.split('.').map(|s| s.parse::<u32>().unwrap());
let major = iter.next().expect("major version");
let minor = iter.next().expect("minor version");