#casing #stringify #proc-macro #macro #heck

macro heck-but-macros

A proc macro wrapper around the heck crate, so that its casing functions can be applied to identifiers. Also contains a workaround for (limited) stringification.

1 unstable release

0.0.1 Oct 3, 2020

#9 in #casing

Download history 25/week @ 2024-03-11 50/week @ 2024-03-18 22/week @ 2024-03-25 61/week @ 2024-04-01 74/week @ 2024-04-08 38/week @ 2024-04-15 22/week @ 2024-04-22 12/week @ 2024-04-29 18/week @ 2024-05-06 14/week @ 2024-05-13 19/week @ 2024-05-20 14/week @ 2024-05-27 15/week @ 2024-06-03 11/week @ 2024-06-10 15/week @ 2024-06-17 21/week @ 2024-06-24

64 downloads per month
Used in 3 crates (2 directly)

MIT/Apache

10KB
84 lines

heck-but-macros

Lib.rs Crates.io Docs.rs

Rust 1.40.0 Build Status Crates.io - License

GitHub open issues open pull requests crev reviews

A proc macro wrapper around the heck crate, so that its casing functions can be applied to identifiers.

Also contains a workaround for (limited) stringification.

Installation

Please use cargo-edit to always add the latest version of this library:

cargo add heck-but-macros

Example

// TODO_EXAMPLE

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Code of Conduct

Changelog

Versioning

heck-but-macros strictly follows Semantic Versioning 2.0.0 with the following exceptions:

  • The minor version will not reset to 0 on major version changes (except for v1).
    Consider it the global feature level.
  • The patch version will not reset to 0 on major or minor version changes (except for v0.1 and v1).
    Consider it the global patch level.

This includes the Rust version requirement specified above.
Earlier Rust versions may be compatible, but this can change with minor or patch releases.

Which versions are affected by features and patches can be determined from the respective headings in CHANGELOG.md.

Dependencies

~580KB