Simon Ask Ulsnes
8f7ec75545
Parser: Get rid of yaml_document_t pointer
2024-01-31 17:34:38 +01:00
Simon Ask Ulsnes
4630800a8a
Get rid of some unsafe paranoia
2024-01-31 17:23:45 +01:00
Simon Ask Ulsnes
a31d33f9cb
Parser: Replace yaml_buffer_t with VecDeque
2024-01-31 17:15:49 +01:00
Simon Ask Ulsnes
a4d7fcfbe8
Emitter: Replace yaml_buffer_t with String/Vec
2024-01-31 09:41:24 +01:00
Simon Ask Ulsnes
9f681e6306
Remove more c2rust artifacts (gotos)
2024-01-31 09:02:16 +01:00
Simon Ask Ulsnes
edf4843cae
Replace yaml_string_t with String
2024-01-31 08:46:26 +01:00
Simon Ask Ulsnes
94cab62a41
Forensics
2024-01-29 08:36:46 +01:00
Simon Ask Ulsnes
3272af1405
Minor cleanup
2024-01-29 08:13:07 +01:00
Simon Ask Ulsnes
73fd13a85c
Replace yaml_stack_t with Vec
2024-01-29 07:31:05 +01:00
Simon Ask Ulsnes
6861a5e703
Replace yaml_queue_t with VecDeque
2024-01-27 12:06:03 +01:00
Simon Ask Ulsnes
4a917d95ee
Remove unsafe from some trivially safe functions
2024-01-27 10:48:21 +01:00
Simon Ask Ulsnes
2c9973bfae
Remove Copy/Clone from all types that own memory
2024-01-27 10:36:48 +01:00
Simon Ask Ulsnes
e76c59278e
Remove single-field unions
2024-01-27 10:23:09 +01:00
Simon Ask Ulsnes
82363fd251
Tagged union to Rust enum (yaml_node_t)
2024-01-27 10:18:18 +01:00
Simon Ask Ulsnes
293870fedf
Tagged union to Rust enum (yaml_token_t)
2024-01-27 09:38:51 +01:00
Simon Ask Ulsnes
07e301ee40
Cleanup
2024-01-27 08:33:45 +01:00
Simon Ask Ulsnes
53bd305816
Use Rust strings for errors (yaml_emitter_t)
2024-01-27 08:30:49 +01:00
Simon Ask Ulsnes
31c20201a1
Tagged union to Rust enum (yaml_event_t)
2024-01-27 08:21:49 +01:00
Simon Ask Ulsnes
ee5db0ebc6
Remove unnecessary cast
2024-01-26 16:15:08 +01:00
Simon Ask Ulsnes
e3421d5371
Use Rust strings for errors
2024-01-26 16:02:27 +01:00
Simon Ask Ulsnes
f26c0c28ae
Make yaml_string_t always owning
2024-01-26 15:36:17 +01:00
Simon Ask Ulsnes
b96790c782
Scanner cleanup
2024-01-26 15:18:45 +01:00
Simon Ask Ulsnes
2050a6d555
Remove Clone/Copy from structs that own data
2024-01-26 14:56:43 +01:00
Simon Ask Ulsnes
461fb4904d
Remove several more c2rust artifacts
2024-01-26 14:45:00 +01:00
Simon Ask Ulsnes
d9ceee9d89
Remove many c2rust artifacts
2024-01-26 13:24:40 +01:00
Simon Ask Ulsnes
7e8bd8c8b7
*mut yaml_string_t to &mut
2024-01-26 12:45:18 +01:00
Simon Ask Ulsnes
0c4a6d8bbf
Convert more *mut yaml_parser_t to &mut
2024-01-26 12:36:43 +01:00
Simon Ask Ulsnes
b5f0d6042a
Cleanup
2024-01-26 12:32:51 +01:00
Simon Ask Ulsnes
cc3400d980
Mutable references for yaml_emitter_t
2024-01-26 12:26:33 +01:00
Simon Ask Ulsnes
c277ca22c0
Mutable references for yaml_parser_t
2024-01-26 12:09:13 +01:00
Simon Ask Ulsnes
20f4c66fbf
Replace many calls to memset()
2024-01-26 11:50:53 +01:00
Simon Ask Ulsnes
8e7adf6206
Rustify error propagation (try operator "?")
2024-01-26 11:28:50 +01:00
Simon Ask Ulsnes
dc639b92b5
Replace Success with Result<(), ()>
2024-01-26 11:04:48 +01:00
Simon Ask Ulsnes
fbdff989b5
Initial fork
2024-01-26 10:56:28 +01:00
David Tolnay
63131f5306
Explicitly disable unsafe_op_in_unsafe_fn lint
...
This is allow-by-default for now in 2021 edition, but will become
warn-by-default in 2024 edition. The lint is not going to provide value
in this crate so we'll plan to keep it turned off even after adopting
2024 edition.
2023-12-20 16:09:01 -08:00
David Tolnay
61f3ab82b2
Release 0.2.10
2023-12-14 14:27:21 -08:00
David Tolnay
d90d7abc4e
Clean up some redundant casts
2023-12-14 14:27:00 -08:00
David Tolnay
7755559145
Merge pull request #24 from dtolnay/mallocalign
...
Fix insufficient alignment of malloc's return value on 32-bit
2023-12-14 14:26:52 -08:00
David Tolnay
b8a0863c1b
Fix insufficient alignment of malloc's return value on 32-bit
2023-12-14 14:23:05 -08:00
David Tolnay
389373f0d9
Merge pull request #23 from dtolnay/malloc
...
Check arithmetic in malloc computations
2023-12-14 14:14:03 -08:00
David Tolnay
fd41ef659d
Check arithmetic in malloc computations
2023-12-14 14:09:29 -08:00
David Tolnay
9e054fbfee
Merge pull request #22 from dtolnay/force
...
Check more arithmetic operations
2023-12-14 10:48:49 -08:00
David Tolnay
5b40a9e0ed
Check more arithmetic operations
2023-12-14 10:44:51 -08:00
David Tolnay
97a4332d8d
Delete cast to long followed by size_t
...
We are using 64 bits for both size_t and long.
2023-12-14 10:26:05 -08:00
David Tolnay
e5f4bbd0f0
Clean up duplicated casting to size_t
2023-12-14 10:22:59 -08:00
David Tolnay
902f100327
Fix unused imports
...
warning: unused imports: `i8 as c_schar`, `u16 as c_ushort`
--> src/lib.rs:50:52
|
50 | i32 as c_int, i64 as c_long, i8 as c_char, i8 as c_schar, u16 as c_ushort, u32 as c_uint,
| ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: unused imports: `yaml_break_t::*`, `yaml_emitter_state_t::*`, `yaml_error_type_t::*`, `yaml_mapping_style_t::*`, `yaml_parser_state_t::*`, `yaml_scalar_style_t::*`, `yaml_sequence_style_t::*`, `yaml_token_type_t::*`
--> src/yaml.rs:6:5
|
6 | yaml_break_t::*, yaml_emitter_state_t::*, yaml_encoding_t::*, yaml_error_type_t::*,
| ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^
7 | yaml_event_type_t::*, yaml_mapping_style_t::*, yaml_node_type_t::*, yaml_parser_state_t::*,
| ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^
8 | yaml_scalar_style_t::*, yaml_sequence_style_t::*, yaml_token_type_t::*,
| ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^
2023-10-24 22:14:30 -07:00
David Tolnay
4c5353846b
Remove 'remember to update' reminder from Cargo.toml
2023-10-17 21:05:31 -07:00
David Tolnay
eed18e0254
Test docs.rs documentation build in CI
2023-09-24 10:53:44 -07:00
David Tolnay
7bcf33fcfb
Update actions/checkout@v3 -> v4
2023-09-04 22:35:02 -07:00
David Tolnay
fcf075572b
Drop braces from fuzz closure
...
https://github.com/rust-fuzz/libfuzzer/pull/105
2023-08-10 19:21:01 -07:00