Skip to content

Commit 68f62e6

Browse files
committed
Add necessary files to the rav1e crate
Include LICENSE, PATENTS, README.md and cbindgen.toml in the crate. Also, reformat long lines in the Cargo.toml file.
1 parent 0f3eba6 commit 68f62e6

File tree

1 file changed

+31
-5
lines changed

1 file changed

+31
-5
lines changed

Cargo.toml

+31-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@ version = "0.1.0"
44
authors = ["Thomas Daede <[email protected]>"]
55
edition = "2018"
66
build = "build.rs"
7-
include = ["/src/**", "/Cargo.toml", "/build.rs"]
7+
include = [
8+
"/Cargo.toml",
9+
"/LICENSE",
10+
"/PATENTS",
11+
"/README.md",
12+
"/build.rs",
13+
"/cbindgen.toml",
14+
"/src/**",
15+
]
816
license = "BSD-2-Clause"
917
description = "The fastest and safest AV1 encoder"
1018
readme = "README.md"
@@ -15,7 +23,14 @@ autobins = false
1523
[features]
1624
decode_test = ["aom-sys"]
1725
decode_test_dav1d = ["dav1d-sys"]
18-
binaries = ["ivf", "y4m", "clap", "scan_fmt", "pretty_env_logger", "better-panic"]
26+
binaries = [
27+
"ivf",
28+
"y4m",
29+
"clap",
30+
"scan_fmt",
31+
"pretty_env_logger",
32+
"better-panic",
33+
]
1934
default = ["binaries", "asm", "signal_support"]
2035
asm = ["nasm-rs", "cc"]
2136
signal_support = ["signal-hook"]
@@ -55,25 +70,36 @@ bincode = { version = "1.1", optional = true }
5570
arrayvec = "0.5"
5671
better-panic = { version = "0.2", optional = true }
5772
err-derive = "0.2.1"
58-
image = { version = "0.22.1", optional = true, default-features = false, features = ["png"] }
5973
byteorder = { version = "1.3.2", optional = true }
6074
log = "0.4"
6175
pretty_env_logger = { version = "0.3", optional = true }
6276
itertools = "0.8"
6377
simd_helpers = "0.1"
6478

79+
[dependencies.image]
80+
version = "0.22.1"
81+
optional = true
82+
default-features = false
83+
features = ["png"]
84+
6585
[dependencies.rust_hawktracer]
6686
version = "0.5.0"
6787
features = ["profiling_enabled"]
6888
optional = true
6989

7090
[build-dependencies]
71-
nasm-rs = { version = "0.1", path = "crates/nasm_rs/", optional = true, features = ["parallel"] }
7291
cc = { version = "1.0", optional = true, features = ["parallel"] }
73-
# Vendored to remove the dependency on `failure`, which takes a long time to build.
92+
# Vendored to remove the dependency on `failure`,
93+
# which takes a long time to build.
7494
vergen = { version = "3", path = "crates/vergen" }
7595
rustc_version = "0.2"
7696

97+
[build-dependencies.nasm-rs]
98+
version = "0.1"
99+
path = "crates/nasm_rs/"
100+
optional = true
101+
features = ["parallel"]
102+
77103
[target.'cfg(unix)'.dependencies]
78104
signal-hook = { version = "0.1.9", optional = true }
79105

0 commit comments

Comments
 (0)