Skip to content

Commit 9b0f47c

Browse files
authored
refactor: align Rust package and binary names (#159)
Rename the Rust package registry-notary-bin to registry-notary so the package, binary, release artifact, and --version output share one user-facing name. Add registry-relay --version/-V support and version smoke tests for registry-notary, registry-relay, and registryctl. Fixes #155.
1 parent 7a0c346 commit 9b0f47c

39 files changed

Lines changed: 150 additions & 43 deletions

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,13 @@ jobs:
167167
-p registryctl \
168168
-p registry-manifest-cli \
169169
-p registry-relay \
170-
-p registry-notary-bin \
170+
-p registry-notary \
171171
-p registry-notary-source-adapter-sidecar \
172-
--features registry-relay/spdci-api-standards,registry-relay/standards-cel-mapping,registry-relay/ogcapi-edr,registry-notary-bin/registry-notary-cel
172+
--features registry-relay/spdci-api-standards,registry-relay/standards-cel-mapping,registry-relay/ogcapi-edr,registry-notary/registry-notary-cel
173173
cp target/release/registry-notary dist/image-bin/registry-notary
174174
cargo build --release --locked \
175-
-p registry-notary-bin \
176-
--features registry-notary-bin/registry-notary-cel,registry-notary-bin/pkcs11
175+
-p registry-notary \
176+
--features registry-notary/registry-notary-cel,registry-notary/pkcs11
177177
cp target/release/registry-notary dist/image-bin/registry-notary-pkcs11'
178178
cp target/release/registryctl "dist/bin/registryctl-${{ needs.verify.outputs.tag }}-linux-amd64"
179179
cp target/release/registry-manifest "dist/bin/registry-manifest-${{ needs.verify.outputs.tag }}-linux-amd64"

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ members = [
2121
"crates/registry-notary-core",
2222
"crates/registry-notary-client",
2323
"crates/registry-notary-server",
24-
"crates/registry-notary-bin",
24+
"crates/registry-notary",
2525
"crates/registry-notary-worker-harness",
2626
"crates/registry-notary-source-adapter-sidecar",
2727
"crates/registry-notary-source-adapter-rhai",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "registry-notary-bin"
2+
name = "registry-notary"
33
version.workspace = true
44
edition.workspace = true
55
license.workspace = true
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# registry-notary-bin
1+
# registry-notary
22

33
Process entrypoint for the standalone Registry Notary service.
44

@@ -33,19 +33,19 @@ The crate builds the `registry-notary` binary.
3333
Run the service:
3434

3535
```sh
36-
cargo run -p registry-notary-bin -- --config demo/config/registry-notary.yaml
36+
cargo run -p registry-notary -- --config demo/config/registry-notary.yaml
3737
```
3838

3939
Print the OpenAPI document:
4040

4141
```sh
42-
cargo run -p registry-notary-bin -- openapi > target/registry-notary.openapi.json
42+
cargo run -p registry-notary -- openapi > target/registry-notary.openapi.json
4343
```
4444

4545
Probe the container health endpoint without requiring curl in the image:
4646

4747
```sh
48-
cargo run -p registry-notary-bin -- healthcheck --url http://127.0.0.1:8080/healthz
48+
cargo run -p registry-notary -- healthcheck --url http://127.0.0.1:8080/healthz
4949
```
5050

5151
## Features
@@ -57,8 +57,8 @@ cargo run -p registry-notary-bin -- healthcheck --url http://127.0.0.1:8080/heal
5757
## Testing
5858

5959
```sh
60-
cargo test -p registry-notary-bin
61-
cargo run -p registry-notary-bin -- openapi > target/registry-notary.openapi.json
60+
cargo test -p registry-notary
61+
cargo run -p registry-notary -- openapi > target/registry-notary.openapi.json
6262
```
6363

6464
## License
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3817,7 +3817,7 @@ ESCAPED="client \"quoted\" value" # comment with "quote"
38173817
#[test]
38183818
fn build_info_reports_compiled_pkcs11_capability() {
38193819
let info = build_info();
3820-
assert_eq!(info["package"], "registry-notary-bin");
3820+
assert_eq!(info["package"], "registry-notary");
38213821
assert_eq!(
38223822
info["capabilities"]["signing_providers"]["pkcs11"],
38233823
json!(cfg!(feature = "pkcs11"))

crates/registry-notary-bin/tests/config_apply_bundle_cli.rs renamed to crates/registry-notary/tests/config_apply_bundle_cli.rs

File renamed without changes.

crates/registry-notary-bin/tests/config_verify_bundle_cli.rs renamed to crates/registry-notary/tests/config_verify_bundle_cli.rs

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)