-
Notifications
You must be signed in to change notification settings - Fork 707
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add |ring::c| to define C types, removing libc crate dependency.
The libc crate is full of badness and we need almost none of it. We don't want to use the C standard library at all from Rust and we definitely don't want to force users of *ring* to have to link to the C standard library. (The C code inherited from BoringSSL depends on the C standard library, but we've removed a lot of those dependencies and we'll continue to do so.) Also the definition of |libc::size_t| as an alias for a type that isn't implicitly convertable to |usize| was forcing us to do a lot of unnecessary casting, which is inherently danger-prone and thus dangerous.
- Loading branch information
1 parent
a4dd459
commit 377f611
Showing
11 changed files
with
268 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.