rustls-ffi
rustls-ffi copied to clipboard
Replace libc dependency with core::ffi::*
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.