Skip to content

Commit c4e11f9

Browse files
committed
Remove wat-fmt from workspace and update dependencies in Cargo.toml; clean up wat_emitter.rs
1 parent 8e7b407 commit c4e11f9

File tree

7 files changed

+8
-369
lines changed

7 files changed

+8
-369
lines changed

.vscode/settings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"./wat-codegen/Cargo.toml",
88
"./tests/Cargo.toml",
99
"./playground-server/Cargo.toml",
10-
"./wat-fmt/Cargo.toml",
1110
"./wasm-fmt/Cargo.toml"
1211
]
1312
}

Cargo.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ members = [
1010
"inference",
1111
"tests",
1212
"playground-server",
13-
"wat-fmt",
14-
"wasm-fmt",
13+
"wasm-fmt"
1514
]
1615

1716
[workspace.package]
@@ -29,10 +28,10 @@ inference-wasm-v-translator = { path = "./wasm-v-translator", version = "0.0.1"
2928
inference-wat-codegen = { path = "./wat-codegen", version = "0.0.1" }
3029
inference-tests = { path = "./tests", version = "0.0.1" }
3130
inference-playground-server = { path = "./playground-server", version = "0.0.1" }
32-
inf-wast = "0.0.6"
33-
inf-wasmparser = "0.0.6"
34-
wat-fmt = { path = "./wat-fmt", version = "0.0.1" }
31+
inf-wast = "0.0.8"
32+
inf-wasmparser = "0.0.8"
33+
wat-fmt = "0.0.8"
3534
wasm-fmt = { path = "./wasm-fmt", version = "0.0.1" }
3635
tree-sitter = "0.25.3"
3736
tree-sitter-inference = "0.0.29"
38-
anyhow = "1.0.97"
37+
anyhow = "1.0.98"

ast/src/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub fn build_ast(root: Node, code: &[u8]) -> anyhow::Result<SourceFile> {
4747
return Err(anyhow::anyhow!("Unexpected child of type {child_kind}"));
4848
}
4949
}
50-
};
50+
}
5151
}
5252
}
5353
Ok(ast)

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[toolchain]
2-
channel = "nightly-2024-12-17"
2+
channel = "nightly"

wat-codegen/src/wat_emitter.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#![warn(clippy::pedantic)]
22

3-
use std::collections::HashMap;
4-
53
use inference_ast::types::{
64
AssertStatement, BinaryExpression, BlockType, Definition, Expression, FunctionCallExpression,
75
FunctionDefinition, Literal, MemberAccessExpression, OperatorKind, SourceFile, SpecDefinition,
@@ -39,7 +37,7 @@ fn s_assume() -> String {
3937
#[derive(Debug, Clone, Default)]
4038
pub struct WatEmitter {
4139
source_files: Vec<SourceFile>,
42-
functions_to_emit: HashMap<u32, Vec<String>>,
40+
// functions_to_emit: HashMap<u32, Vec<String>>,
4341
}
4442

4543
impl WatEmitter {

wat-fmt/Cargo.toml

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)