2026-10-22 21:17:55 -04:00
|
|
|
|
[package]
|
|
|
|
|
|
name = "agent"
|
|
|
|
|
|
version = "0.1.0"
|
|
|
|
|
|
edition = "2021"
|
|
|
|
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
|
|
common = { path = "../common" }
|
|
|
|
|
|
anyhow.workspace = true
|
|
|
|
|
|
tokio.workspace = true
|
|
|
|
|
|
quinn.workspace = true
|
|
|
|
|
|
rustls.workspace = true
|
|
|
|
|
|
rcgen.workspace = true
|
|
|
|
|
|
lz4_flex.workspace = true
|
|
|
|
|
|
openh264 = { version = "0.9.9", features = ["source"] }
|
2026-10-28 04:01:33 -04:00
|
|
|
|
# 上游 nvenc 0.1.0 的 encode_picture 只设 picture_type=IDR、不置 FORCEIDR 标志,
|
|
|
|
|
|
# 导致运行期 KeyFrameReq 被编码器静默忽略(实测输出 NAL type=1 而非 5)。
|
|
|
|
|
|
# vendor 版本补上了该标志,见 vendor/nvenc/src/safe/encoder.rs 的「本项目补丁」注释。
|
|
|
|
|
|
nvenc = { path = "../vendor/nvenc" }
|
2026-10-22 21:17:55 -04:00
|
|
|
|
windows = { workspace = true, features = [
|
|
|
|
|
|
"Win32_Foundation",
|
|
|
|
|
|
"Win32_Graphics_Direct3D",
|
|
|
|
|
|
"Win32_Graphics_Direct3D11",
|
|
|
|
|
|
"Win32_Graphics_Dxgi",
|
|
|
|
|
|
"Win32_Graphics_Dxgi_Common",
|
|
|
|
|
|
"Win32_UI_Input_KeyboardAndMouse",
|
|
|
|
|
|
"Win32_UI_WindowsAndMessaging",
|
2026-10-31 05:34:54 -04:00
|
|
|
|
# SetProcessDpiAwarenessContext:相对鼠标的 GetCursorPos 必须与采集同为物理像素,
|
|
|
|
|
|
# 不能依赖注册表 AppCompat 覆盖(见 3b 开工实测 §4)。
|
|
|
|
|
|
"Win32_UI_HiDpi",
|
2026-10-22 21:17:55 -04:00
|
|
|
|
] }
|