-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Cargo.toml
51 lines (41 loc) · 1.37 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
51
[package]
name = "imagine"
description = "A crate to help with images."
repository = "https://github.com/Lokathor/imagine"
version = "0.5.1"
edition = "2021"
license = "Zlib OR Apache-2.0 OR MIT"
categories = ["encoding", "no-std"]
exclude = ["/tests"]
autoexamples = false
[features]
default = ["alloc", "miniz_oxide", "png", "bmp", "netpbm"]
alloc = []
png = ["png_filters", "bitfrob"] # Portable Network Graphics
bmp = ["bitfrob", "pack1"] # Windows Bitmap
netpbm = [] # Covers all the Netpbm files: pbm, pgm, ppm, pnm, pam
[dependencies]
pixel_formats = "0.1.5"
bytemuck = { version = "1.13.1", features = ["derive", "min_const_generics"] }
png_filters = { version = "0.1", optional = true }
bitfrob = { version = "1.3.0", features= ["track_caller"], optional = true }
miniz_oxide = { version = "0.7.1", default-features = false, optional = true }
pack1 = { version = "0.1.1", features = ["bytemuck"], optional = true }
#wide = { version = "0.7.8", default-features = false, optional = true }
[dev-dependencies]
getrandom = "0.2.7"
walkdir = "2.3.2"
beryllium = "0.12.3"
ezgl = "0.2.0"
[package.metadata.docs.rs]
rustdoc-args = ["--cfg","docs_rs"]
all-features = true
[[example]]
name = "png_chunk_print"
required-features = ["png"]
[[example]]
name = "bmp_print"
required-features = ["bmp"]
[[example]]
name = "viewer"
required-features = ["alloc", "png", "miniz_oxide", "bmp", "netpbm"]