ip-macro 0.1.0

Macros for writing literal IP addresses
Documentation
  • Coverage
  • 0%
    0 out of 4 items documented0 out of 3 items with examples
  • Size
  • Source code size: 5.57 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 264.48 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • lambda-fairy/ip-macro
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • lambda-fairy

ip-macro

Build status Cargo

Macros for writing literal IP addresses.

See https://github.com/rust-lang/rfcs/issues/1926 for the background behind this crate.

Rust nightly

This crate uses the recently implemented procedural macros feature, and so requires a nightly version of the compiler.

If you use rustup (recommended), then you can install Rust nightly using these instructions.

Example

#![feature(proc_macro)]  // <- Don't forget this!!!

extern crate ip_macro;
use ip_macro::ip;

fn main() {
    println!("There's no place like {}", ip!("127.0.0.1"));
}