[package]
edition = "2024"
rust-version = "1.92.0"
name = "cf-modkit"
version = "0.2.14"
authors = ["Cyber Fabric"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core ModKit library"
readme = "README.md"
keywords = [
"cyberfabric",
"cyberfabric-modkit",
]
categories = ["development-tools"]
license = "Apache-2.0"
repository = "https://github.com/cyberfabric/cyberfabric-core"
[features]
bootstrap = [
"db",
"dep:serde-saphyr",
"cf-system-sdks/directory_grpc",
"dep:tracing-appender",
"dep:file-rotate",
"dep:tracing-log",
"dep:chrono",
"dep:regex",
"dep:url",
"dep:dsn",
"dep:supports-color",
"dep:enable-ansi-support",
]
coverage_nightly = []
db = [
"dep:modkit-db",
"dep:sea-orm-migration",
]
default = [
"otel",
"db",
]
otel = [
"dep:opentelemetry",
"dep:opentelemetry_sdk",
"dep:tracing-opentelemetry",
"dep:tracing-subscriber",
"dep:opentelemetry-otlp",
"dep:tonic",
]
[lib]
name = "modkit"
path = "src/lib.rs"
[[test]]
name = "db_phase_tests"
path = "tests/db_phase_tests.rs"
[[test]]
name = "domain_enforcement_demo"
path = "tests/domain_enforcement_demo.rs"
[[test]]
name = "domain_model_tests"
path = "tests/domain_model_tests.rs"
[[test]]
name = "extractor_order_with_cursor"
path = "tests/extractor_order_with_cursor.rs"
[[test]]
name = "integration_test"
path = "tests/integration_test.rs"
[[test]]
name = "lifecycle_macro_tests"
path = "tests/lifecycle_macro_tests.rs"
[[test]]
name = "lifecycle_state"
path = "tests/lifecycle_state.rs"
[[test]]
name = "macro_tests"
path = "tests/macro_tests.rs"
[[test]]
name = "odata_select"
path = "tests/odata_select.rs"
[[test]]
name = "panic_tracing_tests"
path = "tests/panic_tracing_tests.rs"
[[test]]
name = "runner_tests"
path = "tests/runner_tests.rs"
[[test]]
name = "typed_builder_compilefail"
path = "tests/typed_builder_compilefail.rs"
[dependencies.anyhow]
version = "1.0"
[dependencies.arc-swap]
version = "1.7"
[dependencies.async-trait]
version = "0.1"
[dependencies.axum]
version = "0.8"
[dependencies.cf-system-sdks]
version = "0.1.15"
features = ["directory"]
[dependencies.chrono]
version = "0.4"
features = ["serde"]
optional = true
default-features = false
[dependencies.dashmap]
version = "6.1"
[dependencies.dsn]
version = "1.1.1"
optional = true
[dependencies.enable-ansi-support]
version = "0.2"
optional = true
[dependencies.figment]
version = "0.10"
features = [
"yaml",
"env",
]
[dependencies.file-rotate]
version = "0.8"
optional = true
[dependencies.futures-core]
version = "0.3"
[dependencies.futures-util]
version = "0.3"
[dependencies.gts]
version = "0.8.2"
[dependencies.gts-macros]
version = "0.8.2"
[dependencies.http]
version = "1.3"
[dependencies.inventory]
version = "0.3"
[dependencies.modkit-db]
version = "0.2.14"
optional = true
package = "cf-modkit-db"
[dependencies.modkit-errors]
version = "0.2.14"
features = [
"utoipa",
"axum",
]
package = "cf-modkit-errors"
[dependencies.modkit-macros]
version = "0.2.14"
package = "cf-modkit-macros"
[dependencies.modkit-odata]
version = "0.2.14"
features = ["with-odata-params"]
package = "cf-modkit-odata"
[dependencies.modkit-sdk]
version = "0.2.14"
package = "cf-modkit-sdk"
[dependencies.opentelemetry]
version = "0.31"
features = ["trace"]
optional = true
[dependencies.opentelemetry-otlp]
version = "0.31"
features = [
"grpc-tonic",
"http-proto",
]
optional = true
[dependencies.opentelemetry_sdk]
version = "0.31"
features = [
"trace",
"rt-tokio",
]
optional = true
[dependencies.parking_lot]
version = "0.12"
[dependencies.regex]
version = "1.10"
optional = true
[dependencies.schemars]
version = "1.2"
features = [
"derive",
"uuid1",
"derive",
]
[dependencies.sea-orm-migration]
version = "1.1"
features = ["runtime-tokio"]
optional = true
default-features = false
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde-saphyr]
version = "0.0.16"
optional = true
[dependencies.serde_json]
version = "1.0"
[dependencies.supports-color]
version = "3"
optional = true
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.47"
features = ["full"]
[dependencies.tokio-stream]
version = "0.1"
features = [
"sync",
"net",
]
[dependencies.tokio-util]
version = "0.7"
features = ["rt"]
[dependencies.tonic]
version = "0.14"
features = ["transport"]
optional = true
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-appender]
version = "0.2"
optional = true
[dependencies.tracing-log]
version = "0.2"
optional = true
[dependencies.tracing-opentelemetry]
version = "0.32"
optional = true
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"json",
"time",
"local-time",
]
optional = true
[dependencies.url]
version = "2.5"
optional = true
[dependencies.urlencoding]
version = "2.1"
[dependencies.utoipa]
version = "5.4"
features = [
"macros",
"openapi_extensions",
"chrono",
"uuid",
]
[dependencies.uuid]
version = "1.19"
features = [
"serde",
"v7",
]
[dependencies.zip]
version = "2.3"
features = ["deflate"]
default-features = false
[dev-dependencies.httpmock]
version = "0.8"
[dev-dependencies.modkit-db]
version = "0.2.14"
features = ["sqlite"]
package = "cf-modkit-db"
[dev-dependencies.temp-env]
version = "0.3"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tower]
version = "0.5"
[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"json",
"time",
"local-time",
]
[dev-dependencies.trybuild]
version = "1"
[build-dependencies.zip]
version = "2.3"
features = ["deflate"]
default-features = false
[target."cfg(unix)".dependencies.nix]
version = "0.29"
features = ["signal"]
default-features = false
[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"
let_underscore_must_use = "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)"]