From 16d6ce0fd959669cc70d0e815c709bc10c0eeb69 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 14 Jul 2023 11:40:01 -0700 Subject: [PATCH] Update wit-component's `bitflags` dependency Move to the 2.x.x track from the 1.x.x track. --- crates/wit-component/Cargo.toml | 2 +- crates/wit-component/src/encoding.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/wit-component/Cargo.toml b/crates/wit-component/Cargo.toml index bff4abe9fd..70602bd84b 100644 --- a/crates/wit-component/Cargo.toml +++ b/crates/wit-component/Cargo.toml @@ -19,7 +19,7 @@ wasm-metadata = { workspace = true } wit-parser = { workspace = true } anyhow = { workspace = true } log = "0.4.17" -bitflags = "1.3.2" +bitflags = "2.3.3" indexmap = { workspace = true } wat = { workspace = true, optional = true } diff --git a/crates/wit-component/src/encoding.rs b/crates/wit-component/src/encoding.rs index 6d54a69d55..cb8eedd94c 100644 --- a/crates/wit-component/src/encoding.rs +++ b/crates/wit-component/src/encoding.rs @@ -109,6 +109,7 @@ fn to_val_type(ty: &WasmType) -> ValType { bitflags::bitflags! { /// Options in the `canon lower` or `canon lift` required for a particular /// function. + #[derive(Copy, Clone, Debug)] pub struct RequiredOptions: u8 { /// A memory must be specified, typically the "main module"'s memory /// export.