version bumps
This commit is contained in:
1 parent
c48f46ea80
commit
c5efe98a6c
5 files changed
+10
-14
No files matched your search
@@ -11,7 +11,7 @@ Add to your Cargo.toml file:
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
[dependencies]
|
[dependencies]
|
||||||
enumscribe = "0.2"
|
enumscribe = "0.3"
|
||||||
```
|
```
|
||||||
|
|
||||||
Derive macros and [`serde`](https://crates.io/crates/serde) support are enabled by default. They can be disabled by
|
Derive macros and [`serde`](https://crates.io/crates/serde) support are enabled by default. They can be disabled by
|
||||||
@@ -190,7 +190,3 @@ Here is a table to show which traits you should derive, depending on your enum:
|
|||||||
There are also `ScribeString` and `TryScribeString` traits which can be used in the same situations as `ScribeCowStr` and `TryScribeCowStr`, respectively.
|
There are also `ScribeString` and `TryScribeString` traits which can be used in the same situations as `ScribeCowStr` and `TryScribeCowStr`, respectively.
|
||||||
These traits produce a `String` rather than a `Cow<'static, str>`, so they will always perform an allocation. Therefore, you should prefer the
|
These traits produce a `String` rather than a `Cow<'static, str>`, so they will always perform an allocation. Therefore, you should prefer the
|
||||||
`ScribeCowStr` traits over the `ScribeString` traits, unless you *really* don't want to use a `Cow` for whatever reason.
|
`ScribeCowStr` traits over the `ScribeString` traits, unless you *really* don't want to use a `Cow` for whatever reason.
|
||||||
|
|
||||||
## Plans for the future
|
|
||||||
- [ ] Converting to / from types other than strings
|
|
||||||
- [ ] Unix-permissions-style encoding for collections of enum variants
|
|
||||||
@@ -1,17 +1,17 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "enumscribe"
|
name = "enumscribe"
|
||||||
version = "0.2.1"
|
version = "0.3.0"
|
||||||
authors = ["Tom Panton <pantonshire@gmail.com>"]
|
authors = ["Tom Panton <pantonshire@gmail.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
repository = "https://github.com/Pantonshire/enumscribe"
|
repository = "https://github.com/pantonshire/enumscribe"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
description = "Derive macros for converting between enums and strings"
|
description = "Derive macros for converting between enums and strings"
|
||||||
categories = ["encoding"]
|
categories = ["encoding"]
|
||||||
keywords = ["enum", "derive", "serde"]
|
keywords = ["enum", "derive", "serde"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
enumscribe_derive = { version = "0.2.1", path = "../enumscribe_derive", default-features = false, optional = true }
|
enumscribe_derive = { version = "0.3.0", path = "../enumscribe_derive", default-features = false, optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# enumscribe
|
# enumscribe
|
||||||
|
|
||||||
[](https://travis-ci.com/Pantonshire/enumscribe)
|
[](https://crates.io/crates/enumscribe)
|
||||||
|
|
||||||
This crate provides derive macros for converting between simple enums and strings. It also includes derive macros for
|
This crate provides derive macros for converting between simple enums and strings. It also includes derive macros for
|
||||||
[`serde::Serialize`](https://docs.serde.rs/serde/trait.Serialize.html) and
|
[`serde::Serialize`](https://docs.serde.rs/serde/trait.Serialize.html) and
|
||||||
@@ -11,7 +11,7 @@ Add to your Cargo.toml file:
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
[dependencies]
|
[dependencies]
|
||||||
enumscribe = "0.2"
|
enumscribe = "0.3"
|
||||||
```
|
```
|
||||||
|
|
||||||
Derive macros and [`serde`](https://crates.io/crates/serde) support are enabled by default. They can be disabled by
|
Derive macros and [`serde`](https://crates.io/crates/serde) support are enabled by default. They can be disabled by
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "enumscribe_derive"
|
name = "enumscribe_derive"
|
||||||
version = "0.2.1"
|
version = "0.3.0"
|
||||||
authors = ["Tom Panton <pantonshire@gmail.com>"]
|
authors = ["Tom Panton <pantonshire@gmail.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
repository = "https://github.com/Pantonshire/enumscribe"
|
repository = "https://github.com/pantonshire/enumscribe"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
description = "Derive macros for converting between enums and strings"
|
description = "Derive macros for converting between enums and strings"
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# enumscribe
|
# enumscribe
|
||||||
|
|
||||||
[](https://travis-ci.com/Pantonshire/enumscribe)
|
[](https://crates.io/crates/enumscribe)
|
||||||
|
|
||||||
This crate provides derive macros for converting between simple enums and strings. It also includes derive macros for
|
This crate provides derive macros for converting between simple enums and strings. It also includes derive macros for
|
||||||
[`serde::Serialize`](https://docs.serde.rs/serde/trait.Serialize.html) and
|
[`serde::Serialize`](https://docs.serde.rs/serde/trait.Serialize.html) and
|
||||||
@@ -11,7 +11,7 @@ Add to your Cargo.toml file:
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
[dependencies]
|
[dependencies]
|
||||||
enumscribe = "0.2"
|
enumscribe = "0.3"
|
||||||
```
|
```
|
||||||
|
|
||||||
Derive macros and [`serde`](https://crates.io/crates/serde) support are enabled by default. They can be disabled by
|
Derive macros and [`serde`](https://crates.io/crates/serde) support are enabled by default. They can be disabled by
|
||||||
|
|||||||
Reference in new issue
Block a user