(Tip of my fingers) Library with a macro to create an enum from a range

This page summarizes the projects mentioned and recommended in the original post on /r/rust

InfluxDB high-performance time series database
Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.
influxdata.com
featured
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
  1. enum-map

    I know I could write (and have written) this enum myself by hand. I don't want to use a newtype around u8 or something like that because I want the static guarantees of an enum — plus I'm using EnumMap to create statically-allocated maps with enum keys, so I'm hoping whatever this library was will play nicely with it.

  2. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB logo
  3. seq-macro

    Macro to repeat sequentially indexed copies of a fragment of code

  4. range-enum

    An attribute macro that generates enum variants from a range.

    I somewhat enjoy writing macros so i threw something together for you https://github.com/Strosel/range-enum

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Is std::collections::HashMap optimized for enums?

    2 projects | /r/rust | 2 Jun 2022
  • How to Pitch Your Boss to Adopt Apache Iceberg?

    4 projects | dev.to | 11 Apr 2025
  • Processing data with “Data Prep Kit” (part 2)

    2 projects | dev.to | 7 Apr 2025
  • Max severity RCE flaw discovered in widely used Apache Parquet

    5 projects | news.ycombinator.com | 6 Apr 2025
  • Beyond Traditional Pattern Matching in Lisp

    1 project | news.ycombinator.com | 5 Apr 2025

Did you know that Rust is
the 5th most popular programming language
based on number of references?