-
Notifications
You must be signed in to change notification settings - Fork 1
refactor!: make global core optional, add derive macro, add MetricsGroup
and MetricsGroupSet
traits, reoganize modules
#15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
81c9d9f
WIP demo
Arqu beabbe3
wip: Metric sets
Frando 1048571
fix: usage with global core is possible too
Frando 7edb783
feat: add MetricExt to keep existing method
Frando 25d74c9
refactor: reorganize and make static core optional
Frando ee151a1
cleanups
Frando aa3745f
cleanup
Frando 737f192
fix: doctest
Frando 57485e0
fix: feature flags in tests
Frando 9ecdf6b
chore: clippy
Frando 83b0335
cleanup
Frando edca9eb
refactor: rename traits
Frando fabc660
fixup
Frando 04b9c4f
chore: minor fixes
Frando 2fd1c06
chore: make cargo-deny happy
Frando c0a4f39
feat: add MetricsGroup::values
Frando b7f521f
feat: add ValuesIter
Frando fe1a49d
chore: clippy
Frando 242341d
chore: remove leftover
Frando 554efac
feat: MetricsGroup derive
Frando e61cf8f
feat: drop struct_iterable
Frando 07b43fd
chore: fix
Frando 2c2eaab
chore: fix edition
Frando e15ab47
improve derive macro
Frando df64227
docs and cleanups
Frando 7d3af42
streamline APIs
Frando 4f10df0
fix: imports for no features
Frando 8bbcea5
feat: add metrics description attribute
Frando 357d542
fix: make MetricValue non-exhaustive
Frando 3507bf0
chore: Cargo.toml
Frando 7ddd198
rename: description -> help
Frando a1a6e10
docs: docstring fixes
Frando b98b9c5
chore: fmt
Frando ff4ac2a
docs: fixes
Frando e590998
fix: cleanup `metrics` feature flag usage (#20)
Frando 3098da0
Merge remote-tracking branch 'origin/main' into Frando/refactor
Frando File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[package] | ||
name = "iroh-metrics-derive" | ||
version = "0.1.0" | ||
edition = "2021" | ||
description = "derive macros for iroh-metrics" | ||
license = "MIT OR Apache-2.0" | ||
authors = ["Frando <[email protected]>", "n0 team"] | ||
repository = "https://github.com/n0-computer/iroh-metrics" | ||
|
||
[lib] | ||
proc-macro = true | ||
|
||
[dependencies] | ||
heck = "0.5" | ||
proc-macro2 = "1" | ||
quote = "1" | ||
syn = "2" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.