前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >【Rust 日报】2023-01-01 祝所有锈儿2023新年快乐

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

作者头像
MikeLoveRust
发布2023-02-15 19:15:53
2130
发布2023-02-15 19:15:53
举报

2023新年快乐,锈儿

代码语言:javascript
复制
_ __                                                      
' )  )        _/_                                          
 /--' . . _   /  __.  _. _  __.  ____  _                   
/  \_(_/_/_)_<__(_/|_(__</_(_/|_/ / <_/_)_o                
                                          '                
                                                           
 _    ,                    _ __            _    ,          
' )  /                    ' )  )          ' )  /           
 /--/ __.  _   _   __  ,   /  / _  , , ,   /  / _  __.  __ 
/  (_(_/|_/_)_/_)_/ (_/_  /  (_</_(_(_/_  (__/_</_(_/|_/ (_
         /   /       /                     //              
        '   '       '                     (/

附上一段来自 ChatGPT 的祝福:

代码语言:javascript
复制
# 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!

中文版:

代码语言:javascript
复制
# 给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 启发。

使用示例:

代码语言:javascript
复制
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

本文参与 腾讯云自媒体同步曝光计划,分享自微信公众号。
原始发表:2023-01-01,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 Rust语言学习交流 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 2023新年快乐,锈儿
  • Rust2022回顾
  • Svix:Webhook即服务
  • daemonize:写入系统守护程序
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档