26 unstable releases (5 breaking)

0.6.2 Sep 10, 2024
0.5.4 Sep 5, 2024
0.5.3 May 3, 2024
0.5.1 Mar 11, 2024
0.3.6 Oct 17, 2023

#2581 in Development tools

Download history 1264/week @ 2024-06-28 905/week @ 2024-07-05 1412/week @ 2024-07-12 561/week @ 2024-07-19 202/week @ 2024-07-26 17/week @ 2024-08-02 87/week @ 2024-08-30 592/week @ 2024-09-06 102/week @ 2024-09-13 36/week @ 2024-09-20 60/week @ 2024-09-27 14/week @ 2024-10-04 5/week @ 2024-10-11

123 downloads per month
Used in 2 crates

MIT license

13KB
55 lines

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

~78KB