Skip to content

chore: check-in Cargo.lock #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 2, 2024
Merged

chore: check-in Cargo.lock #51

merged 3 commits into from
Dec 2, 2024

Conversation

mxinden
Copy link
Member

@mxinden mxinden commented Nov 29, 2024

See same change in Neqo mozilla/neqo#2208.

Copy link

codecov bot commented Nov 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.42%. Comparing base (c452825) to head (6e2c066).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #51      +/-   ##
==========================================
- Coverage   93.61%   93.42%   -0.20%     
==========================================
  Files           5        5              
  Lines         517      517              
==========================================
- Hits          484      483       -1     
- Misses         33       34       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@larseggert
Copy link
Collaborator

I think libc is too old.

@mxinden
Copy link
Member Author

mxinden commented Nov 29, 2024

Thanks for the hint @larseggert. I will make a change.

Note that mozilla-central is using libc 0.2.158:

https://searchfox.org/mozilla-central/rev/d4235354139ae0da3b15b89943b140b510a74f2f/Cargo.lock#3533-3537

Thus we will need to update libc in mozilla-central before introducing mtu.

mxinden added a commit to mxinden/mtu that referenced this pull request Nov 29, 2024
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).
@mxinden
Copy link
Member Author

mxinden commented Nov 29, 2024

Let's make sure we encode this libc requirement in the mtu Cargo.toml, see #52.

While #52 is blocked on a libc version bump in mozilla-central, I think we can proceed here. I will bump the libc version to v0.2.160 in the Cargo.lock only.

@mxinden mxinden marked this pull request as ready for review December 2, 2024 08:12
@mxinden mxinden enabled auto-merge December 2, 2024 08:37
@larseggert larseggert disabled auto-merge December 2, 2024 08:44
@larseggert larseggert merged commit aa6b20c into mozilla:main Dec 2, 2024
29 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants