cargo add eyre
- include error location: file name and line
cargo add anyhow
- without location
cargo add thiserror
crate | Use cases |
---|---|
std::cell::OnceCell | Single Thread |
std::sync::OnceLock | Multi-Thread |
cargo add once_cell |
All |
cargo add regex
cargo add dotenvy
cargo add fastrand
cargo add rand
cargo add duplicate
cargo add display_json
cargo add itertools
cargo add generator
cargo add uuid --features v4,fast-rng
cargo add byteorder 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
- used when num > i128::MAX 1.7e38
cargo add chrono --no-default-features --features clock,serde
cargo add chrono-tz
cargo add time --features formatting,macros
cargo add num_enum
cargo add strum --features derive
cargo add enum-iterator
cargo add serde_with
- has extra features
- serde string enum
cargo add serde_repr
- serde num enum
cargo add log --features release_max_level_info
cargo add env_logger
cargo add flexi_logger
- has extra features
cargo add glob
cargo add calamine
- has extra features
cargo add rust_xlsxwriter --features zlib,ryu
cargo add roxmltree
cargo add quick-xml
- has extra features
cargo add serde --features derive
cargo add serde_json
- has extra features
cargo add yaml-rust2
cargo add reqwest --features json,gzip,native-tls-alpn
cargo add scraper
- web content extracting
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,tls-native-tls,postgres,chrono
cargo add sea-orm --features sqlx-postgres,runtime-tokio-native-tls,macros
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
cargo add alloy
ethers = { version = "2.0.13", default-features = false, features = ["abigen", "legacy", "openssl"] }
cargo add rocksdb
cargo add pulsar --no-default-features --features tokio-runtime,compression
cargo add schemars
- has extra features
- make pulsar json schema
cargo add polars --features parquet,lazy,is_in,rank,abs,streaming,cutqcut,propagate_nans
cargo add ndarray --features rayon
cargo add semver
cargo add futures-util
cargo add tokio --features full
cargo add async-channel
cargo add rayon
cargo add colored
cargo add mincolor
cargo add crossterm --no-default-features --features events
cargo add enable-ansi-support
- for windows
cargo add clap --features derive
cargo add pico-args
cargo add indicatif
cargo add ratatui
cargo add sysinfo
cargo add num_cpus
cargo add aho-corasick
cargo add alphanumeric-sort
cargo add float-ord
- arc-swap
- phf