27 releases

0.6.3 Nov 12, 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

#2106 in Procedural macros

Download history 287/week @ 2024-09-02 417/week @ 2024-09-09 97/week @ 2024-09-16 22/week @ 2024-09-23 65/week @ 2024-09-30 4/week @ 2024-10-07 4/week @ 2024-10-14 54/week @ 2024-10-28 50/week @ 2024-11-04 250/week @ 2024-11-11 41/week @ 2024-11-18 27/week @ 2024-11-25 28/week @ 2024-12-02

375 downloads per month
Used in 4 crates (2 directly)

MIT license

14KB
55 lines

Rubedo macros

Rust Crate version CI Docs License

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.

Dependencies

~77KB