-
Notifications
You must be signed in to change notification settings - Fork 20
/
Cargo.toml
47 lines (39 loc) · 1.19 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
[package]
name = "ffmpeg-sidecar"
version = "2.0.2"
edition = "2021"
rust-version = "1.79"
description = "Wrap a standalone FFmpeg binary in an intuitive Iterator interface."
authors = ["Nathan Babcock <[email protected]>"]
categories = ["multimedia"]
keywords = ["ffmpeg", "video"]
repository = "https://github.com/nathanbabcock/ffmpeg-sidecar"
readme = "README.md"
license = "MIT"
[lib]
crate-type = ["lib"]
[dependencies]
anyhow = "1.0.79"
ureq = { version = "2.10.1", optional = true }
[features]
default = ["download_ffmpeg"]
download_ffmpeg = ["dep:ureq", "dep:tar", "dep:xz2", "dep:zip"]
named_pipes = ["dep:winapi", "dep:nix"]
[target.'cfg(target_os = "linux")'.dependencies]
tar = { version = "0.4.42", optional = true }
xz2 = { version = "0.1.7", optional = true }
[target.'cfg(not(target_os = "linux"))'.dependencies]
zip = { version = "2.2.0", optional = true }
[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3.9", optional = true, features = [
"winbase",
"handleapi",
"namedpipeapi",
] }
[target.'cfg(unix)'.dependencies]
nix = { version = "0.29.0", optional = true, features = [
"fs"
] }
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]