mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
- 删除未使用的函数和常量 - create_public_key_message (rustdesk/connection) - decode_audio_packet, AudioPacketHeader (web/audio_ws) - io_error_to_hid_error, close_device, close_all_devices (hid) - shutdown_rx (rustdesk/mod) - CONNECT_TIMEOUT_MS, RESP_ERR_SEND_FAILED - 调整日志级别 - Session lagged: warn -> debug - 移除 H264 NAL trace 日志 - 移除 Frame distribution lagged trace 日志 - 移除 absolute mouse report trace 日志 - 优化 broadcast channel 缓冲区大小 8 -> 16 - 修复条件编译 - static_files.rs: 添加 debug_assertions 条件
68 lines
1.6 KiB
Docker
68 lines
1.6 KiB
Docker
# Cross-compilation image for x86_64 based on Debian 12
|
|
# Matches the runtime environment exactly
|
|
|
|
FROM debian:12
|
|
|
|
# Set Rustup mirrors (Aliyun)
|
|
ENV RUSTUP_UPDATE_ROOT=https://mirrors.aliyun.com/rustup/rustup \
|
|
RUSTUP_DIST_SERVER=https://mirrors.aliyun.com/rustup
|
|
|
|
# Install Rust toolchain
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
curl \
|
|
ca-certificates \
|
|
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
ENV PATH="/root/.cargo/bin:${PATH}"
|
|
|
|
# Install build dependencies (same as runtime Debian 12)
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
# Build tools
|
|
build-essential \
|
|
pkg-config \
|
|
cmake \
|
|
nasm \
|
|
git \
|
|
libclang-dev \
|
|
llvm \
|
|
protobuf-compiler \
|
|
libssl-dev \
|
|
mold \
|
|
# Core system libraries
|
|
libasound2-dev \
|
|
libv4l-dev \
|
|
libudev-dev \
|
|
zlib1g-dev \
|
|
# Video/image processing
|
|
libjpeg62-turbo-dev \
|
|
libyuv-dev \
|
|
# FFmpeg and codecs
|
|
libavcodec-dev \
|
|
libavformat-dev \
|
|
libavutil-dev \
|
|
libswscale-dev \
|
|
libswresample-dev \
|
|
# Video codec libraries
|
|
libx264-dev \
|
|
libx265-dev \
|
|
libvpx-dev \
|
|
# Audio codec
|
|
libopus-dev \
|
|
# Hardware acceleration
|
|
libva-dev \
|
|
libdrm-dev \
|
|
libmfx-dev \
|
|
# X11 libraries
|
|
libx11-dev \
|
|
libxcb1-dev \
|
|
libxau-dev \
|
|
libxdmcp-dev \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Add Rust target
|
|
RUN rustup target add x86_64-unknown-linux-gnu
|
|
|
|
# Configure mold as the linker
|
|
ENV RUSTFLAGS="-C link-arg=-fuse-ld=mold"
|