Skip to content

chore(dependencies): remove libc crate from dependencies#3377

Merged
tottoto merged 1 commit into
hyperium:masterfrom
tottoto:remove-libc
Nov 17, 2024
Merged

chore(dependencies): remove libc crate from dependencies#3377
tottoto merged 1 commit into
hyperium:masterfrom
tottoto:remove-libc

Conversation

@tottoto

@tottoto tottoto commented Oct 29, 2023

Copy link
Copy Markdown
Contributor

hyper uses libc in ffi feature for the C language's type aliases. As hyper's ffi feature is an unstable feature, hyper could use these types via std::ffi which require Rust 1.64, except for c_size_t which is a nightly only API. As libc::size_t and core::ffi::c_size_t are both defined as usize, this type might be able to be defined as type alias in hyper until it stabilizes.

@kkocdko kkocdko left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to see the deps strip.

@tottoto tottoto merged commit 65026b2 into hyperium:master Nov 17, 2024
@tottoto tottoto deleted the remove-libc branch November 17, 2024 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants