Cargo.toml 1.84 KB
Newer Older
Thomas Daede's avatar
Thomas Daede committed
1 2 3 4
[package]
name = "rav1e"
version = "0.1.0"
authors = ["Thomas Daede <tdaede@xiph.org>"]
5
edition = "2018"
Thomas Daede's avatar
Thomas Daede committed
6
build = "build.rs"
7
include = ["/src/**", "/Cargo.toml", "/build.rs"]
8
autobenches = false
9
autobins = false
Thomas Daede's avatar
Thomas Daede committed
10

Luca Barbato's avatar
Luca Barbato committed
11
[features]
12
decode_test = ["aom-sys"]
13
decode_test_dav1d = ["dav1d-sys"]
14
binaries = ["ivf", "y4m", "clap", "scan_fmt", "serde_json"]
Luca Barbato's avatar
Luca Barbato committed
15 16
default = ["binaries", "nasm"]
nasm = ["nasm-rs"]
17
dump_ivf = ["ivf"]
18
quick_test = []
19
desync_finder = []
Luca Barbato's avatar
Luca Barbato committed
20

Thomas Daede's avatar
Thomas Daede committed
21
[dependencies]
22
arg_enum_proc_macro = "0.1.1"
23
bitstream-io = "0.8"
24
clap = { version = "2", optional = true, default-features = false }
25
libc = "0.2"
26
y4m = { version = "0.3.2", optional = true }
27
backtrace = "0.3"
28
syn = "^0.15.20"
29
quote = "^0.6.10" # hack for proc-macro-hack
Luca Barbato's avatar
Luca Barbato committed
30
num-traits = "0.2"
31
paste = "0.1"
32 33 34
serde = "1.0"
serde_derive = "1.0"
serde_json = { version = "1.0", optional = true }
35 36
dav1d-sys = { version = "0.2", optional = true }
aom-sys = { version = "0.1.2", optional = true }
37
scan_fmt = { version = "0.2", optional = true }
38
ivf = { path = "ivf/", optional = true }
39
rayon = "1.0"
40
bincode = "1.1"
41
arrayvec = "0.4.10"
Thomas Daede's avatar
Thomas Daede committed
42

43
[target.'cfg(target_arch = "x86_64")'.build-dependencies]
44
nasm-rs = { git = "https://github.com/tdaede/nasm-rs", branch="msvc-OUT", optional = true }
45

46
[target.'cfg(unix)'.build-dependencies]
47
pkg-config = "0.3.12"
48 49

[dev-dependencies]
50
criterion = "0.2"
51
pretty_assertions = "0.6"
52
interpolate_name = "0.2.2"
53
rand = "0.6"
54

Luca Barbato's avatar
Luca Barbato committed
55 56
[[bin]]
name = "rav1e"
57
required-features = ["binaries"]
58
bench = false
Luca Barbato's avatar
Luca Barbato committed
59

60 61
[lib]
bench = false
Luca Barbato's avatar
Luca Barbato committed
62

63
[[bench]]
Luca Barbato's avatar
Luca Barbato committed
64
name = "bench"
65
harness = false
Yushin Cho's avatar
Yushin Cho committed
66

67 68 69
[profile.dev]
opt-level = 2

Yushin Cho's avatar
Yushin Cho committed
70 71 72 73
[profile.release]
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`.
74
lto = true
Yushin Cho's avatar
Yushin Cho committed
75 76 77

[profile.bench]
codegen-units = 1
78
lto = true
79 80 81

[workspace]
members = ["ivf"]