Compare commits

...
2 Commits
Author SHA1 Message Date
pantonshire 2e3e5d8496 version bump 2023-11-18 16:13:42 +00:00
pantonshire 6f9f6075e0 documentation for internal CowCappedString 2023-11-18 16:11:31 +00:00
6 changed files with 9 additions and 9 deletions

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ Add to your Cargo.toml file:
```toml ```toml
[dependencies] [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 Derive macros and [`serde`](https://crates.io/crates/serde) support are enabled by default. They can be disabled by
+2 -2
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "enumscribe" name = "enumscribe"
version = "0.3.1" version = "0.4.0"
authors = ["Tom Panton <pantonshire@gmail.com>"] authors = ["Tom Panton <pantonshire@gmail.com>"]
edition = "2018" edition = "2018"
license = "MIT" license = "MIT"
@@ -11,7 +11,7 @@ categories = ["encoding"]
keywords = ["enum", "derive", "serde"] keywords = ["enum", "derive", "serde"]
[dependencies] [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 } serde = { version = "1.0", default-features = false, optional = true }
[dev-dependencies] [dev-dependencies]
+1 -1
View File
@@ -11,7 +11,7 @@ Add to your Cargo.toml file:
```toml ```toml
[dependencies] [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 Derive macros and [`serde`](https://crates.io/crates/serde) support are enabled by default. They can be disabled by
+3 -3
View File
@@ -3,11 +3,11 @@
use core::{str, ops::Deref, borrow::Borrow, fmt}; 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> { pub enum CowCappedString<'a, const N: usize> {
/// TODO: documentation /// A reference to string data stored elsewhere.
Borrowed(&'a str), Borrowed(&'a str),
/// TODO: documentation /// The string data is stored inline.
Owned(CappedString<N>), Owned(CappedString<N>),
} }
+1 -1
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "enumscribe_derive" name = "enumscribe_derive"
version = "0.3.1" version = "0.4.0"
authors = ["Tom Panton <pantonshire@gmail.com>"] authors = ["Tom Panton <pantonshire@gmail.com>"]
edition = "2018" edition = "2018"
license = "MIT" license = "MIT"
+1 -1
View File
@@ -11,7 +11,7 @@ Add to your Cargo.toml file:
```toml ```toml
[dependencies] [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 Derive macros and [`serde`](https://crates.io/crates/serde) support are enabled by default. They can be disabled by