[package]
edition = "2024"
rust-version = "1.92.0"
name = "cf-modkit-db"
version = "0.2.0"
authors = ["Hypernetix"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ModKit database library"
readme = "README.md"
keywords = [
"cyberfabric",
"cyberfabric-modkit",
]
categories = ["development-tools"]
license = "Apache-2.0"
repository = "https://github.com/hypernetix/hyperspot"
[features]
default = []
integration = []
mysql = [
"sea-orm/sqlx-mysql",
"sqlx/mysql",
]
pg = [
"sea-orm/sqlx-postgres",
"sqlx/postgres",
]
sqlite = [
"sea-orm/sqlx-sqlite",
"sqlx/sqlite",
]
[lib]
name = "modkit_db"
path = "src/lib.rs"
[[example]]
name = "advisory_locks_demo"
path = "examples/advisory_locks_demo.rs"
[[test]]
name = "common"
path = "tests/common.rs"
[[test]]
name = "config_tests"
path = "tests/config_tests.rs"
[[test]]
name = "db_generic"
path = "tests/db_generic.rs"
[[test]]
name = "manager_tests"
path = "tests/manager_tests.rs"
[[test]]
name = "mod"
path = "tests/mod.rs"
[[test]]
name = "odata_compile"
path = "tests/odata_compile.rs"
[[test]]
name = "options_tests"
path = "tests/options_tests.rs"
[[test]]
name = "params_integration"
path = "tests/params_integration.rs"
[[test]]
name = "precedence_tests"
path = "tests/precedence_tests.rs"
[[test]]
name = "secure_odata_sqlite"
path = "tests/secure_odata_sqlite.rs"
[[test]]
name = "ui"
path = "tests/ui.rs"
[dependencies.anyhow]
version = "1.0"
[dependencies.async-trait]
version = "0.1"
[dependencies.bigdecimal]
version = "0.4"
[dependencies.chrono]
version = "0.4"
features = [
"serde",
"serde",
"clock",
]
default-features = false
[dependencies.dashmap]
version = "6.1"
[dependencies.dirs]
version = "6"
[dependencies.figment]
version = "0.10"
features = [
"yaml",
"env",
]
[dependencies.modkit-db-macros]
version = "0.2.0"
package = "cf-modkit-db-macros"
[dependencies.modkit-odata]
version = "0.2.0"
package = "cf-modkit-odata"
[dependencies.modkit-security]
version = "0.2.0"
package = "cf-modkit-security"
[dependencies.modkit-utils]
version = "0.2.0"
features = ["humantime-serde"]
package = "cf-modkit-utils"
[dependencies.regex]
version = "1.10"
[dependencies.rust_decimal]
version = "1.39"
features = ["serde"]
[dependencies.ryu]
version = "1.0"
[dependencies.sea-orm]
version = "1.1"
features = [
"runtime-tokio-rustls",
"with-uuid",
"with-chrono",
"with-rust_decimal",
"macros",
"with-time",
]
default-features = false
[dependencies.sea-orm-migration]
version = "1.1"
features = ["runtime-tokio-rustls"]
default-features = false
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.sqlx]
version = "0.8.6"
features = ["runtime-tokio-rustls"]
default-features = false
[dependencies.thiserror]
version = "2.0"
[dependencies.time]
version = "0.3"
features = [
"serde",
"formatting",
"parsing",
]
[dependencies.tokio]
version = "1.47"
features = ["full"]
[dependencies.tracing]
version = "0.1"
[dependencies.url]
version = "2.5"
[dependencies.uuid]
version = "1.19"
features = [
"serde",
"v4",
]
[dependencies.xxhash-rust]
version = "0.8"
features = ["xxh3"]
[dev-dependencies.anyhow]
version = "1.0"
[dev-dependencies.serde-saphyr]
version = "0.0.16"
[dev-dependencies.temp-env]
version = "0.3"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.testcontainers]
version = "0.26"
[dev-dependencies.testcontainers-modules]
version = "0.14"
features = [
"postgres",
"mysql",
]
[dev-dependencies.tokio]
version = "1.47"
features = ["full"]
[dev-dependencies.trybuild]
version = "1"
[lints.clippy]
async_yields_async = "deny"
await_holding_lock = "deny"
await_holding_refcell_ref = "deny"
cast_possible_truncation = "deny"
cast_possible_wrap = "deny"
cast_precision_loss = "deny"
cast_sign_loss = "deny"
clone_on_copy = "deny"
cognitive_complexity = "deny"
dbg_macro = "deny"
debug_assert_with_mut_call = "deny"
default_trait_access = "deny"
doc_link_with_quotes = "deny"
doc_markdown = "deny"
elidable_lifetime_names = "deny"
empty_line_after_outer_attr = "deny"
empty_structs_with_brackets = "deny"
enum_glob_use = "deny"
expect_used = "deny"
explicit_iter_loop = "deny"
float_cmp = "deny"
float_cmp_const = "deny"
format_push_string = "deny"
if_not_else = "deny"
ignore_without_reason = "deny"
ignored_unit_patterns = "deny"
implicit_clone = "deny"
implicit_hasher = "deny"
inefficient_to_string = "deny"
integer_division = "deny"
ip_constant = "deny"
items_after_statements = "deny"
large_stack_arrays = "deny"
large_types_passed_by_value = "deny"
lossy_float_literal = "deny"
manual_assert = "deny"
manual_filter_map = "deny"
manual_find_map = "deny"
manual_let_else = "deny"
manual_map = "deny"
manual_ok_or = "deny"
manual_string_new = "deny"
many_single_char_names = "deny"
map_clone = "deny"
map_unwrap_or = "deny"
match_bool = "deny"
match_same_arms = "deny"
match_wildcard_for_single_variants = "deny"
missing_errors_doc = "deny"
missing_fields_in_debug = "deny"
missing_panics_doc = "deny"
must_use_candidate = "deny"
mutex_atomic = "deny"
needless_borrow = "deny"
needless_collect = "deny"
needless_for_each = "deny"
needless_late_init = "deny"
needless_lifetimes = "deny"
needless_option_as_deref = "deny"
needless_pass_by_value = "deny"
no_effect_underscore_binding = "deny"
non_ascii_literal = "deny"
non_std_lazy_statics = "deny"
option_as_ref_cloned = "deny"
rc_buffer = "deny"
rc_mutex = "deny"
redundant_clone = "deny"
redundant_closure_for_method_calls = "deny"
redundant_else = "deny"
redundant_pattern_matching = "deny"
redundant_pub_crate = "deny"
ref_option = "deny"
regex_creation_in_loops = "deny"
return_self_not_must_use = "deny"
semicolon_if_nothing_returned = "deny"
similar_names = "deny"
single_char_pattern = "deny"
single_match_else = "deny"
str_to_string = "deny"
string_lit_as_bytes = "deny"
struct_excessive_bools = "deny"
suspicious_operation_groupings = "deny"
too_many_lines = "deny"
trivially_copy_pass_by_ref = "deny"
type_complexity = "deny"
unchecked_time_subtraction = "deny"
uninlined_format_args = "deny"
unnecessary_debug_formatting = "deny"
unnecessary_literal_bound = "deny"
unnecessary_wraps = "deny"
unnested_or_patterns = "deny"
unreadable_literal = "deny"
unused_async = "deny"
unused_self = "deny"
unwrap_used = "deny"
use_debug = "deny"
used_underscore_binding = "deny"
used_underscore_items = "deny"
useless_let_if_seq = "deny"
verbose_file_reads = "deny"
wildcard_dependencies = "deny"
wildcard_imports = "deny"
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.rust]
deprecated = "warn"
non_ascii_idents = "forbid"
noop_method_call = "warn"
unsafe_code = "forbid"
unused_import_braces = "warn"
unused_mut = "warn"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(coverage_nightly)"]