rustls-ffi icon indicating copy to clipboard operation
rustls-ffi copied to clipboard

Replace libc dependency with core::ffi::*

Open cpu opened this issue 2 years ago • 0 comments

Presently rustls-ffi takes a dependency on the libc crate for the following imports:

  • size_t
  • c_void
  • c_char
  • c_uint
  • c_int
  • EINVAL
  • EIO

It looks like the core::ffi module has many of these same defines, and could potentially let us drop an external dependency.

Blockers:

I propose we wait for c_size_t to stablize and then replace libc with core::ffi::* and manually defined EINVAL/EIO.

cpu avatar Dec 11 '23 15:12 cpu