Skip to content

Commit 9ea7865

Browse files
authored
chore(core): bump MSRV to 1.80.0 (#213)
CI is currently failing because native-tls bumped their MSRV to 1.80.0. Follow them to unblock CI.
1 parent 99d2b61 commit 9ea7865

File tree

5 files changed

+17
-11
lines changed

5 files changed

+17
-11
lines changed

.changeset/selfish-houses-doubt.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"eppo_core": patch
3+
"rust-sdk": patch
4+
"ruby-sdk": patch
5+
"python-sdk": patch
6+
---
7+
8+
Bump Minimum Supported Rust Version (MSRV) to 1.80.0.

eppo_core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ repository = "https://github.com/Eppo-exp/rust-sdk"
77
license = "MIT"
88
keywords = ["eppo", "feature-flags"]
99
categories = ["config"]
10-
rust-version = "1.75.0"
10+
rust-version = "1.80.0"
1111

1212
[features]
1313
# Unstable feature flag for an upcoming feature.

eppo_core/src/configuration.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,11 @@ impl Configuration {
7676
/// initialization.
7777
pub fn get_bandits_configuration(&self) -> Option<Cow<[u8]>> {
7878
let bandits = self.bandits.as_ref()?;
79-
let json = serde_json::to_vec(bandits);
80-
81-
// TODO: replace with .inspect_err() once we bump MSRV to 1.76
82-
if let Err(err) = &json {
83-
log::warn!(target: "eppo", "failed to serialize bandits: {err:?}");
84-
}
85-
86-
json.ok().map(Cow::Owned)
79+
serde_json::to_vec(bandits)
80+
.inspect_err(|err| {
81+
log::warn!(target: "eppo", "failed to serialize bandits: {err:?}");
82+
})
83+
.ok()
84+
.map(Cow::Owned)
8785
}
8886
}

ruby-sdk/ext/eppo_client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version = "3.4.5"
55
edition = "2021"
66
license = "MIT"
77
publish = false
8-
rust-version = "1.75.0"
8+
rust-version = "1.80.0"
99

1010
[lib]
1111
crate-type = ["cdylib"]

rust-sdk/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repository = "https://github.com/Eppo-exp/rust-sdk"
88
license = "MIT"
99
keywords = ["eppo", "feature-flags"]
1010
categories = ["config"]
11-
rust-version = "1.75.0"
11+
rust-version = "1.80.0"
1212

1313
[dependencies]
1414
eppo_core = { version = "=8.0.2", path = "../eppo_core" }

0 commit comments

Comments
 (0)