Skip to content

Commit 163fc2f

Browse files
committed
Add misc impls, changelog and bump version
1 parent bcad2d4 commit 163fc2f

File tree

5 files changed

+21
-3
lines changed

5 files changed

+21
-3
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
All changes in this project will be noted in this file.
44

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+
513
## 0.7.3
614

715
Upgraded dependencies

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ license = "Apache-2.0"
99
name = "skytable"
1010
readme = "README.md"
1111
repository = "https://github.com/skytable/client-rust"
12-
version = "0.7.3"
12+
version = "0.7.4"
1313

1414
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1515

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ cargo new skyapp
3535
First add this to your `Cargo.toml` file:
3636

3737
```toml
38-
skytable = "0.7.2"
38+
skytable = "0.7.4"
3939
```
4040

4141
Now open up your `src/main.rs` file and establish a connection to the server while also adding some

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
//! First add this to your `Cargo.toml` file:
3838
//!
3939
//! ```toml
40-
//! skytable = "0.7.2"
40+
//! skytable = "0.7.4"
4141
//! ```
4242
//!
4343
//! Now open up your `src/main.rs` file and establish a connection to the server while also adding some

src/types.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,10 @@ impl RawString {
356356
pub fn new() -> Self {
357357
Self(Vec::new())
358358
}
359+
/// Returns the [`Vec<u8>`] stored inside the [`RawString`]
360+
pub fn into_inner(self) -> Vec<u8> {
361+
self.0
362+
}
359363
}
360364

361365
impl Deref for RawString {
@@ -531,6 +535,12 @@ impl FromSkyhashBytes for Vec<u8> {
531535
}
532536
}
533537

538+
impl FromSkyhashBytes for RawString {
539+
fn from_element(element: Element) -> SkyResult<Self> {
540+
<_ as FromSkyhashBytes>::from_element(element).map(RawString)
541+
}
542+
}
543+
534544
impl FromSkyhashBytes for Vec<Vec<u8>> {
535545
fn from_element(e: Element) -> SkyResult<Self> {
536546
let e = match e {

0 commit comments

Comments
 (0)