Skip to content
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

[0.2] Backports #4314

Merged
merged 23 commits into from
Mar 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
0987973
move AF_XDP structs and constants to linux/mod.rs
arctic-alpaca Nov 27, 2024
df22514
feat: add pw_passwd field to passwd struct in NuttX
no1wudi Dec 26, 2024
80adb61
fix: update tm_zone and d_name fields to use c_char type in NuttX
no1wudi Dec 26, 2024
89d2bbf
chore: add labels to FIXMEs
lvllvl Jan 6, 2025
8a77755
Remove pthread_set_name_np from NuttX
no1wudi Jan 24, 2025
9ee1fc9
chore: add labels to FIXMEs
lvllvl Feb 7, 2025
0149964
linux: deprecate obsolete packet filter interfaces.
devnexen Feb 14, 2025
7d17f16
chore: add labels to FIXMEs
lvllvl Jan 6, 2025
5d9a22f
gnu b32: Copy struct stat to mips and use it
snogge Feb 17, 2025
d67c994
gnu b32: Remove mips cfg conditionals in struct stat
snogge Feb 17, 2025
25245d2
chore: add labels to FIXMEs
lvllvl Jan 8, 2025
24430c7
Make all `major`, `minor`, `makedev` into `const fn`.
igankevich Dec 18, 2024
903dc23
chore: add labels to each FIXME
lvllvl Feb 24, 2025
1d231c3
bsd: add devname(3)
tobhe Feb 25, 2025
df5cd47
Use sa_sigaction instead the union for AIX.
xingxue-ibm Jan 23, 2025
867fc9f
solarish: define `IP_BOUND_IF` and `IPV6_BOUND_IF`
hawkw Feb 26, 2025
44f1f92
adding if_nameindex/if_freenameindex support for Android.
devnexen Jan 19, 2025
2aabbf0
closefrom: add NetBSD, OpenBSD, DragonflyBSD
tobhe Mar 2, 2025
8410db8
Add SysV semaphore constants
bertptrs Feb 25, 2025
fd2157c
linux/mips: Correct values for SI_TIMER, SI_MESGQ, SI_ASYNCIO
snogge Feb 28, 2025
06e704b
Change the range syntax that is giving `ctest` problems
tgross35 Mar 10, 2025
f05012e
Remove tests for the `i586-pc-windows-msvc` target
tgross35 Mar 10, 2025
e7dcb97
Remove the `check_cfg` job
tgross35 Mar 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -204,19 +204,6 @@ jobs:
export PATH=$HOME/.rust_solaris/bin:$PATH
./ci/run.sh ${{ matrix.target }}

check_cfg:
name: "Check #[cfg]s"
runs-on: ubuntu-24.04
env:
TOOLCHAIN: nightly
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Setup Rust toolchain
run: ./ci/install-rust.sh
- name: Build with check-cfg
run: LIBC_CHECK_CFG=1 cargo build -Z unstable-options -Z check-cfg

# One job that "summarizes" the success state of this pipeline. This can then be added to branch
# protection, rather than having to add each job separately.
success:
Expand Down
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ targets = [
"armv7r-none-eabihf",
# FIXME(hexagon): excluded due to duplicate symbol errors
# "hexagon-unknown-linux-musl",
"i586-pc-windows-msvc",
"i586-unknown-linux-gnu",
"i586-unknown-linux-musl",
"i686-linux-android",
Expand Down
10 changes: 3 additions & 7 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ fn main() {
let (rustc_minor_ver, _is_nightly) = rustc_minor_nightly();
let rustc_dep_of_std = env::var("CARGO_FEATURE_RUSTC_DEP_OF_STD").is_ok();
let libc_ci = env::var("LIBC_CI").is_ok();
let libc_check_cfg = env::var("LIBC_CHECK_CFG").is_ok() || rustc_minor_ver >= 80;

// The ABI of libc used by std is backward compatible with FreeBSD 12.
// The ABI of libc from crates.io is backward compatible with FreeBSD 11.
Expand Down Expand Up @@ -100,12 +99,9 @@ fn main() {
// Set unconditionally when ctest is not being invoked.
set_cfg("libc_const_extern_fn");

// check-cfg is a nightly cargo/rustc feature to warn when unknown cfgs are used across the
// codebase. libc can configure it if the appropriate environment variable is passed. Since
// rust-lang/rust enforces it, this is useful when using a custom libc fork there.
//
// https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#check-cfg
if libc_check_cfg {
// Since Rust 1.80, configuration that isn't recognized by default needs to be provided to
// avoid warnings.
if rustc_minor_ver >= 80 {
for cfg in ALLOWED_CFGS {
if rustc_minor_ver >= 75 {
println!("cargo:rustc-check-cfg=cfg({})", cfg);
Expand Down
1 change: 0 additions & 1 deletion ci/verify-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ armebv7r-none-eabihf \
armv7-wrs-vxworks-eabihf \
armv7r-none-eabi \
armv7r-none-eabihf \
i586-pc-windows-msvc \
i686-pc-windows-msvc \
i686-unknown-haiku \
i686-unknown-netbsd \
Expand Down
Loading
Loading