本文主要是介绍【Rust日报】2020-02-06 那些在生产中使用 Rust 的公司,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
那些在生产中使用 Rust 的公司
按行业组织的,在生产中使用 Rust 的公司的精选列表。可供大家参考,GitHub 地址:https://github.com/omarabid/rust-companies
reddit 上参与讨论:https://www.reddit.com/r/rust/comments/ez7m4u/rust_companies_in_production_list_feel_free_to/
Async Diesel
这个仓库简洁、有效地将 Diesel
集成到 async-std
中,如果你用 Rust 构建后端程序的时候想使用数据库连接池,可以考虑这种方式。
使用示例:
#[macro_use]
extern crate diesel;use async_diesel::*;
use diesel::{prelude::*,r2d2::{ConnectionManager, Pool},
};
use std::error::Error;
use uuid::Uuid;// Schema
table! {users (id) {id -> Uuid,}
}#[async_std::main]
async fn main() -> Result<(), Box<dyn Error>> {// Connectlet manager =ConnectionManager::<PgConnection>::new("postgres://postgres@localhost/async_diesel__test&
这篇关于【Rust日报】2020-02-06 那些在生产中使用 Rust 的公司的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!