Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wac plug with registry support #106

Merged
merged 11 commits into from
May 13, 2024
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ Cargo.lock
**/*.rs.bk
*.pdb
publish
*.swp
124 changes: 54 additions & 70 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ wac-types = { workspace = true }
wac-graph = { workspace = true }
wac-resolver = { workspace = true, default-features = false }
wac-parser = { workspace = true, default-features = false }
warg-client = { workspace = true, optional = true }
warg-protocol = { workspace = true, optional = true }
anyhow = { workspace = true }
clap = { workspace = true }
pretty_env_logger = { workspace = true }
Expand All @@ -40,10 +42,10 @@ semver = { workspace = true }
indicatif = { workspace = true, optional = true }

[features]
default = ["wit"]
default = ["wit", "registry"]
wat = ["wac-resolver/wat"]
wit = ["wac-resolver/wit"]
registry = ["wac-resolver/registry", "indicatif"]
registry = ["wac-resolver/registry", "dep:indicatif", "dep:warg-client", "dep:warg-protocol"]

[workspace.dependencies]
wac-parser = { path = "crates/wac-parser", version = "0.1.0", default-features = false }
Expand Down Expand Up @@ -71,12 +73,10 @@ wat = "1.202.0"
logos = "0.14.0"
miette = "7.2.0"
thiserror = "1.0.58"
warg-client = "0.4.1"
warg-protocol = "0.4.1"
warg-crypto = "0.4.1"
warg-server = "0.4.1"
warg-credentials = "0.4.1"
secrecy = "0.8.0"
warg-client = "0.6.0"
warg-protocol = "0.6.0"
warg-crypto = "0.6.0"
warg-server = "0.6.0"
futures = "0.3.30"
indicatif = "0.17.8"
pretty_assertions = "1.4.0"
Expand Down
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,6 @@ For a full description of the `wac` language see [the language guide](LANGUAGE.m
cargo install wac-cli
```

To enable support Warg component registries, specify the `registry` feature:

```
cargo install wac-cli --features registry
```

## Usage

The `wac` CLI tool has three commands:
Expand Down
6 changes: 2 additions & 4 deletions crates/wac-resolver/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ miette = { workspace = true }
warg-client = { workspace = true, optional = true }
warg-protocol = { workspace = true, optional = true }
warg-crypto = { workspace = true, optional = true }
warg-credentials = { workspace = true, optional = true }
secrecy = { workspace = true, optional = true }
tokio = { workspace = true, optional = true }
futures = { workspace = true, optional = true }

Expand All @@ -40,5 +38,5 @@ tempdir = "0.3.7"
[features]
default = ["registry"]
wat = ["dep:wat"]
wit = ["wit-parser"]
registry = ["warg-client", "warg-protocol", "warg-crypto", "warg-credentials", "secrecy", "tokio", "futures"]
wit = ["dep:wit-parser"]
registry = ["dep:warg-client", "dep:warg-protocol", "dep:warg-crypto", "dep:tokio", "dep:futures"]
Loading
Loading