你应知道的crate

基础库

  • overload Simplified operator overloading in Rust
  • enum-iterator Tools to iterate over all values of a type
  • cfg-if A if/elif-like macro for Rust #[cfg] statements
  • arrayref Two macros for taking array references in rust.
  • Educe This crate provides procedural macros to help you implement Rust-built-in traits quickly.
  • rust-derivative A set of alternative derive attributes for Rust
  • tap Generic extensions for tapping values in Rust.
  • strum A small rust library for adding custom derives to enums.
  • derive_more Some more derive(Trait) options.
  • rust-derive-builderderive builder implementation for rust structs.
  • enum_dispatch Near drop-in replacement for dynamic-dispatched method calls with up to 10x the speed.
  • paste Macros for all your token pasting needs.
  • num A collection of numeric types and traits for Rust.
  • either The enum Either with variants Left and Right is a general purpose sum type with two cases.
  • thiserror derive(Error) for struct and enum error types.
  • rayon A data parallelism library for Rust.
  • Crossbeam About Tools for concurrent programming in Rust.
  • async_trait Type erasure for async trait methods.
  • fs-err A simple wrapper around filesystem operations to provide more helpful error messages.
  • tempfile Temporary file library for rust.
  • bincode A binary encoder / decoder implementation in Rust.
  • maplit Rust container / collection literal macros for HashMap, HashSet, BTreeMap, BTreeSet.
  • indexmap A hash table with consistent order and fast iteration; access items by key or sequence index.