ITPub博客

首页 > 数据库 > 数据库开发技术 > 【Rust 日报】2023-01-01 祝所有锈儿2023新年快乐

【Rust 日报】2023-01-01 祝所有锈儿2023新年快乐

原创 数据库开发技术 作者:Rust语言中文社区 时间:2023-01-01 23:49:57 0 删除 编辑

2023新年快乐,锈儿

_ __
' ) ) _/_
/--'
. . _ / __. _. _ __. ____ _
/ \_(_/_/_)_<__(_/|_(__</_(_/|_/ / <_/_)_o
'

_ , _ __ _ ,
'
) / ' ) ) ' ) /
/--/ __. _ _ __ , / / _ , , , / / _ __. __
/ (_(_/|_/_)_/_)_/ (_/_ / (_</_(_(_/_ (__/_</_(_/|_/ (_
/ / / //
' ' ' (/
附上一段来自 ChatGPT 的祝福:
# write a new year wish for rustaceans
Happy New Year, Rustaceans!
Here's to another year of rustling and rustling well!
May this year bring you new challenges to tackle and opportunities to grow as developers.
May your code be clean and your builds be fast. Here's to a rust-tastic year ahead!
中文版:
# 给rust程序员写一段新年祝福
新年快乐!
祝你在新的一年里,继续发扬 Rust 的精神,在学习和实践中不断进步,达到更高的水平。
希望你在新的一年里能够收获丰厚的成果,获得更多的认可和成就。
愿你在新的一年里充满激情和活力,健康快乐!

Rust2022回顾

社区张汉东老师对2022年Rust生态版图的梳理,2022年被其称为Rust发展元年。目录如下:
  • Rust 2022 漫谈
  • Rust 2022 全球商业应用盘点
  • Rust 2022 开源生态盘点
  • Rust 2022 安全参考
  • 小结
链接如下:
  • 篇一:https://mp.weixin.qq.com/s/_k4ZAlTs5PbhKigocpSNeA
  • 篇二:https://mp.weixin.qq.com/s/YReeL8u8ZruQB3hM-04S-w
  • 篇三:https://mp.weixin.qq.com/s/cjjNcLhwWxP1rKf7AgFmGg
另外,搬运一些国外大牛的回顾和展望:
  • Yosh: https://blog.yoshuawuyts.com/look-back-2022/
  • Yosh: https://blog.yoshuawuyts.com/rust-2023/
  • azdavis: https://azdavis.net/posts/rust-2023/
  • Gijs: https://gburghoorn.com/posts/rust-in-2023/

Svix:Webhook即服务

可用于企业生产的 Webhook 服务。
支持语言 官方支持 API支持 Webhook 验证
Go ✅ ✅ ✅
Python ✅ ✅ ✅
Typescript/Javascript ✅ ✅ ✅
Java ✅ ✅ ✅
Kotlin ✅ ✅ ✅
Ruby ✅ ✅ ✅
C# (dotnet) ✅ ✅ ✅
Rust ✅ ✅ ✅
PHP ✅ 🔜 ✅

官网:https://www.svix.com/

GitHub:https://github.com/svix/svix-webhooks

daemonize:写入系统守护程序

一个用于写入系统守护进程的库,受 Python 库 thesharp/daemonize 启发。

使用示例:

extern crate daemonize;

use std::fs::File;

use daemonize::Daemonize;

fn main() {
let stdout = File::create("/tmp/daemon.out").unwrap();
let stderr = File::create("/tmp/daemon.err").unwrap();

let daemonize = Daemonize::new()
.pid_file("/tmp/test.pid") // Every method except `new` and `start`
.chown_pid_file(true) // is optional, see `Daemonize` documentation
.working_directory("/tmp") // for default behaviour.
.user("nobody")
.group("daemon") // Group name
.group(2) // or group id.
.umask(0o777) // Set umask, `0o027` by default.
.stdout(stdout) // Redirect stdout to `/tmp/daemon.out`.
.stderr(stderr) // Redirect stderr to `/tmp/daemon.err`.
.privileged_action(|| "Executed before drop privileges");

match daemonize.start() {
Ok(_) => println!("Success, daemonized"),
Err(e) => eprintln!("Error, {}", e),
}
}

GitHub:https://github.com/knsd/daemonize


From 日报小组 长琴

社区学习交流平台订阅:

  • Rustcc 论坛:支持 rss

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


原文作者:Rust语言中文社区;如有侵权,请联系管理员删除。

请登录后发表评论 登录
全部评论

注册时间:2020-06-11

  • 博文量
    1769
  • 访问量
    718529