Skip to content

Commit

Permalink
deps: require at least libc 0.2.160
Browse files Browse the repository at this point in the history
mozilla#29 added the following `libc` import:

``` rust
use libc::{
    freeifaddrs, getifaddrs, getpid, if_data, if_indextoname, ifaddrs, in6_addr, in_addr,
    sockaddr_in, sockaddr_in6, sockaddr_storage, AF_UNSPEC, PF_ROUTE, RTAX_MAX,
};
```

`RTAX_MAX` was added in `libc` `0.2.160`:

https://github.com/rust-lang/libc/releases/tag/0.2.160

More specifically rust-lang/libc#3714.

This commit makes sure the above new requirement is encoded in the `mtu`
`Cargo.toml` `libc` dependency declaration.

See CI failure without discussed in mozilla#51 (comment).
  • Loading branch information
mxinden committed Nov 29, 2024
1 parent c7cd35a commit 81afc43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ maintenance = { status = "actively-developed", branch = "main" }

[dependencies]
# Don't increase beyond what Firefox is currently using: https://searchfox.org/mozilla-central/source/Cargo.lock
libc = { version = "0.2", default-features = false }
libc = { version = "0.2.160", default-features = false }
static_assertions = { version = "1.1", default-features = false }

[target.'cfg(windows)'.dependencies]
Expand Down

0 comments on commit 81afc43

Please sign in to comment.