Skip to content

Commit

Permalink
Bump MSRV to 1.72.
Browse files Browse the repository at this point in the history
  • Loading branch information
abizjak committed Feb 14, 2024
1 parent 19892a1 commit 5a1256e
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
19 changes: 18 additions & 1 deletion .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:

env:
RUST_FMT: nightly-2023-04-01-x86_64-unknown-linux-gnu
RUST_VERSION: "1.67"
RUST_VERSION: "1.72"

jobs:
"lint_fmt":
Expand Down Expand Up @@ -49,6 +49,23 @@ jobs:
rustup component add rust-docs
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --features postgres --color=always
# Check compilation of just the crate without tests and examples. This is to
# make sure that the features are correctly set for the normal dependencies.
"check_pure_compilation":
name: lint:clippy
# Don't run on draft pull requests
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Clippy
run: |
rustup default $RUST_VERSION
cargo check
"lint_clippy_test":
name: lint:clippy
# Don't run on draft pull requests
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Add a `ProcessorConfig` struct dual to the `TraverseConfig` to help in writing
indexers.
- Bump MSRV to 1.72

## 4.1.1

Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "concordium-rust-sdk"
version = "4.1.1"
authors = ["Concordium <[email protected]>"]
edition = "2021"
rust-version = "1.67"
rust-version = "1.72"
license-file = "LICENSE"
readme = "README.md"
include = ["src/", "examples/", "CHANGELOG.md"]
Expand All @@ -16,7 +16,7 @@ homepage = "https://github.com/Concordium/concordium-rust-sdk"
[dependencies]
tonic = {version = "0.10"}
prost = "0.12"
tokio = { version = "1.27", features = ["net"] }
tokio = { version = "1.27", features = ["net", "macros"] }
futures = "0.3"
serde_json = "1.0"
serde = {version = "1.0", features = ["derive"]}
Expand Down
6 changes: 6 additions & 0 deletions src/indexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,12 @@ pub struct ProcessorConfig {
stop: std::pin::Pin<Box<dyn std::future::Future<Output = ()>>>,
}

/// The default implementation behaves the same as
/// [`ProcessorConfig::new`](ProcessorConfig::new).
impl Default for ProcessorConfig {
fn default() -> Self { Self::new() }
}

impl ProcessorConfig {
/// After each failure the [`Processor`] will pause a bit before trying
/// again. Defaults to 5 seconds.
Expand Down

0 comments on commit 5a1256e

Please sign in to comment.