StructOpt 基于 Clap,提供了更加简洁易用的 API,使用了属性宏来定义命令行参数,这使得代码更加清晰和易于维护。StructOpt 在处理命令行参数时可以直接从一个定义好的结构体中解析出参数,因此可以更加直观地定义命令行参数的结构,而且支持从环境变量、配置文件等不同来源读取参数。StructOpt 还可以生成完整的帮助信息,帮助用户快速了解程序的使用方法和参数。
好用又实惠的命令行参数解析器。 Clap 是一个功能非常强大的命令行参数解析器,可以处理各种各样的参数格式和使用情况,支持子命令、选项、位置参数等。Clap 的 API 灵活,易于定制和扩展,使用文档非常详细,有大量的示例可以参考。Clap 还有一个非常好的特性是可以生成帮助信息,包括用法、选项和参数说明等,对于编写易用的命令行工具非常有帮助。
在编译时生成的静态哈希表,查找时间复杂度为O(1)。phf比HashMap更快,因为它不需要动态分配内存并在运行时计算哈希值。如果你需要使用map来存储一些固定的信息,用phf的性能比HashMap,if-else, match都要好。
DashMap 是一个基于分片的高性能并发哈希表,它通过减小锁粒度来实现高吞吐量。 DashMap tries to implement an easy to use API similar to std::collections::HashMap with some slight changes to handle concurrency
Tokio based asynchronous MySql client library for The Rust Programming Language.
Implementation of the embedded-hal traits for Linux devices This project is developed and maintained by the Embedded Linux team. https://github.com/rust-embedded/wg/#the-embedded-linux-team.
Rust bindings for Python's Asyncio Library. This crate facilitates interactions between Rust Futures and Python Coroutines and manages the lifecycle of their corresponding event loops.
An implementation of serialport I/O for Tokio, an async framework for rust.
Riker is a actor framework for building modern, concurrent and resilient systems. Riker aims to make working with state and behavior in concurrent systems as easy and scalable as possible
类似startup crate,实现类似C++中的构造函数和析构函数的功能。或者在main函数执行前,shutdown之前执行一些自定义的函数。 Module initialization/teardown functions for Rust (like __attribute__((constructor)) in C/C++) .
本书主要对RUST的标准库代码进行分析,并试图给出RUST标准库代码的分析脉络。This project try to give a venation of how reading the RUST standard library source code.
This crate contains a collection of Tokio based TLS libraries. tokio-native-tls tokio-rustls
Rustls is a modern TLS library written in Rust. It uses ring for cryptography and webpki for certificate verification.
基于Actor模型的编程库,同时支持同步和异步,但这个库的开发貌似已经停滞,且actix的作者已经被喷子喷下线了,宣布永远退出开源界,actix团队现在一直在专注于actix-web的开发,喷子的力量,又要用又要喷。