当前位置: 首页 > article >正文

【C++】一次rustdesk-server编译记录

RustDesk Server 是一个开源的远程桌面解决方案,允许用户自托管自己的远程桌面服务器。该项目是免费且开源的,支持多种平台和环境。RustDesk Server 提供了 ID/Rendezvous 服务器和 Relay 服务器,以及一些 CLI 工具,方便用户进行远程管理和控制。

安装依赖

首先,确保你的系统已经安装了 cargo 和 rust。

克隆项目

克隆 RustDesk Server 项目到本地:

git clone https://github.com/rustdesk/rustdesk-server.git
cd rustdesk-server

构建项目

使用 cargo 构建项目:

cargo build --release

构建完成后,会在 target/release 目录下生成三个可执行文件:

hbbs.exe - RustDesk ID/Rendezvous 服务器
hbbr.exe - RustDesk Relay 服务器
rustdesk-utils.exe - RustDesk CLI 工具

启动服务器

运行以下命令启动服务器:

./target/release/hbbs
./target/release/hbbr

编译log:

E:\1github_pro\rustdesk\rustdesk-server>cargo build --release
    Updating crates.io index
    Updating git repository `https://github.com/open-trade/confy`
    Updating git repository `https://github.com/open-trade/tokio-socks`
    Updating git repository `https://github.com/open-trade/async-speed-limit`
  Downloaded cfg-if v1.0.0
  Downloaded instant v0.1.12
  ...
  Downloaded rand v0.8.5
warning: spurious network error (3 tries remaining): [28] Timeout was reached (download of `regex-syntax v0.6.25` failed to transfer more than 10 bytes in 30s)
warning: spurious network error (3 tries remaining): [28] Timeout was reached (failed to download any data for `regex v1.5.5` within 30s)
  Downloaded tower v0.4.12
  ...
  Downloaded regex-syntax v0.6.25
warning: spurious network error (3 tries remaining): [92] Stream error in the HTTP/2 framing layer (HTTP/2 stream 61 was not closed cleanly: PROTOCOL_ERROR (err 1))
  Downloaded tokio v1.20.0
  Downloaded windows_x86_64_msvc v0.36.1
  Downloaded windows_x86_64_msvc v0.48.0
  Downloaded zstd-sys v1.6.2+zstd.1.5.1
warning: spurious network error (3 tries remaining): [92] Stream error in the HTTP/2 framing layer (HTTP/2 stream 19 was not closed cleanly: PROTOCOL_ERROR (err 1))
warning: spurious network error (3 tries remaining): [92] Stream error in the HTTP/2 framing layer (HTTP/2 stream 177 was not closed cleanly: PROTOCOL_ERROR (err 1))
  Downloaded winapi v0.3.9
  Downloaded sodiumoxide v0.2.7
   ...
   Compiling hbb_common v0.1.0 (E:\1github_pro\rustdesk\rustdesk-server\libs\hbb_common)
   Compiling axum v0.5.5
   Compiling sqlx-macros v0.6.0
   Compiling sqlx v0.6.0
   Compiling hbbs v1.1.11-1 (E:\1github_pro\rustdesk\rustdesk-server)
warning: fields `id`, `user`, and `status` are never read
  --> src\database.rs:41:9
   |
39 | pub struct Peer {
   |            ---- fields in this struct
40 |     pub guid: Vec<u8>,
41 |     pub id: String,
   |         ^^
...
44 |     pub user: Option<Vec<u8>>,
   |         ^^^^
45 |     pub info: String,
46 |     pub status: Option<i64>,
   |         ^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: `hbbs` (lib) generated 1 warning
    Finished `release` profile [optimized] target(s) in 26m 56s
warning: the following packages contain code that will be rejected by a future version of Rust: nom v5.1.2
note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`

E:\1github_pro\rustdesk\rustdesk-server>

编译结果:

输出结果


http://www.kler.cn/news/309532.html

相关文章:

  • 从数据仓库到数据中台再到数据飞轮:社交媒体的数据技术进化史
  • 计算机人工智能前沿进展-大语言模型方向-2024-09-12
  • LED灯、蜂鸣器、继电器的控制
  • 【店雷达全网图搜比价盘点】1688、淘宝、阿里国际、亚马逊、速卖通5大平台
  • 一次渲染十万条数据:前端技术优化(上)
  • Java 入门指南:JVM(Java虚拟机)垃圾回收机制 —— 新一代垃圾回收器 ZGC 收集器
  • 分布式中间件-redis相关概念介绍
  • B3636 文字工作
  • LabVIEW编程快速提升的关键技术
  • 【VScode】配置多账户连接远程服务器
  • PWN College 关于sql盲注
  • 【Hot100】LeetCode—72. 编辑距离
  • vue2制作高复用页面
  • 系统架构师考试学习笔记第五篇——架构设计补充知识(25)专业英语
  • Spring部分常见面试题
  • 关于Spring Cloud Gateway中 Filters的理解
  • 健身房预约小程序定制搭建,数字化运营管理
  • Python+Pytest框架,“api_key.py文件怎么编写“?
  • 【乐企-业务篇】生成发票左上角二维码
  • Linux和C语言(Day 12)
  • 华南医电科技集团受邀出席中马建交50周年高级别经贸合作交流活动
  • [Redis] Redis中的set和zset类型
  • 云轴科技ZStack 获鲲鹏应用创新大赛2024上海赛区决赛一等奖
  • vue3-print打印eletable某一行的数据
  • TI AM62X Secure Boot 流程简述
  • (黑马点评)六、好友关注系列功能实现
  • C语言 | Leetcode C语言接雨水II
  • vscode中前端项目文件格式化备份
  • Apple M3编译OpenSSL安卓平台SO库
  • django orm查询优化