Registry / utility / data-url

data-url

JSON →
library0.3.2rscratesunverified

Processing of data: URLs according to WHATWG’s Fetch Standard.

# Cargo.toml [dependencies] data-url = "0.3.2"
INSTALL
IMPORT
SIG · DATA-URL
D
data-url
utilityrustv0.3.2
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.

DataUrl
use data_url::DataUrl;

Parses a data URL and decodes its content.

use data_url::DataUrl; fn main() -> Result<(), data_url::DataUrlError> { let url = DataUrl::process("data:text/plain,Hello%20World")?; let (body, _fragment) = url.decode_to_vec()?; println!("{}", String::from_utf8_lossy(&body)); Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
data-url — cargo add data-url · libregistry