【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

go 复制代码
use ansi2::{Canvas};

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

ansi2-wasm

go 复制代码
npm i ansi2 -g

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

ansi2html

go 复制代码
cargo install ansi2html

neofetch | ansi2html > neofetch.html

ansi2svg

go 复制代码
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 的交互式容器日志资源管理器。

go 复制代码
# 安装
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

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

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


From 日报小组 长琴

社区学习交流平台订阅:

  • Rustcc 论坛:支持 rss

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

相关推荐
绝无仅有4 分钟前
真实面试经历之比亚迪线下hr面+一面+线上二面面经
后端·面试·github
Arva .11 分钟前
Spring Boot 配置文件
java·spring boot·后端
MediaTea12 分钟前
Python:匿名函数 lambda
开发语言·python
绝无仅有15 分钟前
远景集团面试后端Java岗位问答与总结汇总
后端·面试·github
欧阳码农22 分钟前
忍了一年多,我做了一个工具将文章一键发布到多个平台
前端·人工智能·后端
R-G-B23 分钟前
【06】C#入门到精通——C# 多个 .cs文件项目 同一项目下添加多个 .cs文件
开发语言·c#·c# 多个 .cs文件项目
程序员清风28 分钟前
网易三面:Java中默认使用的垃圾回收器及特点分版本说说?
java·后端·面试
hui函数29 分钟前
Python全栈(基础篇)——Day07:后端内容(函数的参数+递归函数+实战演示+每日一题)
后端·python
爱吃烤鸡翅的酸菜鱼35 分钟前
深度掌握 Git 分支体系:从基础操作到高级策略与实践案例
分布式·git·后端·gitee·github
IT_陈寒38 分钟前
Python性能优化:5个让你的代码提速300%的NumPy高级技巧
前端·人工智能·后端