rubedo-macros

Crates.iorubedo-macros
lib.rsrubedo-macros
version0.6.2
sourcesrc
created_at2023-09-27 11:35:24.081377
updated_at2024-09-10 06:03:43.705402
descriptionProc macros for Rubedo
homepage
repositoryhttps://github.com/danwilliams/rubedo
max_upload_size
id984523
size18,334
Dan Williams (danwilliams)

documentation

README

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.

Commit count: 177

cargo fmt