Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/novacrazy/blob-rs
Blob serialization/deserialization utilities in Rust
https://github.com/novacrazy/blob-rs
base64 blob rust
Last synced: 3 months ago
JSON representation
Blob serialization/deserialization utilities in Rust
- Host: GitHub
- URL: https://github.com/novacrazy/blob-rs
- Owner: novacrazy
- Created: 2017-02-04T09:03:56.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T19:26:49.000Z (over 3 years ago)
- Last Synced: 2024-08-10T04:14:38.718Z (5 months ago)
- Topics: base64, blob, rust
- Language: Rust
- Homepage: https://docs.rs/blob
- Size: 10.7 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
blob
====This crate provides a dedicated `Blob` structure for use in storing,
encoding and decoding to/from base-64, with support for type-level encoding
configurations suitable for url-safe base-64.When serializing, it will encode the binary data as base-64, and when deserializing it
can either read and decode a base-64 encoded string or a raw sequence of bytes.Example using `FromStr::from_str`:
```rust
extern crate blob;use std::str::FromStr;
use blob::Blob;
fn main() {
let my_blob: Blob = Blob::from_str("AQIDBAU=").unwrap();assert_eq!(my_blob, [1, 2, 3, 4, 5]);
}
```