Update Cargo.toml (again) (#42)
* Move dependencies to top * Add LICENSE symlink to sys crate, update Cargo.toml * sys: Move features around a bit * Move features around a bit * Replace package `exclude` with `include` list * Remove Cargo.lock.MSRV from crate package
This commit is contained in:
parent
fd2d71c92b
commit
a3837aeb2b
74
Cargo.toml
74
Cargo.toml
@ -13,12 +13,33 @@ repository = "https://github.com/shssoichiro/ffmpeg-the-third"
|
|||||||
keywords = ["ffmpeg", "multimedia", "video", "audio"]
|
keywords = ["ffmpeg", "multimedia", "video", "audio"]
|
||||||
categories = ["multimedia"]
|
categories = ["multimedia"]
|
||||||
|
|
||||||
# Exclude CI scripts etc. from package
|
include = [
|
||||||
exclude = [".github"]
|
"LICENSE",
|
||||||
|
"build.rs",
|
||||||
|
"src/",
|
||||||
|
]
|
||||||
|
|
||||||
# When changing MSRV: Also update build.yml and README.md
|
# When changing MSRV: Also update build.yml and README.md
|
||||||
rust-version = "1.61.0"
|
rust-version = "1.61.0"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
libc = "0.2"
|
||||||
|
bitflags = "1.2"
|
||||||
|
|
||||||
|
[dependencies.image]
|
||||||
|
version = "0.24"
|
||||||
|
optional = true
|
||||||
|
|
||||||
|
[dependencies.ffmpeg-sys-the-third]
|
||||||
|
version = "1.1.0"
|
||||||
|
default-features = false
|
||||||
|
path = "ffmpeg-sys-the-third"
|
||||||
|
|
||||||
|
[dependencies.serde]
|
||||||
|
version = "1.0.152"
|
||||||
|
optional = true
|
||||||
|
features = ["derive"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = [
|
default = [
|
||||||
"codec",
|
"codec",
|
||||||
@ -30,13 +51,28 @@ default = [
|
|||||||
"non-exhaustive-enums",
|
"non-exhaustive-enums",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
serialize = ["serde"]
|
||||||
static = ["ffmpeg-sys-the-third/static"]
|
static = ["ffmpeg-sys-the-third/static"]
|
||||||
build = ["static", "ffmpeg-sys-the-third/build"]
|
|
||||||
|
|
||||||
# mark enums in generated bindings as #[non_exhaustive]
|
# mark enums in generated bindings as #[non_exhaustive]
|
||||||
non-exhaustive-enums = ["ffmpeg-sys-the-third/non-exhaustive-enums"]
|
non-exhaustive-enums = ["ffmpeg-sys-the-third/non-exhaustive-enums"]
|
||||||
|
|
||||||
serialize = ["serde"]
|
# components
|
||||||
|
codec = ["ffmpeg-sys-the-third/avcodec"]
|
||||||
|
device = ["ffmpeg-sys-the-third/avdevice", "format"]
|
||||||
|
filter = ["ffmpeg-sys-the-third/avfilter"]
|
||||||
|
format = ["ffmpeg-sys-the-third/avformat", "codec"]
|
||||||
|
resampling = ["ffmpeg-sys-the-third/avresample"]
|
||||||
|
postprocessing = ["ffmpeg-sys-the-third/postproc"]
|
||||||
|
software-resampling = ["ffmpeg-sys-the-third/swresample"]
|
||||||
|
software-scaling = ["ffmpeg-sys-the-third/swscale", "codec"]
|
||||||
|
|
||||||
|
#
|
||||||
|
# Build-related features
|
||||||
|
#
|
||||||
|
|
||||||
|
# build FFmpeg when building this crate
|
||||||
|
build = ["static", "ffmpeg-sys-the-third/build"]
|
||||||
|
|
||||||
# licensing
|
# licensing
|
||||||
build-license-gpl = ["ffmpeg-sys-the-third/build-license-gpl"]
|
build-license-gpl = ["ffmpeg-sys-the-third/build-license-gpl"]
|
||||||
@ -100,35 +136,5 @@ build-lib-xvid = ["ffmpeg-sys-the-third/build-lib-xvid"]
|
|||||||
build-lib-smbclient = ["ffmpeg-sys-the-third/build-lib-smbclient"]
|
build-lib-smbclient = ["ffmpeg-sys-the-third/build-lib-smbclient"]
|
||||||
build-lib-ssh = ["ffmpeg-sys-the-third/build-lib-ssh"]
|
build-lib-ssh = ["ffmpeg-sys-the-third/build-lib-ssh"]
|
||||||
|
|
||||||
# components
|
|
||||||
codec = ["ffmpeg-sys-the-third/avcodec"]
|
|
||||||
device = ["ffmpeg-sys-the-third/avdevice", "format"]
|
|
||||||
filter = ["ffmpeg-sys-the-third/avfilter"]
|
|
||||||
format = ["ffmpeg-sys-the-third/avformat", "codec"]
|
|
||||||
resampling = ["ffmpeg-sys-the-third/avresample"]
|
|
||||||
postprocessing = ["ffmpeg-sys-the-third/postproc"]
|
|
||||||
software-resampling = ["ffmpeg-sys-the-third/swresample"]
|
|
||||||
software-scaling = ["ffmpeg-sys-the-third/swscale", "codec"]
|
|
||||||
|
|
||||||
# platforms
|
# platforms
|
||||||
rpi = []
|
rpi = []
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
libc = "0.2"
|
|
||||||
bitflags = "1.2"
|
|
||||||
|
|
||||||
[dependencies.image]
|
|
||||||
version = "0.24"
|
|
||||||
optional = true
|
|
||||||
|
|
||||||
[dependencies.ffmpeg-sys-the-third]
|
|
||||||
version = "1.1.0"
|
|
||||||
default-features = false
|
|
||||||
|
|
||||||
[dependencies.serde]
|
|
||||||
version = "1.0.152"
|
|
||||||
optional = true
|
|
||||||
features = ["derive"]
|
|
||||||
|
|
||||||
[patch.crates-io]
|
|
||||||
ffmpeg-sys-the-third = { path = "ffmpeg-sys-the-third" }
|
|
||||||
|
@ -11,6 +11,12 @@ authors = [
|
|||||||
]
|
]
|
||||||
license = "WTFPL"
|
license = "WTFPL"
|
||||||
|
|
||||||
|
include = [
|
||||||
|
"LICENSE",
|
||||||
|
"build.rs",
|
||||||
|
"src/"
|
||||||
|
]
|
||||||
|
|
||||||
description = "FFI bindings to FFmpeg"
|
description = "FFI bindings to FFmpeg"
|
||||||
repository = "https://github.com/shssoichiro/ffmpeg-the-third"
|
repository = "https://github.com/shssoichiro/ffmpeg-the-third"
|
||||||
keywords = ["audio", "video"]
|
keywords = ["audio", "video"]
|
||||||
@ -46,11 +52,27 @@ default = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
static = []
|
static = []
|
||||||
build = ["static"]
|
|
||||||
|
|
||||||
# mark enums in generated bindings as #[non_exhaustive]
|
# mark enums in generated bindings as #[non_exhaustive]
|
||||||
non-exhaustive-enums = []
|
non-exhaustive-enums = []
|
||||||
|
|
||||||
|
# components
|
||||||
|
avcodec = []
|
||||||
|
avdevice = ["avformat"]
|
||||||
|
avfilter = []
|
||||||
|
avformat = ["avcodec"]
|
||||||
|
avresample = []
|
||||||
|
postproc = []
|
||||||
|
swresample = []
|
||||||
|
swscale = []
|
||||||
|
|
||||||
|
#
|
||||||
|
# Build-related features
|
||||||
|
#
|
||||||
|
|
||||||
|
# build FFmpeg when building this crate
|
||||||
|
build = ["static"]
|
||||||
|
|
||||||
# licensing
|
# licensing
|
||||||
build-license-gpl = ["build"]
|
build-license-gpl = ["build"]
|
||||||
build-license-nonfree = ["build"]
|
build-license-nonfree = ["build"]
|
||||||
@ -114,13 +136,3 @@ build-lib-xvid = ["build"]
|
|||||||
# protocols
|
# protocols
|
||||||
build-lib-smbclient = ["build"]
|
build-lib-smbclient = ["build"]
|
||||||
build-lib-ssh = ["build"]
|
build-lib-ssh = ["build"]
|
||||||
|
|
||||||
# components
|
|
||||||
avcodec = []
|
|
||||||
avdevice = ["avformat"]
|
|
||||||
avfilter = []
|
|
||||||
avformat = ["avcodec"]
|
|
||||||
avresample = []
|
|
||||||
postproc = []
|
|
||||||
swresample = []
|
|
||||||
swscale = []
|
|
||||||
|
1
ffmpeg-sys-the-third/LICENSE
Symbolic link
1
ffmpeg-sys-the-third/LICENSE
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../LICENSE
|
Loading…
x
Reference in New Issue
Block a user