macro-toolset

Crates.iomacro-toolset
lib.rsmacro-toolset
version
sourcesrc
created_at2024-11-08 14:00:18.928764
updated_at2024-12-08 08:34:31.940938
descriptionSome useful macros
homepage
repositoryhttps://github.com/cxw620/macro-toolset
max_upload_size
id1441233
Cargo.toml error:TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
陈寒彤 (cxw620)

documentation

README

macro-toolset

Crates.io Version docs.rs GitHub Tag

Some useful macros, to make the repetitive code less.

Features

  • str_concat almost everything
  • Hashing and encode to HEX
    • MD5
    • SHA256
    • SHA384
    • SHA512
  • ...

The features listed in Cargo.toml:

  • dev: For development and enable all features. Not recommended since introducing axum, etc will add many dependencies.
  • macros-base64: Base64 encode and decode related utilities.
  • macros-hash: Hash algorithms (MD5, SHA256, SHA384, SHA512) related utilities.
  • macros-random: Random number / string related utilities. You shall add rand to your Cargo.toml.
  • macros-random-fast: Random number / string related utilities. You shall add rand to your Cargo.toml.
  • macros-string: String related utilities.
    • macros-string-ext-axum: implement IntoResponse for StringExt.
    • macros-string-ext-base64: wrapper that indicates the inner slice should be encoded in base64 over &[u8]
    • macros-string-ext-hex: advanced hex encoding based on const-hex, with better performance than simple NumStr.
    • macros-string-ext-ryu: fload number support.

MSRV

1.66

Notice

This crate is currently intended for personal use mostly, but contributions are welcome.

LICENSE

GPL-3.0-only

Commit count: 27

cargo fmt