webc-10.0.0 has been yanked.
Visit the last successful build:
webc-9.2.0
A library for reading and writing WEBC files.
The [Container
] provides an abstraction over the various WEBC versions
this crate can handle. As such, it tries to cater to the lowest common
denominator and favors portability over performance or power.
use ;
let bytes: & = b"\0webc...";
let container = from_bytes_and_version?;
println!;
println!;
for in container.atoms
for in container.volumes
# Ok::
In general, errors that occur during lazy operations won't be accessible to the user.
Version-Specific Fallbacks
If more flexibility is required, consider using [crate::detect()
] and
instantiating a compatible parser directly.
use ;
#
use ;
#
use OwnedReader;
let bytes: & = b"...";
match detect