【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 语言中文社区

相关推荐
阿pin4 分钟前
Java随笔-JDK7 HashMap头插法为何能导致死循环?
java·开发语言·hashmap
FBI HackerHarry浩6 分钟前
Pandas 库中用于分类变量独热编码(One-Hot Encoding)的函数 pd.get_dummies() 函数
开发语言·人工智能·python·pandas
名字还没想好☜21 分钟前
Go 的 sync.Cond 实战:用条件变量做等待/通知,比忙轮询省 CPU
开发语言·数据库·后端·golang·go
zzzll111144 分钟前
Spring Boot 入门指南:从零开始构建微服务
spring boot·后端·微服务
运维行者_1 小时前
企业带宽监控工具实战:网络流量分析与异常排查的5个关键能力
运维·服务器·开发语言·网络·分布式·后端·php
Patrick在香港1 小时前
Python爬虫框架实战:优雅抓取香港政府公开API数据的通用方案
java·开发语言·爬虫·python·ai编程·数据可视化·可用性测试
长栎1 小时前
你用了五年的消息队列,不知道它背后站着中介者模式
后端
Gopher_HBo1 小时前
路由注册:RouterGroup(routergroup.go)
后端
用户608186527901 小时前
Avalonia UI 控件样式定义的三种方式详解
后端
hey_sml1 小时前
MySQL常用操作速记:从字符集到游标全解析
java·开发语言·mysql