【Rust日报】ratatui版本更新

[new ver] ratatui v0.26.3

一个构建终端用户界面的库。新版本包括:

  • 修复Unicode 截断 bug

  • 对颜色更好地序列化

  • 更快的渲染

  • 弃用assert_buffer_eq

  • 暴露错误类型

  • 常量函数和类型

官网: https://ratatui.rs/

链接: https://ratatui.rs/highlights/v0263/

[new lib] ansi2

一个将 ANSI 字符串转换为 HTML 和 SVG 的库。

ansi2

use ansi2::{Canvas};

let canvas = Canvas::new(s);
for row in canvas.pixels.iter() {
  for pixel in row.iter() {
      // draw pixel
  }
}

ansi2-wasm

npm i ansi2 -g

neofetch | ansi2 --format=svg --theme=vscode > ./neofetch.svg

ansi2html

cargo install ansi2html

neofetch | ansi2html > neofetch.html

ansi2svg

cargo install ansi2svg

neofetch | ansi2svg > neofetch.svg

GitHub: https://github.com/ahaoboy/ansi2

[new lib] arduino-plotter

用于与 Arduino 串行绘图仪通信的协议库和 CLI。

GitHub: https://github.com/LechevSpace/arduino-plotter

[new lib] bul

Kubernetes 的交互式容器日志资源管理器。

# 安装
brew install ynqa/tap/bul
# 使用
Usage: bul [OPTIONS]

Options:
      --context <CONTEXT>
          Kubernetes context.
  -n, --namespace <NAMESPACE>
          Kubernetes namespace.
  -p, --pod-query <POD_QUERY>
          query to filter Pods.
      --container-states <CONTAINER_STATUS>
          Container states to filter containers. [default: all] [possible values: all, running, terminated, waiting]
      --log-retrieval-timeout <LOG_RETRIEVAL_TIMEOUT_MILLIS>
          Timeout to read a next line from the log stream in milliseconds. [default: 100]
      --render-interval <RENDER_INTERVAL_MILLIS>
          Interval to render a log line in milliseconds. [default: 10]
  -q, --queue-capacity <QUEUE_CAPACITY>
          Queue capacity to store the logs. [default: 1000]
  -h, --help
          Print help (see more with '--help')

GitHub; https://github.com/ynqa/bul

[new lib] capitalist-chess

国际象棋变体引擎,增加了银行和市场。

4051717231671594ecc83d3b4911bd9a.png

GitHub: https://github.com/adam-mcdaniel/capitalist-chess


From 日报小组 长琴

社区学习交流平台订阅:

  • Rustcc 论坛:支持 rss

  • 微信公众号:Rust 语言中文社区

  • 5
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值