| { | ||
| "git": { | ||
| "sha1": "1cd75a169d7148e27acd270bc3665f359de9df57" | ||
| "sha1": "9652c787730e58515ce7b44fcafd2430ab424628" | ||
| }, | ||
| "path_in_vcs": "" | ||
| } |
+13
-13
@@ -60,3 +60,3 @@ # This file is automatically @generated by Cargo. | ||
| dependencies = [ | ||
| "async-lock 3.2.0", | ||
| "async-lock 3.3.0", | ||
| "async-task", | ||
@@ -78,3 +78,3 @@ "concurrent-queue", | ||
| "async-io 2.2.2", | ||
| "async-lock 3.2.0", | ||
| "async-lock 3.3.0", | ||
| "blocking", | ||
@@ -111,3 +111,3 @@ "futures-lite 2.2.0", | ||
| dependencies = [ | ||
| "async-lock 3.2.0", | ||
| "async-lock 3.3.0", | ||
| "cfg-if", | ||
@@ -136,5 +136,5 @@ "concurrent-queue", | ||
| name = "async-lock" | ||
| version = "3.2.0" | ||
| version = "3.3.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "7125e42787d53db9dd54261812ef17e937c95a51e4d291373b670342fa44310c" | ||
| checksum = "d034b430882f8381900d3fe6f0aaa3ad94f2cb4ac519b429692a1bc2dda4ae7b" | ||
| dependencies = [ | ||
@@ -204,3 +204,3 @@ "event-listener 4.0.3", | ||
| name = "base64" | ||
| version = "0.21.6" | ||
| version = "0.21.7" | ||
| dependencies = [ | ||
@@ -235,3 +235,3 @@ "clap", | ||
| "async-channel 2.1.1", | ||
| "async-lock 3.2.0", | ||
| "async-lock 3.3.0", | ||
| "async-task", | ||
@@ -582,5 +582,5 @@ "fastrand 2.0.1", | ||
| name = "getrandom" | ||
| version = "0.2.11" | ||
| version = "0.2.12" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "fe9006bed769170c11f845cf00c7c1e9092aeb3f268e007c3e760ac68008070f" | ||
| checksum = "190092ea657667030ac6a35e305e62fc4dd69fd98ac98631e5d3a2b1575a12b5" | ||
| dependencies = [ | ||
@@ -1183,5 +1183,5 @@ "cfg-if", | ||
| name = "termcolor" | ||
| version = "1.4.0" | ||
| version = "1.4.1" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "ff1bc3d3f05aff0403e8ac0d92ced918ec05b666a43f83297ccef5bea8a3d449" | ||
| checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" | ||
| dependencies = [ | ||
@@ -1231,5 +1231,5 @@ "winapi-util", | ||
| name = "value-bag" | ||
| version = "1.5.0" | ||
| version = "1.6.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "dd65ff0de3304a013e6dfeb7324e1cd389a8a000e582e3c9c9fae82ced778e26" | ||
| checksum = "7cdbaf5e132e593e9fc1de6a15bbec912395b11fb9719e061cf64f804524c503" | ||
@@ -1236,0 +1236,0 @@ [[package]] |
+1
-1
@@ -16,3 +16,3 @@ # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO | ||
| name = "base64" | ||
| version = "0.21.6" | ||
| version = "0.21.7" | ||
| authors = [ | ||
@@ -19,0 +19,0 @@ "Alice Maz <alice@alicemaz.com>", |
+4
-0
@@ -0,1 +1,5 @@ | ||
| # 0.21.7 | ||
| - Support getting an alphabet's contents as a str via `Alphabet::as_str()` | ||
| # 0.21.6 | ||
@@ -2,0 +6,0 @@ |
+12
-0
@@ -126,2 +126,7 @@ //! Provides [Alphabet] and constants for alphabets commonly used in the wild. | ||
| } | ||
| /// Create a `&str` from the symbols in the `Alphabet` | ||
| pub fn as_str(&self) -> &str { | ||
| core::str::from_utf8(&self.symbols).unwrap() | ||
| } | ||
| } | ||
@@ -274,2 +279,9 @@ | ||
| } | ||
| #[test] | ||
| fn str_same_as_input() { | ||
| let alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; | ||
| let a = Alphabet::try_from(alphabet).unwrap(); | ||
| assert_eq!(alphabet, a.as_str()) | ||
| } | ||
| } |
Sorry, the diff of this file is not supported yet