[package]
edition = "2021"
rust-version = "1.87.0"
name = "sabi-rust"
version = "0.7.0"
authors = ["Takayuki Sato <sttk.xslet@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A small framework to separate logics and data accesses for Rust application."
documentation = "https://docs.rs/sabi-rust"
readme = "README.md"
keywords = [
"framework",
"logic",
"separation",
"transaction",
]
categories = [
"rust-patterns",
"development-tools",
"asynchronous",
]
license = "MIT"
repository = "https://github.com/sttk/sabi-rust"
[package.metadata.docs.rs]
all-features = true
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = []
full = ["tokio"]
tokio = [
"dep:tokio",
"dep:futures",
"setup_read_cleanup/tokio",
]
[lib]
name = "sabi"
path = "src/lib.rs"
[[test]]
name = "run_async_tests"
path = "tests/run_async_tests.rs"
[[test]]
name = "run_tests"
path = "tests/run_tests.rs"
[[test]]
name = "txn_async_tests"
path = "tests/txn_async_tests.rs"
[[test]]
name = "txn_tests"
path = "tests/txn_tests.rs"
[[test]]
name = "uses_and_setup_async_in_static_tests"
path = "tests/uses_and_setup_async_in_static_tests.rs"
[[test]]
name = "uses_and_setup_in_func_tests"
path = "tests/uses_and_setup_in_func_tests.rs"
[[test]]
name = "uses_and_setup_in_static_tests"
path = "tests/uses_and_setup_in_static_tests.rs"
[[test]]
name = "uses_async_and_setup_async_in_func_tests"
path = "tests/uses_async_and_setup_async_in_func_tests.rs"
[dependencies.errs]
version = "0.8"
[dependencies.futures]
version = "0.3"
optional = true
[dependencies.inventory]
version = "0.3"
[dependencies.setup_read_cleanup]
version = "0.8"
[dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"sync",
"macros",
"time",
]
optional = true
[dependencies.trait-variant]
version = "0.1.2"
[dev-dependencies.override_macro]
version = "0.1"
[dev-dependencies.trybuild]
version = "1"