forked from kornelski/lodepng-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
50 lines (43 loc) · 1.83 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[package]
authors = ["Kornel <kornel@geekhood.net>", "Lode Vandevenne <lvandeve@gmail.com>"]
categories = ["multimedia::encoding", "multimedia::images"]
description = "Reading and writing PNG files without system dependencies. Pure Rust port of LodePNG."
documentation = "https://docs.rs/lodepng"
homepage = "https://lib.rs/crates/lodepng"
include = ["src/**/*", "COPYRIGHT", "README.md", "Cargo.toml"]
keywords = ["PNG","lodepng","encoder","decoder"]
license = "Zlib"
name = "lodepng"
readme = "README.md"
repository = "https://github.com/kornelski/lodepng-rust.git"
version = "3.10.6"
edition = "2021"
rust-version = "1.71"
[dependencies]
libc = { version = "0.2.126", optional = true }
rgb = { version = "0.8.50", features = ["bytemuck"], default-features = false }
flate2 = { version = "1.0.24", default-features = false }
crc32fast = "1.3.2"
fallible_collections = { version = "0.4.5", features = ["rust_1_57"], optional = true }
[workspace]
members = ["lodepng_unittest"]
[profile.test]
opt-level = 2
[profile.dev]
opt-level = 2
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]
[features]
default = ["rust_backend", "c_ffi"]
# Compress using pure-Rust miniz_oxide, which isn't the fastest
rust_backend = ["flate2/rust_backend"]
# Compress using cloudflare-zlib, which is faster, but written in C
cfzlib = ["flate2/cloudflare_zlib"]
# Compress using zlib-ng, which is faster, but written in C and requires `cmake`
ngzlib = ["flate2/zlib-ng-compat"]
# Export C API for use in C applications. It's mostly ABI-compatible with the original C lodepng.
c_ffi = ["dep:libc"]
# Deprecated. Implements `From<fallible_collections::TryReserveError> for Error`
# Don't use this feature, don't rely on `fallible_collections`.
deprecated_back_compat_error_type = ["dep:fallible_collections"]