forked from xiph/rav1e
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
128 lines (113 loc) · 3.47 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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[package]
name = "rav1e"
version = "0.1.0"
authors = ["Thomas Daede <[email protected]>"]
edition = "2018"
build = "build/main.rs"
include = ["/src/**", "/Cargo.toml", "/build.rs"]
license = "BSD-2-Clause"
description = "The fastest and safest AV1 encoder"
repository = "https://github.com/xiph/rav1e/"
autobenches = false
autobins = false
[features]
decode_test = ["aom-sys"]
decode_test_dav1d = ["dav1d-sys"]
binaries = ["ivf", "y4m", "clap", "scan_fmt", "pretty_env_logger", "better-panic"]
default = ["binaries", "asm", "signal_support"]
asm = ["nasm-rs", "cc"]
signal_support = ["signal-hook"]
dump_ivf = ["ivf"]
quick_test = []
desync_finder = ["backtrace"]
bench = []
check_asm = []
capi = []
# Enables debug dumping of lookahead computation results, specifically:
# - i-qres.png: quarter-resolution luma planes,
# - i-hres.png: half-resolution luma planes,
# - i-mvs.bin: motion vectors,
# - i-imps.bin: block importances.
dump_lookahead_data = ["byteorder", "image"]
[dependencies]
arg_enum_proc_macro = "0.3"
bitstream-io = "0.8"
cfg-if = "0.1"
clap = { version = "2", optional = true, default-features = false }
libc = "0.2"
y4m = { version = "0.4", optional = true }
backtrace = { version = "0.3", optional = true }
num-traits = "0.2"
num-derive = "0.3"
paste = "0.1"
serde = "1.0"
serde_derive = "1.0"
dav1d-sys = { version = "0.2", optional = true }
aom-sys = { version = "0.1.3", optional = true }
scan_fmt = { version = "0.2.3", optional = true }
ivf = { version = "0.1", path = "ivf/", optional = true }
avformat-sys = { version = "0.1", path = "crates/avformat-sys/", optional = true }
rayon = "1.0"
bincode = "1.1"
arrayvec = "0.5"
better-panic = { version = "0.2", optional = true }
err-derive = "0.2.1"
image = { version = "0.22.1", optional = true, default-features = false, features = ["png"] }
byteorder = { version = "1.3.2", optional = true }
log = "0.4"
pretty_env_logger = { version = "0.3", optional = true }
itertools = "0.8"
simd_helpers = "0.1"
# the version on crates.io is *8 months* old.
packed_simd = { git = "https://github.com/rust-lang-nursery/packed_simd.git", features = ["into_bits"] }
[build-dependencies]
nasm-rs = { version = "0.1", path = "crates/nasm_rs/", optional = true }
cc = { version = "1.0", optional = true }
# Vendored to remove the dependency on `failure`, which takes a long time to build.
vergen = { version = "3", path = "crates/vergen" }
rustc_version = "0.2"
# used to create the rust kernels
proc-macro2 = "1.0"
quote = "1.0"
[target.'cfg(unix)'.dependencies]
signal-hook = { version = "0.1.9", optional = true }
[dev-dependencies]
criterion = "0.3"
pretty_assertions = "0.6"
interpolate_name = "0.2.2"
rand = "0.7"
rand_chacha = "0.2"
semver = "0.9"
[target.'cfg(fuzzing)'.dependencies]
arbitrary = "0.2"
interpolate_name = "0.2.2"
rand = "0.7"
rand_chacha = "0.2"
[[bin]]
name = "rav1e"
required-features = ["binaries"]
bench = false
[lib]
bench = false
crate-type = ["lib", "staticlib"]
[[bench]]
name = "bench"
path = "benches/bench.rs"
harness = false
[profile.dev]
opt-level = 2
[profile.release]
debug = true
codegen-units = 1 # if > 1 enables parallel code generation which improves
# compile times, but prevents some optimizations.
# Passes `-C codegen-units`. Ignored when `lto = true`.
lto = true
[profile.bench]
codegen-units = 1
lto = true
# To fix a LLVM X86 target machine assert when no optimization
# is performed.
[profile.test]
opt-level = 2
[workspace]
members = [".", "ivf", "crates/nasm_rs", "crates/avformat-sys"]