[package]
edition = "2021"
name = "win-native-media"
version = "0.1.1"
authors = ["Lotfi Bennour"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Native Windows media capture, encode, record, and stream pipeline. WGC → H.264 → MP4/RTMP, no FFmpeg."
homepage = "https://github.com/your-org/win-native-media"
documentation = "https://docs.rs/win-native-media"
readme = "README.md"
keywords = [
"windows",
"media",
"capture",
"encode",
"rtmp",
]
categories = [
"multimedia",
"network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/your-org/win-native-media"
[lib]
name = "win_native_media"
path = "src/lib.rs"
[[example]]
name = "m1_capture_dump"
path = "examples/m1_capture_dump.rs"
[[example]]
name = "m2_encode_h264"
path = "examples/m2_encode_h264.rs"
[[example]]
name = "m2b_hw_encode"
path = "examples/m2b_hw_encode.rs"
[[example]]
name = "m3_record_mp4"
path = "examples/m3_record_mp4.rs"
[[example]]
name = "m4_stream_rtmp"
path = "examples/m4_stream_rtmp.rs"
[[example]]
name = "m5_record_and_stream"
path = "examples/m5_record_and_stream.rs"
[[example]]
name = "m6_audio_capture"
path = "examples/m6_audio_capture.rs"
[[example]]
name = "m6_av_record_stream"
path = "examples/m6_av_record_stream.rs"
[[example]]
name = "m7_pipeline_api"
path = "examples/m7_pipeline_api.rs"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"net",
"time",
"sync",
"macros",
"io-util",
]
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
[dependencies.windows]
version = "0.62"
features = [
"Foundation",
"Graphics_Capture",
"Graphics_DirectX",
"Graphics_DirectX_Direct3D11",
"Win32_Foundation",
"Win32_Graphics_Direct3D",
"Win32_Graphics_Direct3D11",
"Win32_Graphics_Dxgi",
"Win32_Graphics_Dxgi_Common",
"Win32_Graphics_Gdi",
"Win32_System_WinRT",
"Win32_System_WinRT_Direct3D11",
"Win32_System_WinRT_Graphics_Capture",
"Win32_System_Performance",
"Win32_System_Com",
"Win32_Media_MediaFoundation",
"Win32_Media_KernelStreaming",
"Win32_Media_Audio",
"Win32_Media_Multimedia",
"Win32_System_Ole",
"Win32_System_Variant",
"Win32_System_Com_StructuredStorage",
"Win32_System_Threading",
"Win32_Devices_FunctionDiscovery",
]
[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]