Rapier 0.3 released
#rust
Rapier是rust实现的2D/3D物理引擎,它还支持通过wasm在浏览器中使用。0.3版本新增了圆锥体、圆柱体碰撞过滤功能。
Repo:https://github.com/dimforge/rapier
waitfor cli 应用
#rust
waitfor 会阻塞直到指定的条件完成,如果有多个条件,可以在任何一个条件满足后继续运行。现在支持的条件类型有:
- delay 在指定的时间后继续运行,
watitfor --delay 1h10m20s
- exists 再找到制定的文件后继续运行,
waitfor --exists foo.txt
- not-exists 不存在文件时继续执行,
waitfor --not-exists foo.txt
- get http请求结束后继续执行,
waitfor --get 200,https://baidu.com
如果有多个条件,比如:
waitfor --delay 10m --exits foo.txt
表示任意一个条件满足后则继续执行。
repo:https://github.com/aeshirey/waitfor
《Zero to production in Rust》
#rust
这是一本为后端开发写的书,书中介绍了完整实现一个Rust服务端应用的过程,包括前期技术调研,应用结构设计,可扩展性设计,如何编写测试,如何收集日志和跟踪信息,搭建一个鲁棒性强的持续集成和持续部署应用。
Read More:https://www.zero2prod.com/
websocat
#cli
Websocat 是一个用于websocket的Netcat、curl、socat工具。
Examples:
- 连结一个公众的echo服务
websocat ws://echo.websocket.org
- 运行一个服务
websocat -s 1234
- 在chromium中打开一个远程调试工具
- 后台代理TCP到websocket
- 在所有websocket客户端广播信息
Repo:https://www.github.com/vi/websocat
社区学习交流平台订阅:
- Rustcc 论坛: 支持 rss
- 微信公众号:Rust语言中文社区