Support for serde::Serialize
This commit is contained in:
1 parent
867b09a1fe
commit
46dac98882
6 files changed
+120
-14
No files matched your search
@@ -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"]
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user