Cargo Features

Metered has no features set by default.

[dependencies]
metered = { version = "0.9.0", features = ["serialize", "error-count-skip-cleared-by-default"] }
default

no features by default

serialize

Use the serde feature to make metered' types implement Serialize

error-count-skip-cleared-by-default

When enabled, the error count macro will skip serializing cleared entries (e.g counters with value 0) This can be overridden with the skip_cleared macro attribute

Enables error-count-skip-cleared-by-default of metered-macro