Skip to content

Commit be497f0

Browse files
authored
Merge pull request #3439 from IntersectMBO/jpraynaud/3423-fix-rustls-setup-stm
fix(stm): stop forcing `rustls` in the `future_snark` feature
2 parents bf1c9b3 + d36a75b commit be497f0

18 files changed

Lines changed: 86 additions & 66 deletions

File tree

.github/workflows/test-rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
test-args: --features full,unstable --workspace
2020
cargo-profile: ci-tests
2121
- os: ubuntu-24.04
22-
test-args: --features future_snark -p mithril-stm -p mithril-common -p mithril-aggregator -p mithril-signer -p mithril-relay
22+
test-args: --features future_snark,rustls -p mithril-stm -p mithril-common -p mithril-aggregator -p mithril-signer -p mithril-relay
2323
artifact-suffix: -future-snark
2424
# Default to the fast profile; the `prepare` step upgrades to `slow-cargo-profile`
2525
# only when the slow SNARK tests are actually in scope for this run (so we don't pay

Cargo.lock

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

demo/protocol-demo/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ license = { workspace = true }
99
repository = { workspace = true }
1010

1111
[features]
12+
default = ["rustls"]
1213
# Enable experimental SNARK support in mithril-stm and mithril-common.
1314
future_snark = ["mithril-stm/future_snark", "mithril-common/future_snark"]
15+
# Enable the TLS features of mithril-stm.
16+
rustls = ["mithril-stm/rustls"]
1417

1518
[dependencies]
1619
clap = { workspace = true }

docs/runbook/update-circuit-keys/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ Reviewers:
2929
Commands to run the integrity tests:
3030

3131
```bash
32-
cargo test -p mithril-stm --features future_snark --release integrity_test_for_non_recursive_production_key -- --ignored
32+
cargo test -p mithril-stm --features future_snark,rustls --release integrity_test_for_non_recursive_production_key -- --ignored
3333
```
3434

3535
and
3636

3737
```bash
38-
cargo test -p mithril-stm --features future_snark --release integrity_test_for_recursive_production_key -- --ignored
38+
cargo test -p mithril-stm --features future_snark,rustls --release integrity_test_for_recursive_production_key -- --ignored
3939
```
4040

4141
Release manager:
@@ -52,13 +52,13 @@ The author needs to update the golden value of the verification keys in the gold
5252
To update the production circuit verification keys, one needs to run the following commands:
5353

5454
```bash
55-
cargo test -p mithril-stm --features future_snark --release write_non_recursive_circuit_verification_key_for_production_to_file -- --ignored
55+
cargo test -p mithril-stm --features future_snark,rustls --release write_non_recursive_circuit_verification_key_for_production_to_file -- --ignored
5656
```
5757

5858
and
5959

6060
```bash
61-
cargo test -p mithril-stm --features future_snark --release write_recursive_circuit_verification_key_for_production_to_file -- --ignored
61+
cargo test -p mithril-stm --features future_snark,rustls --release write_recursive_circuit_verification_key_for_production_to_file -- --ignored
6262
```
6363

6464
that will update the files holding the values of the production keys, `mithril-stm/src/circuits/halo2/non_recursive_circuit_verification_key_for_production.bin` and `mithril-stm/src/circuits/halo2_ivc/recursive_circuit_verification_key_for_production.bin`.

internal/cardano-node/mithril-cardano-node-internal-database/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ anyhow = { workspace = true }
1515
async-trait = { workspace = true }
1616
digest = { workspace = true }
1717
hex = { workspace = true }
18-
mithril-common = { path = "../../../mithril-common", version = "0.7.14" }
18+
mithril-common = { path = "../../../mithril-common", version = "0.7.15" }
1919
serde = { workspace = true }
2020
serde_json = { workspace = true }
2121
sha2 = "0.10.9"

internal/mithril-aggregator-client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ include = ["**/*.rs", "Cargo.toml", "README.md"]
1313
[dependencies]
1414
anyhow = { workspace = true }
1515
async-trait = { workspace = true }
16-
mithril-common = { path = "../../mithril-common", version = "0.7.14" }
16+
mithril-common = { path = "../../mithril-common", version = "0.7.15" }
1717
reqwest = { workspace = true }
1818
semver = { workspace = true }
1919
serde = { workspace = true }

internal/mithril-aggregator-discovery/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ include = ["**/*.rs", "Cargo.toml", "README.md", ".gitignore"]
1414
anyhow = { workspace = true }
1515
async-trait = { workspace = true }
1616
mithril-aggregator-client = { path = "../mithril-aggregator-client", version = "0.2.4" }
17-
mithril-common = { path = "../../mithril-common", version = "0.7.14" }
17+
mithril-common = { path = "../../mithril-common", version = "0.7.15" }
1818
rand = { version = "0.10.2" }
1919
reqwest = { workspace = true }
2020
serde = { workspace = true }

