Commit graph

112 commits

Author SHA1 Message Date
David Tolnay
368d07a929
Reduce visibility of internal APIs 2022-07-08 12:54:45 -07:00
David Tolnay
73da3e1b64
Include argument names in handler_t signatures 2022-07-08 12:54:45 -07:00
David Tolnay
345533125d
Use rust enum to implement libyaml's enums 2022-07-08 12:54:44 -07:00
David Tolnay
97997e23e3
Remove APIs not in yaml.h from crate root 2022-07-08 12:54:44 -07:00
David Tolnay
13fb66f124
Add parser fuzz target 2022-07-08 12:54:44 -07:00
David Tolnay
e97238de1a
Remove externs from public API 2022-07-08 12:54:44 -07:00
David Tolnay
b216891aad
Remove libc from public API 2022-07-08 12:54:44 -07:00
David Tolnay
b33a3f29dd
Rename type_0 field to type_ 2022-07-08 12:54:44 -07:00
David Tolnay
a67689123f
Inline some unnamed types 2022-07-08 12:54:44 -07:00
David Tolnay
caad63746c
Deal with clippy lints 2022-07-08 12:54:44 -07:00
David Tolnay
b41753a13d
Remove unneeded parens 2022-07-08 12:54:44 -07:00
David Tolnay
cc30826669
Unexport __assert macro 2022-07-08 12:54:44 -07:00
David Tolnay
144f9a1659
Remove integer type aliases from crate root 2022-07-08 12:54:44 -07:00
David Tolnay
a99a868416
Fix leak on error in test bins 2022-07-08 12:54:43 -07:00
David Tolnay
eef6bb4b5f
More uninitialized local variables 2022-07-08 12:54:43 -07:00
David Tolnay
c6c368f5a3
Fix constructed name of unnamed types 2022-07-08 12:54:43 -07:00
David Tolnay
d1a5075546
Make test suite runnable in miri 2022-07-08 12:54:43 -07:00
David Tolnay
a6de143358
Make parser test read input from io::Read 2022-07-08 12:54:43 -07:00
David Tolnay
75ef3415bd
Move argument parsing of bins to safe main code 2022-07-08 12:54:43 -07:00
David Tolnay
c1b8c6e6b7
Make unconditionally no_std 2022-07-08 12:54:43 -07:00
David Tolnay
0c9952c9a1
Drop CStr dependency 2022-07-08 12:54:43 -07:00
David Tolnay
17872c0728
Make a fmt::Write impl for pointer writes 2022-07-08 12:54:43 -07:00
David Tolnay
eb854c860b
Pass through zero sized mallocs 2022-07-08 12:54:43 -07:00
David Tolnay
43b0129bc7
Reduce alloc repetition 2022-07-08 12:54:42 -07:00
David Tolnay
a0d51c55f6
Eliminate redundant integer casts 2022-07-08 12:54:42 -07:00
David Tolnay
d28ea5887b
Resolve identity_op lints 2022-07-08 12:54:42 -07:00
David Tolnay
7f726a96a4
Resolve unnecessary_cast lints 2022-07-08 12:54:42 -07:00
David Tolnay
501b058987
Make C primitives reexports instead of type aliases 2022-07-08 12:54:42 -07:00
David Tolnay
24d4a7671a
Switch to panic-in-panic for C assertion failures 2022-07-08 12:54:42 -07:00
David Tolnay
4b6e1ab5cb
Update imports that don't need to come from std 2022-07-08 12:54:42 -07:00
David Tolnay
eceedff226
Inline c_offset implementation 2022-07-08 12:54:42 -07:00
David Tolnay
6a9ed3ee68
Eliminate integer-to-pointer cast in offset implementation 2022-07-08 12:54:42 -07:00
David Tolnay
9951855ff3
Avoid mutable borrow reservation conflicts 2022-07-08 12:54:42 -07:00
David Tolnay
9587d26afe
Uninitialize more local variables 2022-07-08 12:54:42 -07:00
David Tolnay
d05ef52665
Import individual items from mem and ptr 2022-07-08 12:54:41 -07:00
David Tolnay
4c6b230ddf
Clean up redundant local variable types 2022-07-08 12:54:41 -07:00
David Tolnay
3710f11929
Flatten unneeded block expressions 2022-07-08 12:54:41 -07:00
David Tolnay
0d1349aeec
Remove loader_ctx from public API 2022-07-08 12:54:41 -07:00
David Tolnay
cdc0fb3956
Delete _e and _t suffixed types 2022-07-08 12:54:41 -07:00
David Tolnay
bf92f088e0
Expand all wildcard imports 2022-07-08 12:54:41 -07:00
David Tolnay
abb2be1726
Remove unnamed struct and union types from public API 2022-07-08 12:54:41 -07:00
David Tolnay
fb56e956c1
Export all contents at crate root 2022-07-08 12:54:41 -07:00
David Tolnay
3b26dd0b96
Switch to specific integer widths 2022-07-08 12:54:41 -07:00
David Tolnay
a99695f989
Switch to rust ABI 2022-07-08 12:54:41 -07:00
David Tolnay
f936d8a977
Mangle all function names 2022-07-08 12:54:40 -07:00
David Tolnay
f0ff16aa40
Import std::mem 2022-07-08 12:54:40 -07:00
David Tolnay
d9b5024557
Mark all public structs non_exhaustive 2022-07-08 12:54:40 -07:00
David Tolnay
4e959d205a
Delete empty else blocks 2022-07-08 12:54:40 -07:00
David Tolnay
8c8c5ebe70
Resolve short_circuit_statement lints 2022-07-08 12:54:40 -07:00
David Tolnay
a9501b4e9d
Resolve unnecessary_operation lints 2022-07-08 12:54:40 -07:00