Code Monkey home page Code Monkey logo

handpick-rust's Introduction

Short and handpick Rust crates list.

Rust patterns

  • cargo add anyhow
  • cargo add thiserror
  • cargo add once_cell
  • cargo add dotenvy
  • cargo add fastrand
  • cargo add rand
  • cargo add regex
  • cargo add itertools
  • cargo add duplicate
  • cargo add generator
  • cargo add sysinfo
  • cargo add num_cpus

Data Type

  • cargo add uuid --features v4,fast-rng
  • cargo add byteorder
  • cargo add bytes
  • cargo add indexmap
  • cargo add rust_decimal
    • support Decimal::MAX 7.92e28
  • cargo add bigdecimal
    • used when num > Decimal::MAX
  • cargo add num-bigint
    • when num > i128::MAX 1.7e38

Enum

  • cargo add num_enum
  • cargo add strum --features derive
  • cargo add enum-iterator
  • cargo add serde_with
    • serde string enum
  • cargo add serde_repr
    • serde num enum

Date and Time

  • cargo add chrono --no-default-features --features std,clock,serde
  • cargo add chrono-tz
  • cargo add time --features formatting,macros

Logging

  • cargo add log --features release_max_level_info
  • cargo add env_logger
  • cargo add flexi_logger

File System

  • cargo add glob

File Processing

  • cargo add calamine
  • cargo add rust_xlsxwriter --features zlib,ryu

Serialization

  • cargo add serde --features derive
  • cargo add serde_json
  • cargo add yaml-rust2

Web Client

  • cargo add reqwest --features json,gzip
  • cargo add scraper
    • web content extracting

ORM & SQL Tools

  • cargo add tokio-postgres --features with-serde_json-1,with-chrono-0_4
  • cargo add deadpool-postgres
  • cargo add postgres-from-row
  • cargo add postgres-types --features derive
  • cargo add sqlx --features runtime-tokio,postgres,chrono
  • cargo add sea-orm --features sqlx-postgres,runtime-tokio-native-tls,macros

Web Framework

  • cargo add axum
  • cargo add axum-extra --features typed-header
  • cargo add tower-http --features cors
  • cargo add jsonwebtoken
  • cargo add validator --features derive
  • cargo add serde_urlencoded

Web3

  • cargo add alloy
  • ethers = { version = "2.0.13", default-features = false, features = ["abigen", "legacy", "openssl"] }

KV DataBase

  • cargo add rocksdb

Message Queue

  • cargo add pulsar --no-default-features --features tokio-runtime,compression
  • cargo add schemars
    • make pulsar json schema

Data Analysis

  • cargo add polars --features parquet,lazy,is_in,rank,abs,streaming,cutqcut,propagate_nans

Version Structure

  • cargo add semver

Async

  • cargo add futures-util
  • cargo add tokio --features full
  • cargo add async-channel

Concurrency

  • cargo add rayon

Shell

  • cargo add colored
  • cargo add mincolor
  • cargo add enable-ansi-support
    • for windows
  • cargo add clap --features derive
  • cargo add pico-args
  • cargo add indicatif
  • cargo add ratatui

Cryptography

Algorithm

  • cargo add aho-corasick
  • cargo add alphanumeric-sort
  • cargo add float-ord

Language bindings

Optimize Performance

  • arc-swap
  • phf

handpick-rust's People

Contributors

uuip avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.