Registry / utility / data-encoding

data-encoding

JSON →
library2.11.0rscratesunverified

Efficient and customizable data-encoding functions like base64, base32, and hex.

# Cargo.toml [dependencies] data-encoding = "2.11.0"
INSTALL
IMPORT
SIG · DATA-ENCODING
D
data-encoding
utilityrustv2.11.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BASE64
use data_encoding::BASE64;

Encoding and decoding a string with base64.

use data_encoding::BASE64; let encoded = BASE64.encode(b"hello world"); println!("Encoded: {}", encoded); let decoded = BASE64.decode(encoded.as_bytes()).unwrap(); assert_eq!(decoded, b"hello world");
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.11.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
0 hits · last 30 days

No traffic data recorded yet.

Resources
data-encoding — cargo add data-encoding · libregistry