Commit graph

455 commits

Author SHA1 Message Date
Simon Ask Ulsnes
a171e0013a Convert scanning functions to methods on Scanner 2024-02-04 11:42:48 +01:00
Simon Ask Ulsnes
6d83c59100 Separate Scanner and Parser 2024-02-04 11:22:11 +01:00
Simon Ask Ulsnes
15b3e412f5 Fix doc links 2024-02-04 11:09:18 +01:00
Simon Ask Ulsnes
1df2e6f998 Move yaml_emitter_dump to Document 2024-02-04 11:04:25 +01:00
Simon Ask Ulsnes
eae9fe8a4c Move yaml_parser_load to Document::load 2024-02-04 10:55:28 +01:00
Simon Ask Ulsnes
dc69732a25 Fix lints 2024-02-04 10:40:24 +01:00
Simon Ask Ulsnes
3e3a844aa5 Convert yaml_emitter_ functions to member functions 2024-02-04 10:38:40 +01:00
Simon Ask Ulsnes
a840beafb0 Convert yaml_parser_ functions to member functions 2024-02-04 10:22:38 +01:00
Simon Ask Ulsnes
949c8082cb Add note 2024-02-04 10:08:08 +01:00
Simon Ask Ulsnes
0d9097344a Allow non-mutable access to Document nodes 2024-02-04 10:05:48 +01:00
Simon Ask Ulsnes
5b9dcd7a15 Rustify module organization 2024-02-04 10:03:36 +01:00
Simon Ask Ulsnes
1ffb036601 Stylistic: Prefer let-else 2024-02-04 09:43:06 +01:00
Simon Ask Ulsnes
7071ddd276 Get rid of some unnecessary clones 2024-02-04 09:38:59 +01:00
Simon Ask Ulsnes
d94eff3861 Stylistic changes 2024-02-04 09:27:40 +01:00
Simon Ask Ulsnes
784b874007 Fix intra-doc links 2024-02-04 09:11:40 +01:00
Simon Ask Ulsnes
d64879c3f1 Update README, doc links 2024-02-04 09:02:16 +01:00
Simon Ask Ulsnes
2bff17e0b8 Minor reorganization 2024-02-04 09:01:56 +01:00
Simon Ask Ulsnes
6f7b184678 Fix license 2024-02-04 09:00:36 +01:00
Simon Ask Ulsnes
5ebedb67ec More lints 2024-02-03 10:39:04 +01:00
Simon Ask Ulsnes
c3d1aba783 Update fuzz testers 2024-02-03 10:35:21 +01:00
Simon Ask Ulsnes
b865e1459b Lint: &mut Vec to &[] 2024-02-03 10:24:14 +01:00
Simon Ask Ulsnes
1e8de81f66 Lint 2024-02-03 10:21:09 +01:00
Simon Ask Ulsnes
f46efd6a29 CI: Update required Rust versions 2024-02-03 09:56:37 +01:00
Simon Ask Ulsnes
ae66ae2f6c Lint: clippy --fix 2024-02-03 09:54:38 +01:00
Simon Ask Ulsnes
9cc9513c2b Remove unneeded #[allow]s 2024-02-03 09:49:20 +01:00
Simon Ask Ulsnes
6fcb075289 Fixup const doc comments 2024-02-03 09:46:56 +01:00
Simon Ask Ulsnes
b65896d04b Rustify constants 2024-02-03 09:45:44 +01:00
Simon Ask Ulsnes
b394312eda Rustify enums 2024-02-03 09:43:57 +01:00
Simon Ask Ulsnes
4f8f997d8f Rustify type names 2024-02-03 09:28:18 +01:00
Simon Ask Ulsnes
a35a2cd14b Adjust some documentation 2024-02-03 09:23:56 +01:00
Simon Ask Ulsnes
59c8812335 Remove #[repr] attributes 2024-02-03 09:16:46 +01:00
Simon Ask Ulsnes
3886250b24 Simplify dumper 2024-02-03 09:11:58 +01:00
Simon Ask Ulsnes
1cdd80506f Impl Clone for yaml_document_t 2024-02-03 09:11:24 +01:00
Simon Ask Ulsnes
2529a96869 delete -> reset 2024-02-03 09:02:02 +01:00
Simon Ask Ulsnes
ad81646702 Restore public tag constants from C libyaml 2024-02-03 08:59:37 +01:00
Simon Ask Ulsnes
2af7352f28 write() -> write_all() 2024-02-03 08:24:17 +01:00
Simon Ask Ulsnes
5bf087e0a3 Parser: Replace internal buffering with std::io::BufRead 2024-02-03 08:19:12 +01:00
Simon Ask Ulsnes
e28400ee5f Remove ForceAdd/ForceMul 2024-02-02 11:18:25 +01:00
Simon Ask Ulsnes
176c0edfdb Remove unused PointerExt trait 2024-02-02 11:15:45 +01:00
Simon Ask Ulsnes
01246c21c8 Replace __assert macro with standard assert!() 2024-02-02 11:15:05 +01:00
Simon Ask Ulsnes
11c9cd60c9 Replace libc integer types with Rust integer types 2024-02-02 11:10:04 +01:00
Simon Ask Ulsnes
ac00cee574 Remove vestigial input/output structs 2024-02-02 10:56:44 +01:00
Simon Ask Ulsnes
666034cf5c Change out-parameter to return values 2024-02-02 10:55:16 +01:00
Simon Ask Ulsnes
8a080a1ce7 Lint; Remove Result from infallible functions 2024-02-02 10:38:33 +01:00
Simon Ask Ulsnes
cac3d2d788 Lint 2024-02-02 10:16:36 +01:00
Simon Ask Ulsnes
cccbbfc163 Replace yaml_emitter_t::default() with yaml_emitter_new() 2024-02-02 10:13:15 +01:00
Simon Ask Ulsnes
9238cd0412 Replace yaml_emitter_initialize with safe alternative 2024-02-02 10:10:24 +01:00
Simon Ask Ulsnes
4a863e1f78 Replace yaml_parser_initialize with safe alternative 2024-02-02 10:05:15 +01:00
Simon Ask Ulsnes
47351cfe7c Remove unsafe from parser functions 2024-02-02 09:58:01 +01:00
Simon Ask Ulsnes
cd9bccecee Remove yaml_error_type_t 2024-02-02 09:54:07 +01:00