diff --git a/Cargo.toml b/Cargo.toml index da74604..7fd1020 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "mettrics" -version = "0.0.3" +version = "0.0.4" description = "Makes publishing meaningful metrics from applications easier." authors = ["Dominik Werder "] license = "GPL-3.0-only" edition = "2024" [dependencies] -mettrics-macros = { version = "0.0.3", path = "../mettrics-macros" } +serde = { version = "1", features = ["derive"] } +mettrics-macros = { version = "0.0.4", path = "../mettrics-macros" } diff --git a/src/lib.rs b/src/lib.rs index 9bedb0e..aae71ec 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,2 +1,6 @@ pub mod macros; pub mod types; + +pub mod rexport { + pub use serde; +} diff --git a/src/types.rs b/src/types.rs index e83b00f..c6f53f6 100644 --- a/src/types.rs +++ b/src/types.rs @@ -1,4 +1,6 @@ -#[derive(Debug)] +use crate::rexport::serde; + +#[derive(Debug, serde::Serialize)] pub struct CounterU32 { v: u32, }