File tree Expand file tree Collapse file tree 5 files changed +21
-3
lines changed Expand file tree Collapse file tree 5 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All changes in this project will be noted in this file.
4
4
5
+ ## 0.7.4
6
+
7
+ - Additions:
8
+ - FromSkyhashBytes impls for ` Vec<u8> ` and ` RawString `
9
+ - Added ` RawString::into_inner ` so that the ` Vec<u8> ` can be obtained from the ` RawString `
10
+ - Maintenance:
11
+ - Upgraded deps
12
+
5
13
## 0.7.3
6
14
7
15
Upgraded dependencies
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ license = "Apache-2.0"
9
9
name = " skytable"
10
10
readme = " README.md"
11
11
repository = " https://github.com/skytable/client-rust"
12
- version = " 0.7.3 "
12
+ version = " 0.7.4 "
13
13
14
14
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
15
15
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ cargo new skyapp
35
35
First add this to your ` Cargo.toml ` file:
36
36
37
37
``` toml
38
- skytable = " 0.7.2 "
38
+ skytable = " 0.7.4 "
39
39
```
40
40
41
41
Now open up your ` src/main.rs ` file and establish a connection to the server while also adding some
Original file line number Diff line number Diff line change 37
37
//! First add this to your `Cargo.toml` file:
38
38
//!
39
39
//! ```toml
40
- //! skytable = "0.7.2 "
40
+ //! skytable = "0.7.4 "
41
41
//! ```
42
42
//!
43
43
//! Now open up your `src/main.rs` file and establish a connection to the server while also adding some
Original file line number Diff line number Diff line change @@ -356,6 +356,10 @@ impl RawString {
356
356
pub fn new ( ) -> Self {
357
357
Self ( Vec :: new ( ) )
358
358
}
359
+ /// Returns the [`Vec<u8>`] stored inside the [`RawString`]
360
+ pub fn into_inner ( self ) -> Vec < u8 > {
361
+ self . 0
362
+ }
359
363
}
360
364
361
365
impl Deref for RawString {
@@ -531,6 +535,12 @@ impl FromSkyhashBytes for Vec<u8> {
531
535
}
532
536
}
533
537
538
+ impl FromSkyhashBytes for RawString {
539
+ fn from_element ( element : Element ) -> SkyResult < Self > {
540
+ <_ as FromSkyhashBytes >:: from_element ( element) . map ( RawString )
541
+ }
542
+ }
543
+
534
544
impl FromSkyhashBytes for Vec < Vec < u8 > > {
535
545
fn from_element ( e : Element ) -> SkyResult < Self > {
536
546
let e = match e {
You can’t perform that action at this time.
0 commit comments