Raise MSRV to 1.64 and delegate `ctypes` type aliases to `core::ffi`
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 72/100
- Tipo di issue
- Refactoring
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- rust
- Ambito
- operating-systems
Direzione di ricerca
Inizia con l’impostazione rust-version in Cargo.toml e il modulo degli alias di tipo ctypes in src/lib.rs. Controlla i tipi core::ffi di Rust 1.64 e le condizioni esistenti per i target, quindi esegui la suite di test esistente. Il lavoro è completato quando l’MSRV è 1.64, gli alias delegano a core::ffi e i target supportati mantengono il comportamento attuale.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Just sharing this observation despite the benefit likely being minimal. Delegating the C FFI type aliases to those from core::ffi by bumping rust-version to 1.64 seems desirable?
It'd have avoided the need for PRs like this in March 2026 for example (which is merged but still unreleased).
Details
Presently linux-raw-sys supports Rust 1.63 (Aug 2022) as a minimum (in May 2023 rust-version was bumped from 1.48 to benefit from improved const fn support):
In Nov 2021 linux-raw-sys switched from a cty crate dep to vendoring it's own ctypes type alias module, which presently has required a bit of maintenance support over the past year for Tier 3 targets with ensuring the correct c_char (m68k, hexagon (as a follow-up to restoring support), MIPS R6).
Since Rust 1.64 (Sep 2022) the equivalent FFI C types have been available via the core crate (the target list is managed by a cfg_select! macro, and prior to that the cfg_if! crate macro).
Although this comment says core was not available for a m68k target? (unless they used rustc_codegen_gcc) but as core is already used elsewhere in this crate I assume that wouldn't equate to a regression 😅
- Lingua principale
- Rust
- Stelle
- 71
- Fork
- 63
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di sunfishcode/linux-raw-sys
-
add OPENAT2_REGULAR Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
sunfishcode/linux-raw-sys#194 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
sunfishcode/linux-raw-sys#192 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
sunfishcode/linux-raw-sys#189 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
sunfishcode/linux-raw-sys#179 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 50/100
sunfishcode/linux-raw-sys#173 · 17 commenti ·
Tutte le issue di sunfishcode/linux-raw-sys
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
gitbutlerapp/gitbutler#15998 · 1 commento ·
-
bug triage:deciding
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100