[package]
edition = "2024"
rust-version = "1.88"
name = "metering"
version = "0.25.0"
authors = ["hupe1980"]
build = false
include = [
"/src/**",
"/tests/**",
"/examples/**",
"/site/content/**",
"/README.md",
"/CHANGELOG.md",
"/LICENSE-*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "German energy metering quantities: DST-correct Europe/Berlin and 06:00-Gastag calendar arithmetic, exact decimal values, and the market's own code lists. Zero I/O, no async, no clock."
homepage = "https://hupe1980.github.io/metering"
readme = "README.md"
keywords = [
"energy",
"metering",
"bdew",
"mako",
"msbg",
]
categories = [
"science",
"data-structures",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/hupe1980/metering"
[package.metadata.docs.rs]
all-features = true
targets = ["x86_64-unknown-linux-gnu"]
[features]
default = []
serde = [
"dep:serde",
"time/serde",
]
[lib]
name = "metering"
path = "src/lib.rs"
[[example]]
name = "pipeline"
path = "examples/pipeline.rs"
[[test]]
name = "it"
path = "tests/it/main.rs"
[dependencies.rust_decimal]
version = "1.37"
features = ["macros"]
[dependencies.serde]
version = "1.0.220"
features = ["derive"]
optional = true
[dependencies.thiserror]
version = "2"
[dependencies.time]
version = "0.3.47"
features = [
"std",
"macros",
"parsing",
"formatting",
]
[dependencies.time-tz]
version = "2"
features = ["db"]
[dev-dependencies.postcard]
version = "1"
features = ["use-std"]
default-features = false
[dev-dependencies.proptest]
version = "1.6"
[dev-dependencies.serde_json]
version = "1.0.100"
[dev-dependencies.time]
version = "0.3.47"
features = ["macros"]