22 releases (4 breaking)

0.5.3 May 3, 2024
0.5.1 Mar 11, 2024
0.4.2 Dec 9, 2023
0.3.6 Oct 17, 2023

#1529 in Procedural macros

Download history 81/week @ 2024-03-16 13/week @ 2024-03-23 203/week @ 2024-03-30 17/week @ 2024-04-06 31/week @ 2024-04-13 134/week @ 2024-04-20 312/week @ 2024-04-27 175/week @ 2024-05-04 142/week @ 2024-05-11 259/week @ 2024-05-18 218/week @ 2024-05-25 745/week @ 2024-06-01 470/week @ 2024-06-08 373/week @ 2024-06-15 655/week @ 2024-06-22 582/week @ 2024-06-29

2,243 downloads per month
Used in 4 crates (2 directly)

MIT license

9KB

Rubedo macros

This crate provides proc macros for the main rubedo crate. It is not intended to be used directly, but rather to be used with the Rubedo crate, which re-exports its functionality.

It exists because it is not currently possible to have proc macros in the same crate as the code that uses them. This is because the compiler needs to compile the proc macros before it can use them, but it can't compile them until it has compiled the code that uses them. This is a chicken-and-egg problem, and the solution is to put the proc macros in a separate crate.

Features

Macros

The macros are provided to provide syntactic sugar for common operations.

  • ip! Builds an IP address from a range of input types.

lib.rs:

This library provides macros that add syntactic sugar for common operations.

Specifically, the macros implemented in this crate are proc macros, which have to live separately from other code. They are part of the rubedo ecosystem.

Dependencies

~86KB