[package]
edition = "2024"
rust-version = "1.88"
name = "rutmf"
version = "0.3.0"
build = false
exclude = [
"/concepts",
"/specs",
"/.specify",
"/.claude",
"/scripts",
"/tests",
"/.github",
"/.vscode",
"/xtask",
"/deny.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Ergonomic, v5-first Rust types and clients for the TM Forum Open API domain model (unofficial)"
documentation = "https://docs.rs/rutmf"
readme = "README.md"
keywords = [
"tmforum",
"telco",
"oda",
"openapi",
"bss",
]
categories = [
"api-bindings",
"data-structures",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/hupe1980/rutmf"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
account = ["party"]
alarm = ["service"]
api = [
"dep:futures-core",
"dep:async-trait",
"dep:http",
"dep:bytes",
"dep:thiserror",
]
api-tmf620 = [
"api",
"product",
]
api-tmf621 = [
"api",
"ticket",
]
api-tmf622 = [
"api",
"order",
]
api-tmf629 = [
"api",
"customer",
]
api-tmf632 = [
"api",
"party",
]
api-tmf634 = [
"api",
"resource",
"product",
]
api-tmf635 = [
"api",
"usage",
]
api-tmf637 = [
"api",
"product",
]
api-tmf638 = [
"api",
"service",
]
api-tmf639 = [
"api",
"resource",
]
api-tmf642 = [
"api",
"alarm",
]
api-tmf666 = [
"api",
"account",
]
api-tmf669 = [
"api",
"party",
]
api-tmf678 = [
"api",
"bill",
]
api-tmf679 = [
"api",
"product",
]
bill = [
"party",
"product",
]
customer = [
"party",
"account",
]
default = [
"party",
"customer",
"product",
"order",
"ticket",
"alarm",
"bill",
"account",
"usage",
]
full = [
"default",
"api",
"transport-reqwest",
"api-tmf620",
"api-tmf621",
"api-tmf622",
"api-tmf629",
"api-tmf632",
"api-tmf634",
"api-tmf635",
"api-tmf637",
"api-tmf638",
"api-tmf639",
"api-tmf642",
"api-tmf666",
"api-tmf669",
"api-tmf678",
"api-tmf679",
"server",
"server-axum",
"mock",
"schemars",
]
mock = ["server"]
order = [
"party",
"product",
]
party = []
product = [
"party",
"service",
"resource",
]
resource = ["party"]
schemars = ["dep:schemars"]
server = [
"api",
"dep:async-trait",
"dep:num-bigint",
]
server-axum = [
"server",
"dep:axum",
"dep:tokio",
]
service = [
"party",
"resource",
]
ticket = ["party"]
transport-reqwest = [
"api",
"dep:reqwest",
"dep:tokio",
"reqwest/rustls",
"reqwest/http2",
"reqwest/query",
"reqwest/form",
]
usage = [
"party",
"product",
]
[lib]
name = "rutmf"
path = "src/lib.rs"
[[example]]
name = "assurance_workflow"
path = "examples/assurance_workflow.rs"
required-features = [
"api-tmf621",
"api-tmf642",
"api-tmf678",
"mock",
]
[[example]]
name = "catalog_sync"
path = "examples/catalog_sync.rs"
required-features = [
"api-tmf620",
"mock",
]
[[example]]
name = "customer_onboarding"
path = "examples/customer_onboarding.rs"
required-features = [
"api-tmf629",
"api-tmf632",
"mock",
]
[[example]]
name = "inventory_chain"
path = "examples/inventory_chain.rs"
required-features = [
"api-tmf634",
"api-tmf637",
"api-tmf638",
"api-tmf639",
"mock",
]
[[example]]
name = "order_lifecycle"
path = "examples/order_lifecycle.rs"
required-features = [
"api-tmf620",
"api-tmf622",
"mock",
]
[[example]]
name = "serve_catalog"
path = "examples/serve_catalog.rs"
required-features = [
"server-axum",
"api-tmf620",
"transport-reqwest",
]
[dependencies.async-trait]
version = "0.1.89"
optional = true
[dependencies.axum]
version = "0.8.7"
features = [
"http1",
"tokio",
]
optional = true
default-features = false
[dependencies.bon]
version = "3.10.3"
[dependencies.bytes]
version = "1.12.2"
optional = true
[dependencies.futures-core]
version = "0.3.34"
optional = true
[dependencies.http]
version = "1.5.0"
optional = true
[dependencies.indexmap]
version = "2.14.2"
features = ["serde"]
[dependencies.jiff]
version = "1.0.1"
features = [
"std",
"serde",
]
default-features = false
[dependencies.num-bigint]
version = "0.4.8"
optional = true
[dependencies.reqwest]
version = "0.13.5"
features = ["json"]
optional = true
default-features = false
[dependencies.rust_decimal]
version = "1.43.0"
features = [
"serde",
"std",
]
default-features = false
[dependencies.schemars]
version = "1.2.3"
features = ["rust_decimal1"]
optional = true
[dependencies.serde]
version = "1.0.229"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.154"
features = [
"preserve_order",
"arbitrary_precision",
"raw_value",
]
[dependencies.thiserror]
version = "2.0.21"
optional = true
[dependencies.tokio]
version = "1.54.1"
features = [
"sync",
"time",
]
optional = true
default-features = false
[dev-dependencies.async-trait]
version = "0.1.89"
[dev-dependencies.axum]
version = "0.8.7"
features = [
"http1",
"tokio",
]
[dev-dependencies.bytes]
version = "1.12.2"
[dev-dependencies.futures]
version = "0.3.34"
[dev-dependencies.http]
version = "1.5.0"
[dev-dependencies.proptest]
version = "1.12.0"
[dev-dependencies.serde_norway]
version = "0.9.42"
[dev-dependencies.similar-asserts]
version = "2.0.0"
[dev-dependencies.tokio]
version = "1.54.1"
features = [
"macros",
"rt-multi-thread",
]
[lints.clippy]
missing_errors_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
struct_excessive_bools = "allow"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "deny"
unsafe_code = "forbid"