【Rust日报】 2020-06-11 进一步理解 Rust 错误处理

进一步理解 Rust 错误处理

本文 Rust 的初学者和对 Rust 感兴趣却还没能很好上手的朋友更加友好。阅读和理解大约须要15分钟,仅需一些基本的编程知识,你就能很好的理解本文。
在文章中,做者会介绍 Rust 中错误的基本知识,并分析为何会这样处理,而后解释一些更高级的错误处理概念,同时分享一些实用的技巧。原文地址:https://www.halcyon.hr/posts/error-handling-in-rust/
reddit 上参与讨论:https://www.reddit.com/r/rust/comments/h12itt/error_handling_in_rust_a_beginners_guide/

rust-search-extension v0.10 版本更新啦👏

社区大佬出品的超好用插件,赶忙来支持一个 o( ̄︶ ̄)o :https://github.com/huhu/rust-search-extension

TinyDB

TinyDB 是一个占用空间小,速度超快的数据库,旨在在内存中使用,并在须要保存时轻松地从文件中转储/检索。项目地址:https://github.com/scowez/tinydb

rarebears - pandas 的 Rust 实现

目前该项目已经有一些完整的实现:https://github.com/drew-wallace/rarebears

postgrest-rs

postgrest-rs 库提供了 PostgREST 的 ORM 接口,项目地址:https://github.com/supabase/postgrest-rs
简单使用示例:
  
    
  
  
  
   
   
            
   
   

  
    
  
  
  
   
   
            
   
   
use postgrest::Postgrest;
let client = Postgrest::new("https://your.postgrest.endpoint");let resp = client .from("your_table") .select("*") .execute() .await?;let body = resp .text() .await?;

Rust PostgresSQL clients benchmark

diesel,elephantry,postgres,sqlx 这四个常见库的性能测试:https://github.com/elephantry/benchmark#rust-postgressql-clients-benchmark
最新补充,来自网友 biluohc 的评论回复,他指出原做者的 postgres benchmark 异步sqlx的结果是错误的。做为对比, biluohc 提供了他实现的示例:https://github.com/biluohc/actixweb-sqlx-jwt。更多内容欢迎你们到评论区查看详情,深刻交流。

Svelte + TypeScript + Parcel + Rust

做者将一些经常使用的技术栈进行组合,制做了用于 Svelte + Rust + TypeScript 的热模块重装的简单模板,项目地址:https://github.com/HugoDaniel/svelte-template

详细一点的原文介绍:https://hugodaniel.pt/posts/browser-tech-stack-2020/nginx


From 日报小组 @Jancd

本文分享自微信公众号 - Rust语言中文社区(rust-china)。
若有侵权,请联系 support@oschina.cn 删除。
本文参与“OSC源创计划”,欢迎正在阅读的你也加入,一块儿分享。git

相关文章
相关标签/搜索