#radicle #reference #git #refname

radicle-git-ref-format

Radicle re-exports and macros for git-ref-format-core

1 unstable release

0.1.0 Feb 20, 2026

#1442 in Rust patterns

Download history 35/week @ 2026-02-15 327/week @ 2026-02-22 291/week @ 2026-03-01 498/week @ 2026-03-08 1430/week @ 2026-03-15 967/week @ 2026-03-22 940/week @ 2026-03-29 474/week @ 2026-04-05

4,022 downloads per month
Used in 17 crates (6 directly)

MIT/Apache

11KB
199 lines

This crate depends on and re-exports from git_ref_format_core.

Macros

Instead of providing procedural macros, like git_ref_format it just provides much simpler declarative macros, guarded by the feature flag macro.

Benefits

  • Does not depend on radicle-git-ext.
  • Does not pull in procedural macro dependencies.
  • Has much smaller compile-time overhead than git_ref_format.

Drawback

The main drawback is that the macros in this crate cannot provide compile time validation of the argument. Thus, these macros must be used in conjunction with testing: If all generated objects are used in tests, and these tests are run, then the guarantees are equally strong. Consumers that do not or cannot test their code should not use the macros then.

Dependencies

~195–720KB
~16K SLoC