Commit Graph

222 Commits

Author SHA1 Message Date
Dirkjan Ochtman 18396f4aa5 Bump version numbers for new release 2023-03-22 13:10:20 +01:00
Dirkjan Ochtman 27b39b6125 Refer to README from Cargo metadata 2023-03-22 13:10:20 +01:00
Dirkjan Ochtman 083cd567a1 Upgrade to syn 2 2023-03-21 15:28:10 +01:00
Dirkjan Ochtman ff00c96ac9 Bump version to 0.3 for semver-incompatible change 2023-03-03 13:17:41 +01:00
Dirkjan Ochtman 5f6091528f Implement ToXml for str instead of &str 2023-03-03 13:17:41 +01:00
Dirkjan Ochtman 3cfd2e4706 Initial version of README 2023-03-02 13:50:08 +01:00
Dirkjan Ochtman a47e90038b Bump version to 0.2 2023-02-28 17:29:59 +01:00
Dirkjan Ochtman 5058699765 Give inline accumulator type the same visibility as the target 2023-02-28 17:12:31 +01:00
Dirkjan Ochtman f51e6ae063 Fix use of lifetimes in fields of transparent structs 2023-02-28 17:12:31 +01:00
Dirkjan Ochtman a5795b9b2d Add support for Cow<'_, [T]> 2023-02-28 17:06:49 +01:00
Dirkjan Ochtman 2e7a48a212 Add basic Cargo metadata 2023-02-27 10:53:34 +01:00
Dirkjan Ochtman 8cbb29b388 Avoid usage of bool::then_some() 2023-02-27 10:35:06 +01:00
Dirkjan Ochtman 8a958342d6 Check MSRV in CI 2023-02-27 10:35:06 +01:00
Dirkjan Ochtman 8c618ada79 Ignore attributes when looking for scalar values 2023-02-24 17:33:33 +01:00
Dirkjan Ochtman 8c2964b318 Improve support for raw identifier field names 2023-02-24 17:33:33 +01:00
Dirkjan Ochtman 6c4cd8bd55 Add test for incorrectly nested elements with transparent 2023-02-24 17:33:33 +01:00
Dirkjan Ochtman 786f035f76 Implement transparent mode for deserialization 2023-02-24 17:33:33 +01:00
Dirkjan Ochtman c983e10a88 Provide field context to Deserializer implementations
Also reorders deserialize() arguments.
2023-02-24 17:33:33 +01:00
Dirkjan Ochtman 7a2e6ac735 Use associated accumulator type to deserialize into 2023-02-24 17:33:33 +01:00
Dirkjan Ochtman be7902925e Implement transparent mode for serialization 2023-02-24 17:33:33 +01:00
Dirkjan Ochtman b276ee173f Replace decode() function with an explicit state machine 2023-02-23 13:14:27 +01:00
Dirkjan Ochtman 93d7c3d572 Add benchmarks for string decoding 2023-02-23 13:14:27 +01:00
Dirkjan Ochtman 1e5525c9cf Check character boundaries before comparing string slices 2023-02-23 13:14:27 +01:00
Dirkjan Ochtman 7e05d35ba6 Fix clippy lints 2023-02-21 20:35:39 +01:00
Dirkjan Ochtman 60898cdf16 Improve error message on unexpected root element 2023-02-21 20:35:39 +01:00
Dirkjan Ochtman 88c52e98d2 Don't error on ignored (direct) scalar nodes 2022-12-13 16:52:53 +01:00
Dirkjan Ochtman aa45a74bb4 Improve error for unexpected nodes 2022-12-13 16:52:53 +01:00
Dirkjan Ochtman e186684824 Skip None attributes 2022-12-13 16:52:53 +01:00
Dirkjan Ochtman 958790be0b Rename option-vec test to option 2022-12-13 16:52:53 +01:00
Dirkjan Ochtman 5eac914cb7 Add public helper functions for custom implementations 2022-12-13 16:52:53 +01:00
Dirkjan Ochtman 682f42aacc Better errors for missing values 2022-12-13 16:52:53 +01:00
Dirkjan Ochtman a1d7d826f8 Stop eagerly checking for missing values 2022-12-13 16:52:53 +01:00
Dirkjan Ochtman 99dab24219 Add impls for chrono::NaiveDate 2022-12-13 16:52:53 +01:00
Dirkjan Ochtman 0bfd37a9d7 Fully qualify calls to FromXml trait methods 2022-12-13 16:52:53 +01:00
Dirkjan Ochtman f4fb07fca6 Improve error reporting, allow 0/1 as bool values 2022-12-13 16:52:53 +01:00
Dirkjan Ochtman fbe513ab5a Add ToXml impl for slices 2022-12-13 16:52:53 +01:00
Dirkjan Ochtman 4ad194fc1f Switch from wrapped enums to forward enums 2022-12-13 16:52:53 +01:00
Dirkjan Ochtman 0a323ba302 Simplify FromXml::KIND const 2022-12-13 16:52:53 +01:00
Dirkjan Ochtman 4eafa193bd Remove unused ToXml::KIND const 2022-12-13 16:52:53 +01:00
Dirkjan Ochtman 4768d092ca Apply clippy suggestions 2022-12-13 16:52:53 +01:00
Dirkjan Ochtman 6b3fa93f69 Implement matches() directly on FromXml 2022-12-13 16:52:53 +01:00
Dirkjan Ochtman 9b2cd415af Remove unused const 2022-12-13 16:52:53 +01:00
Dirkjan Ochtman a2aadde276 Attributes don't inherit the default namespace 2022-12-13 16:52:53 +01:00
Dirkjan Ochtman f8b4364acd Add support for direct fields 2022-12-13 16:52:53 +01:00
Dirkjan Ochtman d2605977aa Add some extra borrowing tests 2022-12-13 16:52:53 +01:00
Dirkjan Ochtman 20f73b7e01 Add support for deserialize_with and borrow 2022-12-13 16:52:53 +01:00
Dirkjan Ochtman aab73952a1 Improve error reporting some more 2022-12-13 16:52:53 +01:00
Dirkjan Ochtman d5d9c60c53 Add implementations for IpAddr 2022-12-13 16:52:53 +01:00
Dirkjan Ochtman 5bd58698d7 Simplify logic for serializing prefixes 2022-12-13 16:52:53 +01:00
Dirkjan Ochtman da536d072f Lookup prefixes from local scope 2022-12-13 16:52:53 +01:00