_ __
' ) ) _/_
/--' . . _ / __. _. _ __. ____ _
/ \_(_/_/_)_<__(_/|_(__</_(_/|_/ / <_/_)_o
'
_ , _ __ _ ,
' ) / ' ) ) ' ) /
/--/ __. _ _ __ , / / _ , , , / / _ __. __
/ (_(_/|_/_)_/_)_/ (_/_ / (_</_(_(_/_ (__/_</_(_/|_/ (_
/ / / //
' ' ' (/
# 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 的精神,在学习和实践中不断进步,达到更高的水平。
希望你在新的一年里能够收获丰厚的成果,获得更多的认可和成就。
愿你在新的一年里充满激情和活力,健康快乐!
| 支持语言 | 官方支持 | API支持 | Webhook 验证 |
|---|---|---|---|
| Go | ✅ | ✅ | ✅ |
| Python | ✅ | ✅ | ✅ |
| Typescript/Javascript | ✅ | ✅ | ✅ |
| Java | ✅ | ✅ | ✅ |
| Kotlin | ✅ | ✅ | ✅ |
| Ruby | ✅ | ✅ | ✅ |
| C# (dotnet) | ✅ | ✅ | ✅ |
| Rust | ✅ | ✅ | ✅ |
| PHP | ✅ | 🔜 | ✅ |
官网:https://www.svix.com/
GitHub:https://github.com/svix/svix-webhooks
一个用于写入系统守护进程的库,受 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语言中文社区;如有侵权,请联系管理员删除。