-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
90 lines (75 loc) · 2.27 KB
/
Cargo.toml
File metadata and controls
90 lines (75 loc) · 2.27 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[package]
name = "asset-io"
version = "0.1.0"
edition = "2021"
authors = ["Gavin Peacock <gpeacock@adobe.com>"]
license = "MIT OR Apache-2.0"
description = "High-performance, media type-agnostic streaming I/O for media asset metadata (JUMBF, XMP, C2PA, thumbnails)"
repository = "https://github.com/contentauth/asset-io"
keywords = ["asset", "c2pa", "xmp", "jumbf", "metadata"]
categories = ["multimedia", "parsing"]
[dependencies]
# Core I/O
thiserror = "1.0"
byteorder = "1.5"
log = "0.4"
# Optional dependencies - tied to specific features
md5 = { version = "0.7", optional = true }
quick-xml = { version = "0.38", optional = true, default-features = false }
memmap2 = { version = "0.9", optional = true }
fs2 = { version = "0.4", optional = true }
atree = { version = "0.5", optional = true }
rayon = { version = "1.10", optional = true }
sha2 = { version = "0.10", optional = true }
c2pa = { version = "0.79.0", optional = true }
[dev-dependencies]
sha2 = "0.10" # For examples only
serde_bytes = "0.11" # For BMFF hash example
serde_cbor = "0.11" # For DataHash padding
criterion = { version = "0.5", features = ["html_reports"] }
env_logger = "0.11"
tempfile = "3"
[features]
default = ["jpeg"]
jpeg = ["md5"]
png = []
bmff = ["atree"]
riff = []
exif = []
xmp = ["quick-xml", "md5"]
memory-mapped = ["memmap2", "fs2"]
parallel = ["rayon", "sha2"]
all-formats = ["jpeg", "png", "bmff", "riff"]
# Note: At least one format feature (jpeg, png) must be enabled for the library to compile.
# Testing features
# embed-fixtures: Compile test fixtures into the binary (faster CI, no file I/O)
# test-utils: Make test utilities available (for examples and integration tests)
embed-fixtures = []
test-utils = []
[[example]]
name = "c2pa_embeddable"
required-features = ["c2pa","all-formats"]
[[example]]
name = "inspect"
required-features = ["all-formats", "xmp", "exif"]
[[example]]
name = "parallel_hash"
required-features = ["all-formats", "parallel"]
[[example]]
name = "progress_cancel"
required-features = ["all-formats"]
[[test]]
name = "integration_test"
required-features = ["test-utils"]
[[test]]
name = "safety_test"
[[bench]]
name = "io"
harness = false
required-features = ["all-formats", "xmp"]
[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 4
[profile.bench]
inherits = "release"