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

Replace libc dependency with core::ffi::* #377

Open
2 tasks
cpu opened this issue Dec 11, 2023 · 0 comments
Open
2 tasks

Replace libc dependency with core::ffi::* #377

cpu opened this issue Dec 11, 2023 · 0 comments

Comments

@cpu
Copy link
Member

cpu commented Dec 11, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant