# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2024" rust-version = "1.85.1" name = "nvenc" version = "0.1.0" authors = ["AlsoSylv"] build = false autolib = false autobins = false autoexamples = false autotests = false autobenches = false description = "Wrapper for the nvidia NVENC API" readme = "README.md" keywords = [ "nvidia", "graphics", "media", "video", "ffi", ] categories = [ "multimedia", "external-ffi-bindings", ] license = "MIT" repository = "https://github.com/AlsoSylv/nvenc" [lib] name = "nvenc" path = "src/lib.rs" # 上游 README 的示例是已过时的 Linux GLX 用法(Session 等类型已不存在), # 直接跑 doctest 会失败。本项目只做 vendor 补丁、不维护文档示例,故关闭。 doctest = false [[example]] name = "simple_encode" path = "examples/simple_encode.rs" [dependencies.bitfields] version = "1.0.2" [dependencies.libloading] version = "0.8.9" [target."cfg(windows)".dependencies.windows] version = "0.62" features = [ "Win32_Graphics_Dxgi_Common", "Win32_Graphics_Direct3D", "Win32_Graphics_Direct3D11", ]