Skip to content

Commit

Permalink
chore(deps): Bump MSRV to 1.70.0 (vectordotdev#18394)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
jszwedko authored Aug 28, 2023
1 parent 4359c9a commit fd21b19
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ publish = false
default-run = "vector"
autobenches = false # our benchmarks are not runnable on their own either way
# Minimum supported rust version
rust-version = "1.66.0"
rust-version = "1.70.0"

[[bin]]
name = "vector"
Expand Down
2 changes: 1 addition & 1 deletion src/sinks/prometheus/exporter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ impl Default for PrometheusExporterConfig {
}
}

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

SocketAddr::new(IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)), 9598)
Expand Down
2 changes: 1 addition & 1 deletion src/sinks/statsd/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ impl Mode {
}
}

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

Expand Down
2 changes: 1 addition & 1 deletion src/sinks/util/service/net/udp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl UdpConnector {
}
}

fn find_bind_address(remote_addr: &SocketAddr) -> SocketAddr {
const fn find_bind_address(remote_addr: &SocketAddr) -> SocketAddr {
match remote_addr {
SocketAddr::V4(_) => SocketAddr::new(IpAddr::V4(Ipv4Addr::UNSPECIFIED), 0),
SocketAddr::V6(_) => SocketAddr::new(IpAddr::V6(Ipv6Addr::UNSPECIFIED), 0),
Expand Down
2 changes: 1 addition & 1 deletion src/sinks/util/udp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ async fn udp_send(socket: &mut UdpSocket, buf: &[u8]) -> tokio::io::Result<()> {
Ok(())
}

fn find_bind_address(remote_addr: &SocketAddr) -> SocketAddr {
const fn find_bind_address(remote_addr: &SocketAddr) -> SocketAddr {
match remote_addr {
SocketAddr::V4(_) => SocketAddr::new(IpAddr::V4(Ipv4Addr::UNSPECIFIED), 0),
SocketAddr::V6(_) => SocketAddr::new(IpAddr::V6(Ipv6Addr::UNSPECIFIED), 0),
Expand Down

0 comments on commit fd21b19

Please sign in to comment.