[package]
edition = "2021"
name = "ocpi-tariffs"
version = "0.47.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "OCPI tariff calculations"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://codeberg.org/tandemdrive/ocpi-tariffs"
[lib]
name = "ocpi_tariffs"
path = "src/lib.rs"
[[example]]
name = "generate_cdr_from_tariff"
path = "examples/generate_cdr_from_tariff.rs"
doc-scrape-examples = true
[[example]]
name = "lint_tariff"
path = "examples/lint_tariff.rs"
doc-scrape-examples = true
[[example]]
name = "price_cdr_with_known_version"
path = "examples/price_cdr_with_known_version.rs"
doc-scrape-examples = true
[[example]]
name = "price_cdr_with_unknown_version"
path = "examples/price_cdr_with_unknown_version.rs"
doc-scrape-examples = true
[dependencies.chrono]
version = "0.4.44"
features = [
"clock",
"std",
]
default-features = false
[dependencies.chrono-tz]
version = "0.10.4"
features = ["std"]
default-features = false
[dependencies.json-tools]
version = "1.1.3"
default-features = false
[dependencies.num-derive]
version = "0.4.2"
default-features = false
[dependencies.num-traits]
version = "0.2.19"
default-features = false
[dependencies.rust_decimal]
version = "=1.39.0"
features = ["serde-with-arbitrary-precision"]
[dependencies.rust_decimal_macros]
version = "=1.39.0"
[dependencies.tracing]
version = "0.1"
features = [
"attributes",
"std",
]
default-features = false
[dev-dependencies.assert_matches]
version = "1.5.0"
default-features = false
[dev-dependencies.json-strip-comments]
version = "3.1.0"
[dev-dependencies.rand]
version = "0.10.1"
[dev-dependencies.serde]
version = "1.0.228"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1.0.149"
features = ["raw_value"]
default-features = false
[dev-dependencies.test-each]
version = "0.3.1"
[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
"ansi",
"fmt",
"registry",
"std",
]
default-features = false
[lints.clippy]
absolute_paths = "allow"
arbitrary_source_item_ordering = "allow"
blanket_clippy_restriction_lints = "allow"
default_numeric_fallback = "allow"
else_if_without_else = "allow"
error_impl_error = "allow"
exhaustive_enums = "allow"
exhaustive_structs = "allow"
expect_used = "allow"
implicit_return = "allow"
integer_division = "allow"
integer_division_remainder_used = "allow"
map_unwrap_or = "allow"
min_ident_chars = "allow"
missing_docs_in_private_items = "allow"
missing_errors_doc = "allow"
missing_inline_in_public_items = "allow"
missing_trait_methods = "allow"
modulo_arithmetic = "allow"
must_use_candidate = "allow"
non_ascii_literal = "allow"
pattern_type_mismatch = "allow"
pub_use = "allow"
pub_with_shorthand = "allow"
question_mark_used = "allow"
ref_patterns = "allow"
self_named_module_files = "allow"
semicolon_outside_block = "allow"
separated_literal_suffix = "allow"
shadow_reuse = "allow"
shadow_same = "allow"
shadow_unrelated = "allow"
single_call_fn = "allow"
single_char_lifetime_names = "allow"
std_instead_of_alloc = "allow"
std_instead_of_core = "allow"
struct_excessive_bools = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
unneeded_field_pattern = "allow"
unreachable = "allow"
use_debug = "allow"
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "warn"
priority = -2
[lints.clippy.pedantic]
level = "warn"
priority = -3
[lints.clippy.perf]
level = "warn"
priority = -4
[lints.clippy.restriction]
level = "warn"
priority = -5
[lints.clippy.style]
level = "warn"
priority = -6
[lints.clippy.suspicious]
level = "warn"
priority = -7
[lints.rust]
async_fn_in_trait = "warn"
dead_code = "warn"
edition_2024_expr_fragment_specifier = "allow"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unnameable-types = "warn"
unsafe_code = "warn"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_macro_rules = "warn"
unused_qualifications = "warn"
[lints.rust.future_incompatible]
level = "warn"
priority = -1
[lints.rust.let_underscore]
level = "warn"
priority = -2
[lints.rust.nonstandard-style]
level = "warn"
priority = -3
[lints.rust.rust_2018_compatibility]
level = "warn"
priority = -4
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -5
[lints.rust.rust_2021_compatibility]
level = "warn"
priority = -6
[lints.rust.rust_2024_compatibility]
level = "warn"
priority = -7
[lints.rust.unused]
level = "warn"
priority = -8
[lints.rust.warnings]
level = "warn"
priority = -9
[lints.rustdoc]
broken_intra_doc_links = "warn"
private_intra_doc_links = "warn"