1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[]
= "group_controller"
= "2025.8.14" #版本号使用年月日
= ["刘润滋 13906330052@139.com"] # 建议移除身份证信息,避免隐私泄露
= "2024"
= "A brief description of your crate"
= "MIT" # 开源许可证
= "https://github.com/liurunzi0052/rust_iot_group.git" # 代码仓库地址
#homepage = "https://your-project.com" # 可选
#documentation = "https://docs.rs/your-crate-name" # 可选
#keywords = ["keyword1", "keyword2"] # 可选
#categories = ["category1"] # 可选
[]
= ["rlib"] # ["dylib"] ["lib"] ["lib"]与["rlib"]是一样的,增加空格,符合 TOML 风格规范
[]
# 增加 rt-multi-thread 特性以支持 Runtime::new()
= { = "1", = ["rt-multi-thread", "net", "io-util", "fs", "sync", "macros"] }
# 异步相关核心依赖
= "0.1" # 异步 trait 支持
# 数据结构与工具
= "5.4" # 并发哈希表,无锁哈希表,可以读写
# 动态库加载
= "0.7" # 用于加载动态库
# crossbeam = "0.8" # 版本号可以根据最新版本调整
# crossbeam-queue = "0.3.8" # 独立的无锁队列 crate
= "1.18"
# event-listener ="2.5" #基于事件的同步机制
# atomic = "0.5" # 最新稳定版本
# atomic_refcell = "0.1"; #无锁原子操作