Compare commits
2
Commits
a3137d86c2
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2e3e5d8496 | ||
|
|
6f9f6075e0 |
No files matched your search
@@ -11,7 +11,7 @@ Add to your Cargo.toml file:
|
||||
|
||||
```toml
|
||||
[dependencies]
|
||||
enumscribe = "0.3"
|
||||
enumscribe = "0.4"
|
||||
```
|
||||
|
||||
Derive macros and [`serde`](https://crates.io/crates/serde) support are enabled by default. They can be disabled by
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "enumscribe"
|
||||
version = "0.3.1"
|
||||
version = "0.4.0"
|
||||
authors = ["Tom Panton <pantonshire@gmail.com>"]
|
||||
edition = "2018"
|
||||
license = "MIT"
|
||||
@@ -11,7 +11,7 @@ categories = ["encoding"]
|
||||
keywords = ["enum", "derive", "serde"]
|
||||
|
||||
[dependencies]
|
||||
enumscribe_derive = { version = "0.3.1", path = "../enumscribe_derive", default-features = false, optional = true }
|
||||
enumscribe_derive = { version = "0.4.0", path = "../enumscribe_derive", default-features = false, optional = true }
|
||||
serde = { version = "1.0", default-features = false, optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
|
||||
@@ -11,7 +11,7 @@ Add to your Cargo.toml file:
|
||||
|
||||
```toml
|
||||
[dependencies]
|
||||
enumscribe = "0.3"
|
||||
enumscribe = "0.4"
|
||||
```
|
||||
|
||||
Derive macros and [`serde`](https://crates.io/crates/serde) support are enabled by default. They can be disabled by
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
use core::{str, ops::Deref, borrow::Borrow, fmt};
|
||||
|
||||
/// TODO: documentation
|
||||
/// A string type which is either borrowed or stores up to `N` bytes of string data inline.
|
||||
pub enum CowCappedString<'a, const N: usize> {
|
||||
/// TODO: documentation
|
||||
/// A reference to string data stored elsewhere.
|
||||
Borrowed(&'a str),
|
||||
/// TODO: documentation
|
||||
/// The string data is stored inline.
|
||||
Owned(CappedString<N>),
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "enumscribe_derive"
|
||||
version = "0.3.1"
|
||||
version = "0.4.0"
|
||||
authors = ["Tom Panton <pantonshire@gmail.com>"]
|
||||
edition = "2018"
|
||||
license = "MIT"
|
||||
|
||||
@@ -11,7 +11,7 @@ Add to your Cargo.toml file:
|
||||
|
||||
```toml
|
||||
[dependencies]
|
||||
enumscribe = "0.3"
|
||||
enumscribe = "0.4"
|
||||
```
|
||||
|
||||
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