< 返回版块

Yuan YQ 发表于 2025-09-22 12:12

cargo-semver-checks v0.44.0 发布

cargo-semver-checks 是一个检查你的 API 变动和版本升级是否符合语义版本号的规范或建议。v0.44.0 新增 22 个检查点,总计达到 200。

Github: https://github.com/obi1kenobi/cargo-semver-checks/

culit: 在 Rust 中使用自定义的字面量

对于 Rust 中的数值类型字面量可以包含后缀以表达具体的类型,例如:100i32,这些都是大家常见的。culit 这个 crate 可以扩展这种能力,给其他类型的字面量增加后缀,例如,在 Rust 中编写 Python 风格的字符串:

use culit::culit;
use std::time::Duration;

#[culit]
fn main() {
    let name = "bob";
    let age = 23;

    assert_eq!(
        "hi, my name is {name} and I am {age} years old"f,
        format!("hi, my name is {name} and I am {age} years old")
    );
}

mod custom_literal {
    pub mod str {
        macro_rules! f {
            ($value:literal) => {
                format!($value)
            };
        }
        pub(crate) use f;
    }
}

Github: https://github.com/nik-rev/culit

Rust 开发的 Intel 8080 芯片模拟器

本项目是使用 Rust 开发的 Intel 8080 芯片模拟器,有以下特征:

  • 桌面版构建 GUI 界面采用 SDL2 开发
  • 音频部分正在开发中
  • 浏览器版采用 HTML Cavas + WebAssembly 开发

更多特性请参见网站:https://8080-emulator-rust.vercel.app/

Github: https://github.com/mitul72/8080-emulator-rust

--

From 日报小组 Yuan YQ

社区学习交流平台订阅:

评论区

写评论

还没有评论

1 共 0 条评论, 1 页