mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-31 18:11:54 +08:00
refactor: 升级依赖版本并优化构建系统
- 升级核心依赖 (axum 0.8, tower-http 0.6, alsa 0.11 等) - 简化交叉编译配置,切换至 Debian 11 提高兼容性 - 新增 Debian 包打包支持 (debuerreotype 模板) - 移除独立的 mjpeg 解码器,简化视频模块 - 静态链接 libx264/libx265/libopus 到二进制
This commit is contained in:
@@ -423,13 +423,13 @@ mod tests {
|
||||
fn test_endpoint_tracking() {
|
||||
let mut manager = OtgGadgetManager::with_config("test", 8);
|
||||
|
||||
// Keyboard uses 2 endpoints
|
||||
// Keyboard uses 1 endpoint
|
||||
let _ = manager.add_keyboard();
|
||||
assert_eq!(manager.endpoint_allocator.used(), 2);
|
||||
assert_eq!(manager.endpoint_allocator.used(), 1);
|
||||
|
||||
// Mouse uses 1 endpoint each
|
||||
let _ = manager.add_mouse_relative();
|
||||
let _ = manager.add_mouse_absolute();
|
||||
assert_eq!(manager.endpoint_allocator.used(), 4);
|
||||
assert_eq!(manager.endpoint_allocator.used(), 3);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -558,7 +558,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_service_creation() {
|
||||
let service = OtgService::new();
|
||||
let _service = OtgService::new();
|
||||
// Just test that creation doesn't panic
|
||||
assert!(!OtgService::is_available() || true); // Depends on environment
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user