[package]
edition = "2024"
rust-version = "1.88"
name = "reliar-core"
version = "0.4.1"
authors = ["Sisa"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure envelope/message model shared by every Reliar crate — no storage or transport dependency."
readme = "README.md"
keywords = [
"outbox",
"inbox",
"idempotency",
"messaging",
"postgres",
]
categories = [
"asynchronous",
"database",
]
license = "MIT"
repository = "https://github.com/sisaio/sisa-reliar"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["json"]
json = ["dep:serde_json"]
serde = [
"serde/std",
"time/parsing",
"time/formatting",
"time/serde-human-readable",
]
[lib]
name = "reliar_core"
path = "src/lib.rs"
[[test]]
name = "correlation_id_serde_rejects_overlong"
path = "tests/correlation_id_serde_rejects_overlong.rs"
required-features = ["serde"]
[[test]]
name = "debug_never_prints_payload_or_header_values"
path = "tests/debug_never_prints_payload_or_header_values.rs"
[[test]]
name = "envelope_builder_produces_typed_metadata"
path = "tests/envelope_builder_produces_typed_metadata.rs"
[[test]]
name = "envelope_builder_setters_and_conversation_rooting"
path = "tests/envelope_builder_setters_and_conversation_rooting.rs"
[[test]]
name = "envelope_json_round_trip"
path = "tests/envelope_json_round_trip.rs"
required-features = ["json"]
[[test]]
name = "headers_reject_reserved_prefix"
path = "tests/headers_reject_reserved_prefix.rs"
[[test]]
name = "ids_and_content_type_reject_empty_and_overlong"
path = "tests/ids_and_content_type_reject_empty_and_overlong.rs"
[[test]]
name = "ids_sentinel_and_display"
path = "tests/ids_sentinel_and_display.rs"
[[test]]
name = "json_serializer_errors"
path = "tests/json_serializer_errors.rs"
required-features = ["json"]
[[test]]
name = "message_type_renders_stable_identity"
path = "tests/message_type_renders_stable_identity.rs"
[[test]]
name = "metadata_serde_round_trip"
path = "tests/metadata_serde_round_trip.rs"
required-features = ["serde"]
[[test]]
name = "metadata_serde_tolerates_partial_json"
path = "tests/metadata_serde_tolerates_partial_json.rs"
required-features = ["serde"]
[[test]]
name = "parsing_rejects_control_characters"
path = "tests/parsing_rejects_control_characters.rs"
[[test]]
name = "publisher_batch_default_is_positional"
path = "tests/publisher_batch_default_is_positional.rs"
[[test]]
name = "serde_rejects_invalid_endpoint_address_and_content_type"
path = "tests/serde_rejects_invalid_endpoint_address_and_content_type.rs"
required-features = ["serde"]
[[test]]
name = "settings_error_constructors"
path = "tests/settings_error_constructors.rs"
[[bench]]
name = "serialization"
path = "benches/serialization.rs"
harness = false
required-features = ["json"]
[dependencies.bytes]
version = "1.12"
[dependencies.serde]
version = "1"
features = ["derive"]
default-features = false
[dependencies.serde_json]
version = "1"
optional = true
[dependencies.time]
version = "0.3.47"
features = ["std"]
default-features = false
[dependencies.uuid]
version = "1.26"
features = [
"v7",
"std",
]
default-features = false
[dev-dependencies.criterion]
version = "0.8"
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.tokio]
version = "1.53"
features = [
"rt",
"sync",
"time",
"macros",
"rt-multi-thread",
"macros",
]
default-features = false
[lints.clippy]
expect_used = "warn"
panic = "warn"
unwrap_used = "warn"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"