mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
build(deps): bump Rust to 1.86 (#8636)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Keep synced with `rust-toolchain.toml`
|
||||
ARG RUST_VERSION="1.85.0"
|
||||
ARG RUST_VERSION="1.86.0"
|
||||
ARG ALPINE_VERSION="3.20"
|
||||
ARG CARGO_CHEF_VERSION="0.1.67"
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ const IDS_EXPIRE: std::time::Duration = std::time::Duration::from_secs(60);
|
||||
///
|
||||
/// 100 has been chosen as a pretty arbitrary value.
|
||||
/// We only store [`GatewayId`]s so the memory footprint is negligible.
|
||||
const MAX_REMEMBERED_GATEWAYS: NonZeroUsize = unsafe { NonZeroUsize::new_unchecked(100) };
|
||||
const MAX_REMEMBERED_GATEWAYS: NonZeroUsize = NonZeroUsize::new(100).expect("100 > 0");
|
||||
|
||||
/// How many concurrent TCP DNS clients we can server _per_ sentinel DNS server IP.
|
||||
const NUM_CONCURRENT_TCP_DNS_CLIENTS: usize = 10;
|
||||
|
||||
@@ -262,7 +262,7 @@ fn parse_version_from_url(url: &Url) -> Result<Version> {
|
||||
let filename = url
|
||||
.path_segments()
|
||||
.context("URL must have a path")?
|
||||
.last()
|
||||
.next_back()
|
||||
.context("URL path must have a last segment")?;
|
||||
let version_str = filename
|
||||
.split('_')
|
||||
|
||||
@@ -63,10 +63,7 @@ impl Default for Format {
|
||||
|
||||
const TIMESTAMP_FORMAT_CONFIG: EncodedConfig = Config::DEFAULT
|
||||
.set_time_precision(TimePrecision::Second {
|
||||
decimal_digits: Some({
|
||||
// Safety: 3 > 0
|
||||
unsafe { NonZeroU8::new_unchecked(3) }
|
||||
}),
|
||||
decimal_digits: Some(NonZeroU8::new(3).expect("3 > 0")),
|
||||
})
|
||||
.encode();
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[toolchain]
|
||||
# Keep synced with `Dockerfile`
|
||||
channel = "1.85.0"
|
||||
channel = "1.86.0"
|
||||
components = ["rust-src", "rust-analyzer", "clippy"]
|
||||
targets = ["x86_64-unknown-linux-musl"]
|
||||
|
||||
Reference in New Issue
Block a user