diff --git a/Cargo.toml b/Cargo.toml index 8d6a6c7..acfcb4c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,6 +5,7 @@ edition = "2021" description = "Restate SDK for Rust" license = "MIT" repository = "https://github.com/restatedev/sdk-rust" +rust-version = "1.76.0" [features] default = ["http_server", "rand", "uuid"] diff --git a/examples/failures.rs b/examples/failures.rs index 67e1b15..2465544 100644 --- a/examples/failures.rs +++ b/examples/failures.rs @@ -16,7 +16,7 @@ struct MyError; impl FailureExample for FailureExampleImpl { async fn do_run(&self, context: Context<'_>) -> Result<(), TerminalError> { context - .run(|| async move { + .run::<_, _, ()>(|| async move { if rand::thread_rng().next_u32() % 4 == 0 { Err(TerminalError::new("Failed!!!"))? } diff --git a/rust-toolchain.toml b/rust-toolchain.toml index a072bca..0f102b7 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] -channel = "1.80.1" +channel = "1.81.0" profile = "minimal" components = ["rustfmt", "clippy"] diff --git a/test-services/Dockerfile b/test-services/Dockerfile index a5535c1..c041674 100644 --- a/test-services/Dockerfile +++ b/test-services/Dockerfile @@ -1,4 +1,4 @@ -FROM rust:1.78 +FROM rust:1.81 WORKDIR /app diff --git a/test-services/src/failing.rs b/test-services/src/failing.rs index 334f36e..197a7af 100644 --- a/test-services/src/failing.rs +++ b/test-services/src/failing.rs @@ -72,7 +72,7 @@ impl Failing for FailingImpl { error_message: String, ) -> HandlerResult<()> { context - .run(|| async move { Err(TerminalError::new(error_message))? }) + .run::<_, _, ()>(|| async move { Err(TerminalError::new(error_message))? }) .await?; unreachable!("This should be unreachable")