[package]
edition = "2024"
rust-version = "1.92"
name = "anodecs"
version = "0.1.6"
authors = [
"Adebayo Jagunmolu <hardebahyho@gmail.com>",
"mlm-games",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust bindings to MediaCodec, with an easy-to-use API (formerly mediacodec)"
homepage = "https://github.com/mlm-games/rust_mediacodec"
readme = "README.md"
keywords = [
"ffi",
"bindings",
"multimedia",
"codec",
"android",
]
categories = [
"api-bindings",
"encoding",
"multimedia",
"multimedia::audio",
"multimedia::video",
]
license = "MIT"
repository = "https://github.com/mlm-games/rust_mediacodec"
resolver = "3"
[package.metadata.docs.rs]
features = ["api28"]
targets = [
"aarch64-linux-android",
"armv7-linux-androideabi",
"i686-linux-android",
"x86_64-linux-android",
]
[features]
api24 = []
api26 = ["api24"]
api28 = ["api26"]
api29 = ["api28"]
[lib]
name = "anodecs"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.rs"
[[example]]
name = "decoding"
crate-type = ["cdylib"]
path = "examples/decoding.rs"
[[example]]
name = "demuxing"
crate-type = ["cdylib"]
path = "examples/demuxing.rs"
[target.'cfg(target_os = "android")'.dependencies.android_logger]
version = "0.15"
[target.'cfg(target_os = "android")'.dependencies.jni]
version = "0.22"
[target.'cfg(target_os = "android")'.dependencies.log]
version = "0.4"
[target.'cfg(target_os = "android")'.dependencies.ndk-context]
version = "0.1"