PackageTrack
Sign in Get early access

metrics-macros

Macros for the metrics crate.

0.7.1 35M downloads/mo #1550 most downloaded on crates.io metrics-rs/metrics

What this package is like to depend on

Last release 3 years ago

no release in 18 months

Release timing varies

gaps range from 2 weeks to 9 months

Nearly every release is documented

notes for 9 of 10 stable releases

Nothing withdrawn

no release was ever pulled

6 years old

19 releases · first in 2020

0 releases in the last 12 months

see the full history below

Release timeline

19 releases · Jun 2020 to Dec 2023
2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 19
  1. 0.7.1 23 Dec 2023

    Nothing published for this version

  2. 0.7.0 16 Apr 2023
    Release notes

    Changed

    • Bump MSRV to 1.61.0.

    Fixed

    • Type paths are now fully qualified in all macros to avoid issues with local import scopes having a pre-existing metrics module.
    Open source →
  3. 0.6.0 22 Jul 2022
    Release notes

    Changed

    • Updated the describe macros to support the recent change to taking metrics::SharedString instead of &'static str for description strings.
    Open source →
  4. 0.5.1 06 Feb 2022
    Release notes

    Maintenance release.

    Open source →
  5. 0.5.0 15 Jan 2022
    Release notes

    Added

    • When describing a metric, a constant can now be used for the description itself.
    • Label keys can now be general expressions i.e. constants or variables. Due to limitations in how procedural macros work, and the facilities available in stable Rust for const traits, even &'static str constants will cause allocations when used for emitting a metric.

    Changed

    • Correctly scoped the required features of various dependencies to reduce build times/transitive dependencies.
    • Updated macros to coincide with the update to metrics for metric handles. This includes renaming register_* macros to describe_*, which are purely for providing data that describes a metric but does not initialize it in any way, and providing new register_* macros which do initialize a metric.
    • Updated the describe_* macros -- née register_* -- to require a description, and an optional unit. As describing a metric does not register it in the sense of ensuring that it is present on the output of an exporter, having the description be optional no longer makes sense.
    • Additionally, the describe macros no longer take labels. In practice, varying the description of a specific metric based on label values would be counter-intuitive, and to support this corner case requires adds significant complexity to the macro parsing logic.

    Removed

    • Two unecessary dependencies, lazy_static and regex.
    Open source →
  6. 0.4.1 16 Dec 2021
    Release notes

    Changed

    • Removed unnecessary proc-macro-hack dependency.
    Open source →
  7. 0.4.0 18 May 2021
    Release notes

    Changed

    • Updates to macros to support the removal of NameParts and related machinery.
    Open source →
  8. 0.3.0 03 May 2021
    Release notes

    Changed

    • Updates to macros to support changes in Recorder around how keys are taken.
    Open source →
  9. 0.2.0 03 Feb 2021
    Release notes

    Changed

    • Added support for owned strings as metric names. #170
    Open source →
  10. 0.1.0 22 Jan 2021
    Release notes

    Added

    • Effective birth of the crate.
    Open source →
  11. 0.1.0-alpha.9 18 Dec 2020 pre-release

    Nothing published for this version

  12. 0.1.0-alpha.8 18 Dec 2020 pre-release

    Nothing published for this version

  13. 0.1.0-alpha.7 25 Nov 2020 pre-release

    Nothing published for this version

  14. 0.1.0-alpha.6 25 Nov 2020 pre-release

    Nothing published for this version

  15. 0.1.0-alpha.5 24 Oct 2020 pre-release

    Nothing published for this version

  16. 0.1.0-alpha.4 24 Oct 2020 pre-release

    Nothing published for this version

  17. 0.1.0-alpha.3 16 Sep 2020 pre-release

    Nothing published for this version

  18. 0.1.0-alpha.2 22 Jul 2020 pre-release

    Nothing published for this version

  19. 0.1.0-alpha.1 17 Jun 2020 pre-release

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive