Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MSRV computed with cargo msrv #26

Merged
merged 2 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion examples/failures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!!!"))?
}
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[toolchain]
channel = "1.80.1"
channel = "1.81.0"
profile = "minimal"
components = ["rustfmt", "clippy"]
2 changes: 1 addition & 1 deletion test-services/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.78
FROM rust:1.81

WORKDIR /app

Expand Down
2 changes: 1 addition & 1 deletion test-services/src/failing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down