Skip to content

Commit e430fec

Browse files
Add MSRV computed with cargo msrv (#26)
* Add MSRV computed with `cargo msrv` Bump toolchain version in CI to 1.81 * Fix for 1.81
1 parent d559240 commit e430fec

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ edition = "2021"
55
description = "Restate SDK for Rust"
66
license = "MIT"
77
repository = "https://github.com/restatedev/sdk-rust"
8+
rust-version = "1.76.0"
89

910
[features]
1011
default = ["http_server", "rand", "uuid"]

examples/failures.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ struct MyError;
1616
impl FailureExample for FailureExampleImpl {
1717
async fn do_run(&self, context: Context<'_>) -> Result<(), TerminalError> {
1818
context
19-
.run(|| async move {
19+
.run::<_, _, ()>(|| async move {
2020
if rand::thread_rng().next_u32() % 4 == 0 {
2121
Err(TerminalError::new("Failed!!!"))?
2222
}

rust-toolchain.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[toolchain]
2-
channel = "1.80.1"
2+
channel = "1.81.0"
33
profile = "minimal"
44
components = ["rustfmt", "clippy"]

test-services/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:1.78
1+
FROM rust:1.81
22

33
WORKDIR /app
44

test-services/src/failing.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ impl Failing for FailingImpl {
7272
error_message: String,
7373
) -> HandlerResult<()> {
7474
context
75-
.run(|| async move { Err(TerminalError::new(error_message))? })
75+
.run::<_, _, ()>(|| async move { Err(TerminalError::new(error_message))? })
7676
.await?;
7777

7878
unreachable!("This should be unreachable")

0 commit comments

Comments
 (0)