| 1 |
[package] |
| 2 |
name = "exr" |
| 3 |
description = "Read and write OpenEXR files without any unsafe code" |
| 4 |
keywords = ["exr", "openexr", "file", "binary", "io"] |
| 5 |
categories = ["encoding", "filesystem", "graphics", "multimedia"] |
| 6 |
|
| 7 |
version = "1.74.0" |
| 8 |
edition = "2018" |
| 9 |
authors = ["johannesvollmer <[email protected]>"] |
| 10 |
|
| 11 |
repository = "https://github.com/johannesvollmer/exrs" |
| 12 |
readme = "README.md" |
| 13 |
license = "BSD-3-Clause" |
| 14 |
exclude = [ "specification/*", "specification/**", "tests/images/*", "tests/images/**" ] |
| 15 |
rust-version = "1.61.0" |
| 16 |
|
| 17 |
[badges] |
| 18 |
maintenance = { status = "actively-developed" } |
| 19 |
|
| 20 |
[lib] |
| 21 |
path = "src/lib.rs" |
| 22 |
test = true |
| 23 |
doctest = true |
| 24 |
bench = true |
| 25 |
doc = true |
| 26 |
plugin = false |
| 27 |
proc-macro = false |
| 28 |
|
| 29 |
[dependencies] |
| 30 |
lebe = "^0.5.2" # generic binary serialization |
| 31 |
half = "2.1.0" # 16 bit float pixel data type |
| 32 |
bit_field = "^0.10.1" # exr file version bit flags |
| 33 |
miniz_oxide = "^0.8.0" # zip compression for pxr24 |
| 34 |
smallvec = "^1.7.0" # make cache-friendly allocations TODO profile if smallvec is really an improvement! |
| 35 |
rayon-core = { version = "^1.11.0", optional = true } # threading for parallel compression |
| 36 |
zune-inflate = { version = "^0.2.3", default-features = false, features = ["zlib"] } # zip decompression, faster than miniz_oxide |
| 37 |
|
| 38 |
[dev-dependencies] |
| 39 |
image = { version = "0.25.2", default-features = false, features = ["png"] } # used to convert one exr to some pngs |
| 40 |
|
| 41 |
bencher = "0.1.5" |
| 42 |
walkdir = "2.3.2" # automatically test things for all files in a directory |
| 43 |
rand = "0.8.5" # used for fuzz testing |
| 44 |
rayon = "1.5.3" # run tests for many files in parallel |
| 45 |
|
| 46 |
[features] |
| 47 |
default = ["rayon"] |
| 48 |
|
| 49 |
# rayon is used for parallel compression |
| 50 |
rayon = ["dep:rayon-core"] |
| 51 |
|
| 52 |
[[example]] |
| 53 |
name = "7_write_raw_blocks" |
| 54 |
required-features = ["rayon"] |
| 55 |
|
| 56 |
[[example]] |
| 57 |
name = "8_read_raw_blocks" |
| 58 |
required-features = ["rayon"] |
| 59 |
|
| 60 |
[[bench]] |
| 61 |
name = "read" |
| 62 |
harness = false |
| 63 |
required-features = ["rayon"] |
| 64 |
|
| 65 |
[[bench]] |
| 66 |
name = "profiling" |
| 67 |
harness = false |
| 68 |
required-features = ["rayon"] |
| 69 |
|
| 70 |
[[bench]] |
| 71 |
name = "write" |
| 72 |
harness = false |
| 73 |
required-features = ["rayon"] |
| 74 |
|
| 75 |
[[bench]] |
| 76 |
name = "pixel_format_conversion" |
| 77 |
harness = false |
| 78 |
required-features = ["rayon"] |
| 79 |
|
| 80 |
# recommended release settings for max runtime performance |
| 81 |
[profile.release] |
| 82 |
opt-level = 3 |
| 83 |
lto = true |
| 84 |
debug = false |
| 85 |
debug-assertions = false |
| 86 |
codegen-units = 1 |
| 87 |
|
| 88 |
# test with fast runtime speed and slow build speed |
| 89 |
[profile.dev] |
| 90 |
incremental = true |
| 91 |
opt-level = 3 |
| 92 |
debug-assertions = true |
| 93 |
overflow-checks = true |
| 94 |
debug = true |
| 95 |
lto = true |
| 96 |
|
| 97 |
# test with fast runtime speed and moderate build speed |
| 98 |
[profile.test] |
| 99 |
incremental = true |
| 100 |
opt-level = 3 |
| 101 |
debug-assertions = true |
| 102 |
overflow-checks = true |
| 103 |
debug = true |
| 104 |
lto = true |
| 105 |
|
| 106 |
# bench with fastest runtime speed |
| 107 |
[profile.bench] |
| 108 |
opt-level = 3 |
| 109 |
debug-assertions = false |
| 110 |
overflow-checks = false |
| 111 |
lto = true |
| 112 |
debug = true |
| 113 |
codegen-units = 1 |