Skip to content

Commit fd21b19

Browse files
authored
chore(deps): Bump MSRV to 1.70.0 (vectordotdev#18394)
* chore(deps): Bump MSRV to 1.70.0 We have a couple of dependency updates that require it (clap and rmpv). I'd still like to define an official MSRV support policy for Vector, but in absence of that, I figured I'd bump to not block the dependency updates. The only real downside is users trying to build Vector on systems where they only have access to older versions of Rust; which seems to be fairly rare currently. Signed-off-by: Jesse Szwedko <[email protected]> * clippy Signed-off-by: Jesse Szwedko <[email protected]> --------- Signed-off-by: Jesse Szwedko <[email protected]>
1 parent 4359c9a commit fd21b19

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ publish = false
1111
default-run = "vector"
1212
autobenches = false # our benchmarks are not runnable on their own either way
1313
# Minimum supported rust version
14-
rust-version = "1.66.0"
14+
rust-version = "1.70.0"
1515

1616
[[bin]]
1717
name = "vector"

src/sinks/prometheus/exporter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ impl Default for PrometheusExporterConfig {
167167
}
168168
}
169169

170-
fn default_address() -> SocketAddr {
170+
const fn default_address() -> SocketAddr {
171171
use std::net::{IpAddr, Ipv4Addr};
172172

173173
SocketAddr::new(IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)), 9598)

src/sinks/statsd/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl Mode {
9999
}
100100
}
101101

102-
fn default_address() -> SocketAddr {
102+
const fn default_address() -> SocketAddr {
103103
SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), 8125)
104104
}
105105

src/sinks/util/service/net/udp.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl UdpConnector {
7575
}
7676
}
7777

78-
fn find_bind_address(remote_addr: &SocketAddr) -> SocketAddr {
78+
const fn find_bind_address(remote_addr: &SocketAddr) -> SocketAddr {
7979
match remote_addr {
8080
SocketAddr::V4(_) => SocketAddr::new(IpAddr::V4(Ipv4Addr::UNSPECIFIED), 0),
8181
SocketAddr::V6(_) => SocketAddr::new(IpAddr::V6(Ipv6Addr::UNSPECIFIED), 0),

src/sinks/util/udp.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ async fn udp_send(socket: &mut UdpSocket, buf: &[u8]) -> tokio::io::Result<()> {
248248
Ok(())
249249
}
250250

251-
fn find_bind_address(remote_addr: &SocketAddr) -> SocketAddr {
251+
const fn find_bind_address(remote_addr: &SocketAddr) -> SocketAddr {
252252
match remote_addr {
253253
SocketAddr::V4(_) => SocketAddr::new(IpAddr::V4(Ipv4Addr::UNSPECIFIED), 0),
254254
SocketAddr::V6(_) => SocketAddr::new(IpAddr::V6(Ipv6Addr::UNSPECIFIED), 0),

0 commit comments

Comments
 (0)