[package]
edition = "2021"
rust-version = "1.82"
name = "dtmrs-server"
version = "0.5.0"
authors = ["jackwangfeng"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Distributed transaction coordinator: SAGA / TCC / two-phase messaging / XA / workflow, over HTTP and gRPC, embeddable as a library"
homepage = "https://github.com/jackwangfeng/dtmrs"
readme = "README.md"
keywords = [
"distributed",
"transaction",
"saga",
"tcc",
"microservices",
]
categories = [
"database",
"asynchronous",
"network-programming",
]
license = "Apache-2.0"
repository = "https://github.com/jackwangfeng/dtmrs"
[package.metadata.docs.rs]
all-features = true
[features]
default = ["grpc"]
grpc = [
"dep:tonic",
"dep:tonic-prost",
"dep:prost",
]
redis = ["dtmrs-store/redis"]
[lib]
name = "dtmrs_server"
path = "src/lib.rs"
[[example]]
name = "embedded"
path = "examples/embedded.rs"
[[example]]
name = "workflow"
path = "examples/workflow.rs"
[[test]]
name = "e2e"
path = "tests/e2e.rs"
[[test]]
name = "embedded"
path = "tests/embedded.rs"
[[test]]
name = "grpc"
path = "tests/grpc.rs"
[[test]]
name = "http"
path = "tests/http.rs"
[[test]]
name = "redis"
path = "tests/redis.rs"
[[test]]
name = "tcc_msg"
path = "tests/tcc_msg.rs"
[[test]]
name = "workflow"
path = "tests/workflow.rs"
[[test]]
name = "xa"
path = "tests/xa.rs"
[dependencies.anyhow]
version = "1"
[dependencies.axum]
version = "0.8"
[dependencies.dtmrs-core]
version = "0.5.0"
[dependencies.dtmrs-store]
version = "0.5.0"
[dependencies.prost]
version = "0.14"
optional = true
[dependencies.rand]
version = "0.8"
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"rustls-tls",
]
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.tonic]
version = "0.14"
optional = true
[dependencies.tonic-prost]
version = "0.14"
optional = true
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
[dev-dependencies.axum]
version = "0.8"
[dev-dependencies.dtmrs-xa]
version = "0.5.0"
[dev-dependencies.prost]
version = "0.14"
[dev-dependencies.redis]
version = "1"
features = [
"tokio-comp",
"script",
]
default-features = false
[dev-dependencies.sqlx]
version = "0.8"
features = [
"runtime-tokio",
"any",
"sqlite",
"postgres",
"mysql",
"macros",
]
default-features = false
[dev-dependencies.tokio]
version = "1"
features = ["full"]
[dev-dependencies.tokio-stream]
version = "0.1"
features = ["net"]
[dev-dependencies.tonic]
version = "0.14"
[dev-dependencies.tonic-prost]
version = "0.14"
[build-dependencies.protoc-bin-vendored]
version = "3"
[build-dependencies.tonic-prost-build]
version = "0.14"