Skip to content

Commit bb8c7c0

Browse files
committed
Implement support for registry packages.
This commit implements support for referencing packages from a registry. A new `wac-resolver` crate was added and the resolvers implementation was refactored into it; package resolution now occurs before document resolution. A `registry` feature was added to the CLI tool; when enabled, a `--registry` CLI option is accepted to point at the registry to use. The CLI also supports Warg client configuration files (default or local). A simple `indicatif` progress bar was added to display the number of packages that need to be downloaded from the registry. A new integration test that uses packages from a registry was also implemented.
1 parent 9cbdc47 commit bb8c7c0

21 files changed

Lines changed: 4093 additions & 566 deletions

File tree

.github/workflows/main.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,30 @@ jobs:
2525
- name: Run all tests
2626
run: cargo test --all
2727

28+
check:
29+
name: Check feature combinations
30+
runs-on: ${{ matrix.os }}
31+
strategy:
32+
matrix:
33+
os: [ubuntu-latest, macos-latest, windows-latest]
34+
steps:
35+
- uses: actions/checkout@v3
36+
- name: Install Rust
37+
run: |
38+
rustup update stable --no-self-update
39+
rustup default stable
40+
shell: bash
41+
- name: Build without default features
42+
run: cargo check --no-default-features
43+
- name: Build the `wat` feature
44+
run: cargo check --no-default-features --features wat
45+
- name: Build the `wit` feature
46+
run: cargo check --no-default-features --features wit
47+
- name: Build the `registry` feature
48+
run: cargo check --no-default-features --features registry
49+
- name: Build all features
50+
run: cargo check --all-features
51+
2852
rustfmt:
2953
name: Format source code
3054
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)