diff --git a/Cargo.lock b/Cargo.lock index 1b7bf461..a83cc52e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1130,9 +1130,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.87" +version = "1.0.91" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3e4daa0dcf6feba26f985457cdf104d4b4256fc5a09547140f3631bb076b19a" +checksum = "307e3004becf10f5a6e0d59d20f3cd28231b0e0827a96cd3e0ce6d14bc1e4bb3" dependencies = [ "unicode-ident", ] @@ -1410,9 +1410,9 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" [[package]] name = "syn" -version = "2.0.79" +version = "2.0.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89132cd0bf050864e1d38dc3bbc07a0eb8e7530af26344d3d2bbbef83499f590" +checksum = "44d46482f1c1c87acd84dea20c1bf5ebff4c757009ed6bf19cfd36fb10e92c4e" dependencies = [ "proc-macro2", "quote", @@ -2413,7 +2413,6 @@ dependencies = [ "heck 0.5.0", "pulldown-cmark", "wit-bindgen-core", - "wit-component", ] [[package]] @@ -2424,9 +2423,7 @@ dependencies = [ "clap", "heck 0.5.0", "test-helpers", - "wasm-metadata", "wit-bindgen-core", - "wit-component", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index b8cbf23b..acd1d3fb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,7 +30,7 @@ pulldown-cmark = { version = "0.9", default-features = false } clap = { version = "4.3.19", features = ["derive"] } indexmap = "2.0.0" prettyplease = "0.2.20" -syn = { version = "2.0", features = ["printing"] } +syn = { version = "2.0.89", features = ["printing"] } wasmparser = "0.220.0" wasm-encoder = "0.220.0" diff --git a/crates/csharp/Cargo.toml b/crates/csharp/Cargo.toml index e2d1c16d..04bf0215 100644 --- a/crates/csharp/Cargo.toml +++ b/crates/csharp/Cargo.toml @@ -16,7 +16,6 @@ doctest = false test = false [dependencies] -wasm-encoder = { workspace = true } wit-bindgen-core = { workspace = true } wit-component = { workspace = true } wit-parser = { workspace = true } diff --git a/crates/csharp/src/lib.rs b/crates/csharp/src/lib.rs index 744239a9..2081a433 100644 --- a/crates/csharp/src/lib.rs +++ b/crates/csharp/src/lib.rs @@ -124,6 +124,7 @@ pub struct CSharp { opts: Opts, name: String, usings: HashSet, + #[allow(unused)] interop_usings: HashSet, return_area_size: usize, return_area_align: usize, @@ -198,6 +199,7 @@ impl CSharp { } } + #[allow(unused)] fn require_interop_using(&mut self, using_ns: &str) { if !self.interop_usings.contains(using_ns) { let using_ns_string = using_ns.to_string(); @@ -2691,7 +2693,7 @@ impl Bindgen for FunctionBindgen<'_, '_> { )); } - Instruction::ListLower { element, realloc } => { + Instruction::ListLower { element, .. } => { let Block { body, results: block_results, diff --git a/crates/markdown/Cargo.toml b/crates/markdown/Cargo.toml index 057eb8fd..99cec78f 100644 --- a/crates/markdown/Cargo.toml +++ b/crates/markdown/Cargo.toml @@ -20,4 +20,3 @@ heck = { workspace = true } pulldown-cmark = { workspace = true } clap = { workspace = true, optional = true } wit-bindgen-core = { workspace = true } -wit-component = { workspace = true } diff --git a/crates/moonbit/Cargo.toml b/crates/moonbit/Cargo.toml index 119761cf..cdd81870 100644 --- a/crates/moonbit/Cargo.toml +++ b/crates/moonbit/Cargo.toml @@ -14,8 +14,6 @@ through the `wit-bindgen-cli` crate. [dependencies] anyhow = { workspace = true } wit-bindgen-core = { workspace = true } -wit-component = { workspace = true } -wasm-metadata = { workspace = true } heck = { workspace = true } clap = { workspace = true, optional = true }