前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >【Rust 日报】2024-03-10 RTCs

【Rust 日报】2024-03-10 RTCs

作者头像
MikeLoveRust
发布2024-03-18 14:49:37
690
发布2024-03-18 14:49:37
举报

[new library] RTCs

RTC相关项目:

  • RTC协议:https://github.com/webrtc-rs/rtc
  • 选择转发单元SFU:https://github.com/webrtc-rs/sfu,在WebRTC中,SFU主要用于处理群组通话和直播的媒体服务器。
  • WebRTC:https://github.com/webrtc-rs/webrtc

[new library] mdopen

在浏览器中快速预览本地 Markdown 文件,具有类似 GitHub 的外观。不使用 GitHub API,而只是在 Rust 中将 markdown 编译为 HTML。

安装使用:

代码语言:javascript
复制
git clone https://github.com/immanelg/mdopen --depth=1
cd mdopen
cargo install --path .

mdopen README.md TODO.md -b firefox

其他类似项目:

  • https://github.com/swsnr/mdcat
  • https://github.com/Inlyne-Project/inlyne

GitHub: https://github.com/immanelg/mdopen/

[new library] complexipy

一个计算 Python 文件认知复杂性的库。

代码语言:javascript
复制
def a_decorator(a, b):
    def inner(func):
        return func
    return inner

def b_decorator(a, b):
    def inner(func):
        if func:
            return None
        return func
    return inner

对上面的Python方法,输出结果如下:

代码语言:javascript
复制
───────────────────────────── 🐙 complexipy 0.3.0 ──────────────────────────────
                                    Summary
      ┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
      ┃ Path              ┃ File              ┃ Function    ┃ Complexity ┃
      ┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
      │ test_decorator.py │ test_decorator.py │ a_decorator │ 0          │
      ├───────────────────┼───────────────────┼─────────────┼────────────┤
      │ test_decorator.py │ test_decorator.py │ b_decorator │ 1          │
      └───────────────────┴───────────────────┴─────────────┴────────────┘
🧠 Total Cognitive Complexity in ./tests/src/test_decorator.py: 1
1 file analyzed in 0.0032 seconds
────────────────────────── 🎉 Analysis completed! 🎉 ───────────────────────────

小编注:非常不错的一个项目。

GitHub: https://github.com/rohaquinlop/complexipy

[resource] rust book

一份Rust的书籍清单,涉及方方面面。不过貌似都是亚马逊的链接。

链接: https://rustworkshop.co/2023/06/18/rust-programming-books/

本文参与 腾讯云自媒体分享计划,分享自微信公众号。
原始发表:2024-03-12,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 Rust语言学习交流 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • [new library] RTCs
  • [new library] mdopen
  • [new library] complexipy
  • [resource] rust book
相关产品与服务
云直播
云直播(Cloud Streaming Services,CSS)为您提供极速、稳定、专业的云端直播处理服务,根据业务的不同直播场景需求,云直播提供了标准直播、快直播、云导播台三种服务,分别针对大规模实时观看、超低延时直播、便捷云端导播的场景,配合腾讯云视立方·直播 SDK,为您提供一站式的音视频直播解决方案。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档