Cargo.toml 1.83 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"
Thomas Daede's avatar
Thomas Daede committed
26
rand = "0.5"
27
y4m = { version = "0.3.2", optional = true }
28
backtrace = "0.3"
29
syn = "^0.15.20"
30
quote = "^0.6.10" # hack for proc-macro-hack
Luca Barbato's avatar
Luca Barbato committed
31
num-traits = "0.2"
32
paste = "0.1"
33 34 35
serde = "1.0"
serde_derive = "1.0"
serde_json = { version = "1.0", optional = true }
36
dav1d-sys = { version = "0.1.2", optional = true }
37
aom-sys = { version = "0.1.0", optional = true }
38
scan_fmt = { version = "0.1.3", optional = true }
39
ivf = { path = "ivf/", optional = true }
40
rayon = "1.0"
41
bincode = "=1.0.1"
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.5.1"
52
interpolate_name = "0.2.1"
53

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

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

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

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

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

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

[workspace]
members = ["ivf"]