rustcane 0.1.0

Rust macros for general-purpose syntax sugar
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented0 out of 0 items with examples
  • Size
  • Source code size: 4.24 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.07 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • sagebind

rustcane

Rust macros for general-purpose syntax sugar.

Overview

One of the great uses of macros in Rust is to provide new, convenient syntax to improve code readability and reduce boilerplate. Generally each library provides its own helpful macros that apply to just that library's types, but there are other things we can use macros for as well.

Rustcane is a collection of macros that are general-purpose that provide some sort of code improvement, like concise syntax for common logic or for generating similar struct types. At worst, some may rely on types in the standard library; others may not rely on any types at all.

Here's a brief list of macros currently provided:

  • lets!: Flatten a pile of nested pattern matching into a series of sequential statements.

License

MIT