32 Commits

Author SHA1 Message Date
a33a5e80a4 Update to syn 2
Some checks failed
Build / build (push) Has been cancelled
2025-10-30 16:41:02 +01:00
ce1fb4a11e Add support for optional enum field
Some checks failed
Build / build (push) Has been cancelled
2025-10-30 16:03:58 +01:00
Yuki Sireneva
477254f27c silence another warning
warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
       --> src/linux/entry.rs:223:10
        |
    223 | #[derive(Deserialize_enum)]
        |          ^^^^^^^^^^^^^^^^
        |          |
        |          `__Command_Bind_Struct` is not local
        |          `Deserialize` is not local
        |          move the `impl` block outside of this constant `_` and up 2 bodies
        |
        = note: the derive macro `Deserialize_enum` defines the non-local `impl`, and may need to be changed
        = note: the derive macro `Deserialize_enum` may come from an old version of the `miniserde_enum` crate, try updating your dependency with `cargo update -p miniserde_enum`
        = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
        = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
        = note: `#[warn(non_local_definitions)]` on by default
        = note: this warning originates in the derive macro `Deserialize_enum` (in Nightly builds, run with -Z macro-backtrace for more info)
2024-10-22 11:13:31 +03:00
Yuki Sireneva
f14a34b94e Formatting, clippy, new rust, more correct reexports, TESTS PASSING on nightly (Mar 27) 2024-04-03 18:04:51 +03:00
etwyniel
21418730e1 Disable clippy lint for large function, bump patch number 2019-11-19 15:20:08 +01:00
etwyniel
8aa9a5cc2d Formatting 2019-11-19 11:25:26 +01:00
etwyniel
d78ff70caa Add src/bin/ to .gitignore
Files in src/bin/ are used for testing with
`cargo expand` and do not need to be committed.
2019-11-19 11:08:34 +01:00
etwyniel
ed8f841729 Factor out ident and name retrieval 2019-11-19 11:07:01 +01:00
etwyniel
d85b6a796b Add build badge 2019-11-18 16:41:23 +01:00
Aymeric Beringer
4a4ed4ea5c Add workflow 2019-11-18 16:29:33 +01:00
etwyniel
48352c270f Update README, add section on limitations, update TODO 2019-11-18 16:28:01 +01:00
etwyniel
85ef6579f3 Bump version number 2019-11-18 16:23:35 +01:00
etwyniel
479533ad17 Add support for deserializing internally tagged enums 2019-11-18 16:23:21 +01:00
etwyniel
48f995f2ac Add link to documentation in Cargo.toml 2019-11-18 15:07:40 +01:00
etwyniel
2944efd3f9 Bump version number 2019-11-18 14:58:30 +01:00
etwyniel
263cd46234 Add support for deserializing adjacently tagged enums 2019-11-18 14:57:36 +01:00
etwyniel
8dd5d9f959 Fix license field in Cargo.toml 2019-11-18 13:01:37 +01:00
etwyniel
87cadcd9db Fix readme field in Cargo.toml 2019-11-18 13:00:07 +01:00
etwyniel
7462190028 Add description, license, readme, repository and keywords keys to Cargo.toml 2019-11-18 12:59:20 +01:00
etwyniel
c3c7792bca Add license information 2019-11-18 11:41:49 +01:00
etwyniel
307d0239c6 Fix header sizes in README 2019-11-18 11:37:02 +01:00
etwyniel
7a0a9722d0 Add readme 2019-11-18 11:35:04 +01:00
etwyniel
5990bba62c Formatting 2019-11-18 11:15:14 +01:00
etwyniel
b7993b516e Full support for deserializing externally tagged enums 2019-11-18 11:04:11 +01:00
etwyniel
6db11c37cb Support deserializing tuple variants with a single field in externally tagged enums 2019-11-18 10:36:31 +01:00
etwyniel
81567f15e8 Add partial deserialization support
Only externally tagged, only named fields or unit variants
2019-11-18 09:38:59 +01:00
etwyniel
63d972ab12 Remove extra-traits from syn dependency 2019-10-21 11:18:14 +02:00
Aymeric Beringer
7052150535 Support generic enums, tuple variants with one field are not serialized as Seq 2019-10-15 13:09:04 +02:00
Aymeric Beringer
c0a1b3a242 Refactor tuple variant serialization, support tuple variant in externally tagged enum 2019-10-14 17:13:26 +02:00
Aymeric Beringer
6ddeac2461 Implement serialization for untagged unnamed variants 2019-10-11 17:04:06 +02:00
Aymeric Beringer
a9c218d131 Remove unused type Variant 2019-10-11 16:34:23 +02:00
Aymeric Beringer
353d0c07d4 Implement serialization for unit variants and named variants 2019-10-11 16:32:09 +02:00