Skip to content

Commit f5dcba1

Browse files
authored
Merge pull request #106 from calvinrp/warg-plug
`wac plug` with registry support
2 parents 088a728 + e28403e commit f5dcba1

9 files changed

Lines changed: 345 additions & 366 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ Cargo.lock
44
**/*.rs.bk
55
*.pdb
66
publish
7+
*.swp

Cargo.lock

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

Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ wac-types = { workspace = true }
2323
wac-graph = { workspace = true }
2424
wac-resolver = { workspace = true, default-features = false }
2525
wac-parser = { workspace = true, default-features = false }
26+
warg-client = { workspace = true, optional = true }
27+
warg-protocol = { workspace = true, optional = true }
2628
anyhow = { workspace = true }
2729
clap = { workspace = true }
2830
pretty_env_logger = { workspace = true }
@@ -40,10 +42,10 @@ semver = { workspace = true }
4042
indicatif = { workspace = true, optional = true }
4143

4244
[features]
43-
default = ["wit"]
45+
default = ["wit", "registry"]
4446
wat = ["wac-resolver/wat"]
4547
wit = ["wac-resolver/wit"]
46-
registry = ["wac-resolver/registry", "indicatif"]
48+
registry = ["wac-resolver/registry", "dep:indicatif", "dep:warg-client", "dep:warg-protocol"]
4749

4850
[workspace.dependencies]
4951
wac-parser = { path = "crates/wac-parser", version = "0.1.0", default-features = false }
@@ -71,12 +73,10 @@ wat = "1.202.0"
7173
logos = "0.14.0"
7274
miette = "7.2.0"
7375
thiserror = "1.0.58"
74-
warg-client = "0.4.1"
75-
warg-protocol = "0.4.1"
76-
warg-crypto = "0.4.1"
77-
warg-server = "0.4.1"
78-
warg-credentials = "0.4.1"
79-
secrecy = "0.8.0"
76+
warg-client = "0.6.0"
77+
warg-protocol = "0.6.0"
78+
warg-crypto = "0.6.0"
79+
warg-server = "0.6.0"
8080
futures = "0.3.30"
8181
indicatif = "0.17.8"
8282
pretty_assertions = "1.4.0"

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,6 @@ For a full description of the `wac` language see [the language guide](LANGUAGE.m
8484
cargo install wac-cli
8585
```
8686

87-
To enable support Warg component registries, specify the `registry` feature:
88-
89-
```
90-
cargo install wac-cli --features registry
91-
```
92-
9387
## Usage
9488

9589
The `wac` CLI tool has three commands:

crates/wac-resolver/Cargo.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ miette = { workspace = true }
2424
warg-client = { workspace = true, optional = true }
2525
warg-protocol = { workspace = true, optional = true }
2626
warg-crypto = { workspace = true, optional = true }
27-
warg-credentials = { workspace = true, optional = true }
28-
secrecy = { workspace = true, optional = true }
2927
tokio = { workspace = true, optional = true }
3028
futures = { workspace = true, optional = true }
3129

@@ -40,5 +38,5 @@ tempdir = "0.3.7"
4038
[features]
4139
default = ["registry"]
4240
wat = ["dep:wat"]
43-
wit = ["wit-parser"]
44-
registry = ["warg-client", "warg-protocol", "warg-crypto", "warg-credentials", "secrecy", "tokio", "futures"]
41+
wit = ["dep:wit-parser"]
42+
registry = ["dep:warg-client", "dep:warg-protocol", "dep:warg-crypto", "dep:tokio", "dep:futures"]

0 commit comments

Comments
 (0)