【Rust日报】2021-09-06 加快 Rust 的编译

加快 Rust 的编译

众所周知,Rust代码编译起来很慢。但我有一种强烈的直觉,大多数Rust代码的编译速度比它本可以的要慢得多。

例如, Rust 的 rust-analyzer CI 在 GitHub 上操作需要8分钟。这是一个相当大和复杂的项目,有20万行自己的代码和100万行依赖。

跟随作者, 让我们进一步了解如何使编译时间保持在合理的范围内!

原文链接: https://matklad.github.io/2021/09/04/fast-rust-builds.html

async 的另外一个语法方案

作者对于 async的语法方案提出了完整的自己的解决方案, 非常有趣.

原文链接: https://ibraheem.ca/writings/an-alternative-async-fn-syntax/

Rust 插件

这是作者的第二篇关于 Rust插件的文章! 在这里,作者将尝试编写一些 PDK (Plugin Development Kit, 插件开发工具包) 可能是什么样子的简单代码,并对在编写过程中出现的问题做一些研究。

原文链接: https://nullderef.com/blog/plugin-start/

sentinel-rust: Rust 版本的 sentinel

Sentinel 是一个面向分布式服务架构的高可用流量控制组件. 现在 Rust 版本已加入

github 地址: https://github.com/sentinel-group/sentinel-rust

<<Programmin

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Key Features Get started with Rust to build scalable and high performance applications Learn how to create secure and blazingly fast programs in Rust Discover the power of Rust when developing concurrent applications for large and scalable software Book Description Rust is the new, open source, fast, and safe systems programming language for the 21st century, developed at Mozilla Research, and with a steadily growing community. It was created to solve the dilemma between high-level, slow code with minimal control over the system, and low-level, fast code with maximum system control. It is no longer necessary to learn C/C++ to develop resource intensive and low-level systems applications. This book will give you a head start to solve systems programming and application tasks with Rust. We start off with an argumentation of Rust's unique place in today's landscape of programming languages. You'll install Rust and learn how to work with its package manager Cargo. The various concepts are introduced step by step: variables, types, functions, and control structures to lay the groundwork. Then we explore more structured data such as strings, arrays, and enums, and you'll see how pattern matching works. Throughout all this, we stress the unique ways of reasoning that the Rust compiler uses to produce safe code. Next we look at Rust's specific way of error handling, and the overall importance of traits in Rust code. The pillar of memory safety is treated in depth as we explore the various pointer kinds. Next, you'll see how macros can simplify code generation, and how to compose bigger projects with modules and crates. Finally, you'll discover how we can write safe concurrent code in Rust and interface with C programs, get a view of the Rust ecosystem, and explore the use of the standard library. What you will learn Set up your Rust environment to achieve the highest productivity Bridge the performance gap between safe and unsafe languages Use pattern matching to create

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值