-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathCargo.toml
55 lines (47 loc) · 1.27 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
52
53
54
55
workspace = { members = [
"sys/dav1d-sys",
"sys/libyuv-sys",
"sys/libgav1-sys",
"sys/ndk-sys",
] }
[package]
name = "crabby-avif"
version = "0.1.0"
edition = "2021" # Rust version
[lib]
crate-type = ["rlib", "cdylib"]
[dependencies]
libc = { version = "0.2.152", optional = true }
ndk-sys = { version = "0.1.0", path = "sys/ndk-sys", optional = true }
dav1d-sys = { version = "0.1.0", path = "sys/dav1d-sys", optional = true }
libgav1-sys = { version = "0.1.0", path = "sys/libgav1-sys", optional = true }
libyuv-sys = { version = "0.1.0", path = "sys/libyuv-sys", optional = true }
[dev-dependencies]
test-case = "3.3.1"
seq-macro = "0.3.5"
tempfile = "3.8.1"
exitcode = "1.1.2"
rand = "0.8.5"
clap = { version = "4.5.28", features = ["derive"] }
clap_derive = { version = "4.5.28" }
png = "0.17.16"
image = { version = "0.24.0", features = ["jpeg"] }
[build-dependencies]
bindgen = "0.69.1"
cbindgen = "0.26.0"
[features]
default = ["dav1d", "libyuv"]
capi = []
dav1d = ["dep:libc", "dep:dav1d-sys"]
libgav1 = ["dep:libgav1-sys"]
libyuv = ["dep:libyuv-sys"]
android_mediacodec = ["dep:ndk-sys"]
heic = []
[package.metadata.capi.header]
name = "avif"
subdirectory = "avif"
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(google3)',
'cfg(android_soong)',
] }