diff --git a/Cargo.toml b/Cargo.toml index 7e2487a..6de8523 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,10 +3,10 @@ name = "init4-bin-base" description = "Internal utilities for binaries produced by the init4 team" keywords = ["init4", "bin", "base"] -version = "0.19.1" +version = "0.20.0" edition = "2021" -rust-version = "1.85" -authors = ["init4", "James Prestwich", "evalir"] +rust-version = "1.92" +authors = ["init4", "James Prestwich", "evalir", "Fraser Hutchison"] license = "MIT OR Apache-2.0" homepage = "https://github.com/init4tech/bin-base" repository = "https://github.com/init4tech/bin-base" @@ -15,9 +15,9 @@ repository = "https://github.com/init4tech/bin-base" init4-from-env-derive = { version = "0.2.0", path = "from-env-derive" } # Signet -signet-cold-sql = { version = "0.7.1", optional = true, default-features = false, features = ["postgres", "sqlite"] } -signet-constants = { version = "0.16.0" } -signet-tx-cache = { version = "0.16.0", optional = true } +signet-cold-sql = { version = "0.8.0", optional = true, default-features = false, features = ["postgres", "sqlite"] } +signet-constants = { version = "0.17.1" } +signet-tx-cache = { version = "0.17.1", optional = true } # alloy alloy = { version = "1.0.35", optional = true, default-features = false, features = ["std", "signer-local", "consensus", "network"] } diff --git a/README.md b/README.md index 6ab143d..68181da 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Common functionality for binaries produced by the [`init4`] project. This crate ```toml [dependencies] -init4-bin-base = "0.18" +init4-bin-base = "0.20" ``` ## Quick Start diff --git a/src/perms/builders.rs b/src/perms/builders.rs index 5bf931d..3e63ce2 100644 --- a/src/perms/builders.rs +++ b/src/perms/builders.rs @@ -138,7 +138,7 @@ impl Builders { /// Get the index of the builder that is allowed to sign a block for a /// particular timestamp. - pub fn index(&self, timestamp: u64) -> usize { + pub const fn index(&self, timestamp: u64) -> usize { self.config .calc() .slot_containing(timestamp)