Support for serde::Serialize

This commit is contained in:
Pantonshire committed 2021-05-20 18:56:54 +01:00
1 parent 867b09a1fe
commit 46dac98882
6 files changed
+120 -14

No files matched your search

+4
View File
@@ -9,3 +9,7 @@ description = "Procedural macros for converting between enums and strings"
[dependencies]
enumscribe_derive = { version = "0.1.0", path = "../enumscribe_derive" }
[features]
default = ["serde"]
serde = ["enumscribe_derive/serde"]
+1 -1
View File
@@ -6,8 +6,8 @@
//! | `ignore` used? | `other` used? | Conversion to string | Conversion from string |
//! |----------------|---------------|----------------------|------------------------|
//! | No | No | [ScribeStaticStr] | [TryUnscribe] |
//! | Yes | No | [TryScribeStaticStr] | [TryUnscribe] |
//! | No | Yes | [ScribeCowStr] | [Unscribe] |
//! | Yes | No | [TryScribeStaticStr] | [TryUnscribe] |
//! | Yes | Yes | [TryScribeCowStr] | [Unscribe] |
//!
//! There are also [ScribeString] and [TryScribeString] traits which can be used in the same