Skip to content

Commit 327efdc

Browse files
remove unused deps, force newer syn, some lint fixes (#1095)
* chore(deps): remove unused dep from csharp bindgen Signed-off-by: Victor Adossi <vadossi@cosmonic.com> * chore(deps): remove unused dep from moonbit bindgen Signed-off-by: Victor Adossi <vadossi@cosmonic.com> * chore(deps): remove unused dep from markdown bindgen Signed-off-by: Victor Adossi <vadossi@cosmonic.com> * chore(deps): update syn dep to avoid regression This commit addresses the regression noted upstream in `proc-macro2` by way of `syn` (see dtolnay/proc-macro2 #484) Signed-off-by: Victor Adossi <vadossi@cosmonic.com> * chore(csharp): fix some lint warnings in csharp bindgen Signed-off-by: Victor Adossi <vadossi@cosmonic.com> --------- Signed-off-by: Victor Adossi <vadossi@cosmonic.com>
1 parent d92b53b commit 327efdc

File tree

6 files changed

+8
-13
lines changed

6 files changed

+8
-13
lines changed

Cargo.lock

Lines changed: 4 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pulldown-cmark = { version = "0.9", default-features = false }
3030
clap = { version = "4.3.19", features = ["derive"] }
3131
indexmap = "2.0.0"
3232
prettyplease = "0.2.20"
33-
syn = { version = "2.0", features = ["printing"] }
33+
syn = { version = "2.0.89", features = ["printing"] }
3434

3535
wasmparser = "0.220.0"
3636
wasm-encoder = "0.220.0"

crates/csharp/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ doctest = false
1616
test = false
1717

1818
[dependencies]
19-
wasm-encoder = { workspace = true }
2019
wit-bindgen-core = { workspace = true }
2120
wit-component = { workspace = true }
2221
wit-parser = { workspace = true }

crates/csharp/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ pub struct CSharp {
124124
opts: Opts,
125125
name: String,
126126
usings: HashSet<String>,
127+
#[allow(unused)]
127128
interop_usings: HashSet<String>,
128129
return_area_size: usize,
129130
return_area_align: usize,
@@ -198,6 +199,7 @@ impl CSharp {
198199
}
199200
}
200201

202+
#[allow(unused)]
201203
fn require_interop_using(&mut self, using_ns: &str) {
202204
if !self.interop_usings.contains(using_ns) {
203205
let using_ns_string = using_ns.to_string();
@@ -2691,7 +2693,7 @@ impl Bindgen for FunctionBindgen<'_, '_> {
26912693
));
26922694
}
26932695

2694-
Instruction::ListLower { element, realloc } => {
2696+
Instruction::ListLower { element, .. } => {
26952697
let Block {
26962698
body,
26972699
results: block_results,

crates/markdown/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,3 @@ heck = { workspace = true }
2020
pulldown-cmark = { workspace = true }
2121
clap = { workspace = true, optional = true }
2222
wit-bindgen-core = { workspace = true }
23-
wit-component = { workspace = true }

crates/moonbit/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ through the `wit-bindgen-cli` crate.
1414
[dependencies]
1515
anyhow = { workspace = true }
1616
wit-bindgen-core = { workspace = true }
17-
wit-component = { workspace = true }
18-
wasm-metadata = { workspace = true }
1917
heck = { workspace = true }
2018
clap = { workspace = true, optional = true }
2119

0 commit comments

Comments
 (0)