Commit graph

466 commits

Author SHA1 Message Date
Simon Ask Ulsnes
5ef7d51da0 Use char rather than raw bytes where possible 2024-02-04 14:18:13 +01:00
Simon Ask Ulsnes
4d90f9a429 Unallow snake case warning 2024-02-04 14:06:15 +01:00
Simon Ask Ulsnes
1dac7033b3 Change macro-like emitter functions to methods 2024-02-04 14:05:44 +01:00
Simon Ask Ulsnes
33381d5545 Change macro-like scanner internals to methods 2024-02-04 13:58:22 +01:00
Simon Ask Ulsnes
6c699d8489 Clean up scanner "macros" 2024-02-04 13:49:58 +01:00
Simon Ask Ulsnes
98d55dc4e0 Remove redundant unread field 2024-02-04 13:44:15 +01:00
Simon Ask Ulsnes
c8a7bec2ae Change macro-like scanner functions into regular methods 2024-02-04 13:34:21 +01:00
Simon Ask Ulsnes
882327162b Remove unnecessary impl Default for Event 2024-02-04 12:15:56 +01:00
Simon Ask Ulsnes
873ccb3760 Remove unnecessary impl Default for Token 2024-02-04 12:08:29 +01:00
Simon Ask Ulsnes
c83b6835d8 Convert yaml_emitter_flush() to member function 2024-02-04 11:55:10 +01:00
Simon Ask Ulsnes
fec143f0c0 Implement Iterator for Parser and Scanner 2024-02-04 11:51:08 +01:00
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