< 返回版块

Cupnfish 发表于 2020-12-03 20:08

SHADERed可以在线编辑rust-gpu!

rust-gpu现在可以直接在SHADERed网站上在线编辑了。

demo

Read More: https://shadered.org/blog?id=4

rust-gpu book (Wip): https://embarkstudios.github.io/rust-gpu/book/introduction.html

ripgrep-all

rga是ripgrep的一个扩展版本,和ripgrep用法类似,但是可以搜索的文件格式更多,目前有:pdf, docx, sqlite, jpg, 视频格式(mkv, mp4), 等等。

Github: https://github.com/phiresky/ripgrep-all

【大家的项目】无动态内存分配版的async-trait

此项目希望实现David Tolnay发布的crate async-trait 的功能,让trait中也可以声明async fn。不同于async-trait,这个crate生成的代码不使用Box,直接使用GAT实现async trait的功能,避免了在trait中实现异步函数需要额外多一次内存分配的问题。

现在的版本实现时GAT只支持生命周期参数,因此很多功能还有缺失,现在GAT已经可以使用类型参数了,这边会继续把缺失的功能完善。 用法:

// 需要开启这两个feature
#![feature(type_alias_impl_trait)]
#![feature(generic_associated_types)]

use async_trait_static::async_trait;

async fn hello() -> u8 {
    1
}

#[async_trait]
trait AsyncFnTrait {
    async fn run(&self);
}

struct AsyncStruct;

#[async_trait]
impl AsyncFnTrait for AsyncStruct {
    async fn run(&self) {
        hello().await;
    }
}

Github: https://github.com/tiannian/async-trait-static

Supertag

演示

Supertag,一个用rust写的基于标签的文件系统。

Read More: https://amoffat.github.io/supertag/

dimforge月总结

rapier

dimforge上个月的开发成果总结。新版本Rapier发布的同时也更新了官网的教程,十分友好。

Read More: https://www.dimforge.com/blog/2020/12/01/this-month-in-dimforge/

Rapier book: https://rapier.rs/docs/user_guides/rust/getting_started

IntelliJ Rust: 更新2020.3

最近的更新汇总。

Read More: https://blog.jetbrains.com/clion/2020/12/intellij-rust-updates-for-2020-3/

This Week in Rust 367

367。

Read More:https://this-week-in-rust.org/blog/2020/12/02/this-week-in-rust-367/

游戏引擎专题

Bevy自发布以来,获得了大量的关注,小编在Bevy群里潜水时候,也看到了大家对Bevy的一些讨论。

正如大家所说的Bevy现在仍然是很早期阶段,需要大量的迭代更新。本期游戏引擎专栏将会介绍一些有趣但是比较冷门的游戏引擎供大家参考学习,以便有能力的小伙伴获取灵感,去Github上做贡献。。

  • macroquad: https://github.com/not-fl3/macroquad
  • Dotrix: https://github.com/lowenware/dotrix

除了这两个之外大家比较熟悉的还有Amethyst、ggez、rg3d等游戏引擎,提到上述两个的原因是在某些方面,这两个游戏引擎有不少值得学习的地方,首先是macroquad,在2d绘制方面提供了很多方便好用的api(由miniquad渲染后端提供),粒子系统也很不错,同时在多平台支持这点上也是目前rust游戏社区里支持最好的(包括安卓和ios,Bevy这方面还在开发中),以及egui(https://github.com/emilk/egui)也有macroquad的集成。其次是Dotrix,有一个还不错的ECS架构(个人感觉人体工程学方面还是没有Bevy舒服),最重要的是,支持骨骼动画。

macroquad粒子系统演示:https://gitee.com/downtime/pictures/blob/master/12-3/m.gif (图片比较大)

恰逢昨天是reddit rust频道(创建于2010年12月2日)建立十年的日子,有个生日帖,将今年十个热点帖子都列在了上面,Bevy发布的帖子赫然在列:

  • "Why Discord is switching from Go to Rust" by u/deltaphc

  • "Rust Memory Container Cheat-sheet, publish on GitHub" by u/usagi-network

  • "Introducing Bevy: a refreshingly simple data-driven game engine and app framework built in Rust" by u/_cart

  • "Here's a fun little crate I made that generates an interactive ASCII globe in the terminal" by u/adamadamsky

  • "Rocket can now compile on stable Rust" by u/theZcuber

  • "A sad day for Rust" by u/steveklabnik1

  • "Microsoft: Rust Is the Industry’s ‘Best Chance’ at Safe Systems Programming" by u/natan-sil

  • "Reddit on Rust" by u/fuzzypercentage

  • "2020 Stack Overflow Developer Survey: Rust most loved again at 86.1%" by u/dochtman

  • "Laying the foundation for Rust's future" by u/steveklabnik1

最后,小编私货

【翻译】编写Rust的23条通用规则及建议

Read More: https://rustcc.cn/article?id=b9c63f24-4aab-4d16-976b-30146efdfa48

From 日报小组 Downtime Jancd

社区学习交流平台订阅:

评论区

写评论

还没有评论

1 共 0 条评论, 1 页