Skip to content

Commit 4de8fc3

Browse files
authored
Merge pull request #4 from peterhuene/type-resolution
Implement initial name resolution.
2 parents 9aef47e + 702b355 commit 4de8fc3

115 files changed

Lines changed: 8258 additions & 230 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/main.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
tags: ['[0-9]*']
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
name: Run tests
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest, macos-latest, windows-latest]
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Install Rust
21+
run: |
22+
rustup update stable --no-self-update
23+
rustup default stable
24+
shell: bash
25+
- name: Run all tests
26+
run: cargo test --all
27+
28+
rustfmt:
29+
name: Format source code
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v3
33+
- name: Install Rust
34+
run: rustup update stable && rustup default stable && rustup component add rustfmt
35+
- name: Run `cargo fmt`
36+
run: cargo fmt -- --check

Cargo.lock

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

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ pretty_env_logger = { workspace = true }
1818
log = { workspace = true }
1919
tokio = { workspace = true }
2020
owo-colors = { workspace = true }
21+
serde = { workspace = true }
22+
serde_json = { workspace = true }
2123

2224
[workspace.dependencies]
2325
wac-parser = { path = "crates/wac-parser" }
@@ -32,4 +34,7 @@ pretty_env_logger = "0.5.0"
3234
log = "0.4.20"
3335
tokio = { version = "1.32.0", default-features = false, features = ["macros", "rt-multi-thread"] }
3436
owo-colors = "3.5.0"
37+
indexmap = { version = "2.0.0", features = ["serde"] }
3538
id-arena = "2.2.1"
39+
serde = { version = "1.0.188", features = ["derive"] }
40+
serde_json = "1.0.107"

crates/wac-parser/Cargo.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,21 @@ pest_derive = { workspace = true }
1818
pest-ast = { workspace = true }
1919
from-pest = { workspace = true }
2020
semver = { workspace = true }
21+
log = { workspace = true }
22+
indexmap = { workspace = true }
2123
id-arena = { workspace = true }
24+
serde = { workspace = true }
2225

2326
[dev-dependencies]
2427
pretty_assertions = "1.4.0"
28+
pretty_env_logger = { workspace = true }
29+
rayon = "1.8.0"
30+
serde_json = { workspace = true }
31+
32+
[[test]]
33+
name = "parser"
34+
harness = false
35+
36+
[[test]]
37+
name = "resolution"
38+
harness = false

0 commit comments

Comments
 (0)