Replace libc dependency with core::ffi::*
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- rust
- Domain
- backend-api-design
Research direction
The issue names no files or tests; start by reviewing rustls-ffi's current libc imports and the stabilization status of core::ffi::c_size_t. Check how platform-gated EINVAL and EIO constants would be defined, and confirm libc can be removed without changing the FFI types or error behavior.
Written by the indexing model from the issue text.
Description
Presently rustls-ffi takes a dependency on the libc crate for the following imports:
size_tc_voidc_charc_uintc_intEINVALEIO
It looks like the core::ffi module has many of these same defines, and could potentially let us drop an external dependency.
Blockers:
-
core::ffi::c_size_tis unstable (upstream tracking issue). -
EINVALandEIOaren't present; I think we would need our own platform-gated constants for these.
I propose we wait for c_size_t to stablize and then replace libc with core::ffi::* and manually defined EINVAL/EIO.
- Dominant language
- Rust
- Stars
- 171
- Forks
- 45
- Avg merge
- 16h 43m
- Merged PRs (30d)
- 18
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rustls/rustls-ffi
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
rustls/rustls-ffi#705 · 5 comments ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
rustls/rustls-ffi#553 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
rustls/rustls-ffi#450 ·
Maintainers usually reply within 1 day
-
Stable ABIOpen
Difficulty 5/5 Over a week Newbie friendliness 25/100
rustls/rustls-ffi#420 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
rustls/rustls-ffi#393 · 1 comment ·
Maintainers usually reply within 1 day
All issues in rustls/rustls-ffi
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Eyevinn/open-live-ingest#36 · 1 comment ·
Maintainers usually reply within 1 day
-
app
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
bug bug jury peripheral:i2s
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
esp-rs/esp-hal#6828 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
ライブラリを追加Openpriority middle
Difficulty 1/5 Under an hour Newbie friendliness 62/100
KATO-Hiro/AtCoderClans#13015 ·
Maintainers usually reply within 1 day