mithril-aggregator/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mithril-aggregator"
3-
version = "0.9.18"
3+
version = "0.9.19"
44
description = "A Mithril Aggregator server"
55
authors = { workspace = true }
66
edition = { workspace = true }
@@ -11,7 +11,7 @@ repository = { workspace = true }
1111

1212
[features]
1313
default = ["rustls"]
14-
rustls = ["reqwest/rustls"]
14+
rustls = ["mithril-common/rustls", "reqwest/rustls"]
1515

1616
future_snark = ["mithril-common/future_snark", "dep:ciborium"]
1717

mithril-client/Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mithril-client"
3-
version = "0.14.17"
3+
version = "0.14.18"
44
description = "Mithril client library"
55
authors = { workspace = true }
66
edition = { workspace = true }
@@ -30,13 +30,13 @@ unstable = []
3030

3131
# These features are for support of dependent crates only.
3232
# They do not change the operation of the main crate.
33-
native-tls = ["reqwest/native-tls"]
34-
native-tls-no-alpn = ["reqwest/native-tls-no-alpn"]
35-
native-tls-vendored = ["reqwest/native-tls-vendored"]
36-
native-tls-vendored-no-alpn = ["reqwest/native-tls-vendored-no-alpn"]
33+
native-tls = ["mithril-common/native-tls", "reqwest/native-tls"]
34+
native-tls-no-alpn = ["mithril-common/native-tls", "reqwest/native-tls-no-alpn"]
35+
native-tls-vendored = ["mithril-common/native-tls", "reqwest/native-tls-vendored"]
36+
native-tls-vendored-no-alpn = ["mithril-common/native-tls", "reqwest/native-tls-vendored-no-alpn"]
3737

38-
rustls = ["reqwest/rustls"]
39-
rustls-no-provider = ["reqwest/rustls-no-provider"]
38+
rustls = ["mithril-common/rustls", "reqwest/rustls"]
39+
rustls-no-provider = ["mithril-common/rustls", "reqwest/rustls-no-provider"]
4040

4141
# Support compressed traffic with `reqwest`
4242
enable-http-compression = ["reqwest/gzip", "reqwest/zstd", "reqwest/deflate", "reqwest/brotli"]
@@ -64,7 +64,7 @@ flate2 = { version = "1.1.9", optional = true }
6464
flume = { version = "0.12.0", optional = true }
6565
futures = "0.3.32"
6666
mithril-aggregator-client = { path = "../internal/mithril-aggregator-client", version = "0.2.4" }
67-
mithril-common = { path = "../mithril-common", version = "0.7.14", default-features = false }
67+
mithril-common = { path = "../mithril-common", version = "0.7.15", default-features = false }
6868
reqwest = { workspace = true, default-features = false, features = ["charset", "http2", "stream", "system-proxy"] }
6969
serde = { workspace = true }
7070
serde_json = { workspace = true }

mithril-common/Cargo.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mithril-common"
3-
version = "0.7.14"
3+
version = "0.7.15"
44
description = "Common types, interfaces, and utilities for Mithril nodes."
55
authors = { workspace = true }
66
edition = { workspace = true }
@@ -32,6 +32,11 @@ allow_skip_signer_certification = []
3232
# Enables the future SNARK implementation for the `mithril-stm` dependency
3333
future_snark = ["mithril-stm/future_snark"]
3434

35+
# Enables the TLS features for the `mithril-stm` dependency
36+
# Exactly one of these must be enabled together with `future_snark`
37+
native-tls = ["mithril-stm/native-tls"]
38+
rustls = ["mithril-stm/rustls"]
39+
3540
[dependencies]
3641
anyhow = { workspace = true }
3742
async-trait = { workspace = true }
@@ -46,7 +51,7 @@ fixed = "1.31.0"
4651
hex = { workspace = true }
4752
kes-summed-ed25519 = { version = "0.2.1", features = ["serde_enabled", "sk_clone_enabled"] }
4853
mithril-merkle-tree = { path = "../internal/mithril-merkle-tree", version = "0.1.4" }
49-
mithril-stm = { path = "../mithril-stm", version = "0.12.0", default-features = false }
54+
mithril-stm = { path = "../mithril-stm", version = "0.12.1", default-features = false }
5055
nom = "8.0.0"
5156
rand_chacha = { workspace = true }
5257
rand_core = { workspace = true }

0 commit comments

Comments
 (0)