Skip to content

Commit 0dfc0bf

Browse files
committed
librustls: use '=' prefix specifier for rustls dep
and, in the `rustls_version_match()` test, ignore that prefix when comparing the version.
1 parent 268b5e9 commit 0dfc0bf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

librustls/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ prefer-post-quantum = ["aws-lc-rs", "rustls/prefer-post-quantum"]
3030

3131
[dependencies]
3232
# Keep in sync with RUSTLS_CRATE_VERSION in build.rs
33-
rustls = { version = "0.23.31", default-features = false, features = ["std", "tls12"] }
33+
rustls = { version = "=0.23.31", default-features = false, features = ["std", "tls12"] }
3434
webpki = { workspace = true }
3535
libc = { workspace = true }
3636
log = { workspace = true }

librustls/tests/rustls_version.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ fn rustls_version_match() {
5151
// Handle the `rustls = "x.y.z"` case
5252
None => rustls_dep.as_str(),
5353
}
54-
.expect("missing rustls dependency version");
54+
.expect("missing rustls dependency version")
55+
.trim_start_matches("=");
5556

5657
// Assert that rustls_version() returns a string of the form:
5758
// $CRATE_NAME/$CRATE_VERSION/rustls/$RUSTLS_VERSION

0 commit comments

Comments
 (0)