Conditional compilation using enums

There was a blog post recently about using enums as a replacement for conditional compilation. Does anyone remember the title or have a link?


If it was posted recently, you can look through the recent entries of This week in Rust, which lists most blog posts related to Rust that were released in each week.

Thanks, I should have looked there first instead of trying to google.

Found it: optional-trait-methods/ at master · daniel5151/optional-trait-methods · GitHub (linked from Rust 2030 Christmas list: Better cfg : rust)

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.