denyhosts/clamav/libclamav_rust/.cargo/vendor/jpeg-decoder
2023-01-14 18:28:39 +08:00
..
benches 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
examples 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
src 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
tests 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
.cargo-checksum.json 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
appveyor.yml 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
Cargo.lock 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
Cargo.toml 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
CHANGELOG.md 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
LICENSE-APACHE 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
LICENSE-MIT 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
README.md 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
rust-toolchain 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00

jpeg-decoder

Rust CI AppVeyor Build Status Crates.io

A Rust library for decoding JPEGs.

Documentation

Example

Cargo.toml:

[dependencies]
jpeg-decoder = "0.2"

main.rs:

extern crate jpeg_decoder as jpeg;

use std::fs::File;
use std::io::BufReader;

fn main() {
    let file = File::open("hello_world.jpg").expect("failed to open file");
    let mut decoder = jpeg::Decoder::new(BufReader::new(file));
    let pixels = decoder.decode().expect("failed to decode image");
    let metadata = decoder.info().unwrap();
}

Requirements

This crate compiles with rust >= 1.48. Minimum Supported Rust Version:

  • All releases 0.1.* compile with rust >= 1.36.
  • The releases 0.2.* may bump Rust Version requirements (TBD).