[package]
edition = "2024"
rust-version = "1.96"
name = "truefix-store"
version = "0.1.4"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "FIX message stores (memory/file/cached/SQL/noop)."
readme = "README.md"
license = "Apache-2.0 OR MIT"
repository = "https://github.com/truefix-labs/truefix"
resolver = "2"
[features]
mongodb = [
"dep:mongodb",
"dep:serde",
"dep:futures-util",
]
mssql = [
"dep:tiberius",
"dep:tokio-util",
"dep:tokio",
]
redb = [
"dep:redb",
"dep:tokio",
]
sql = ["dep:sqlx"]
[lib]
name = "truefix_store"
path = "src/lib.rs"
[[test]]
name = "audit006_corrupt_tail"
path = "tests/audit006_corrupt_tail.rs"
[[test]]
name = "audit006_file_store_safety"
path = "tests/audit006_file_store_safety.rs"
[[test]]
name = "audit006_growth_duplicate"
path = "tests/audit006_growth_duplicate.rs"
[[test]]
name = "audit006_seqfile_atomicity"
path = "tests/audit006_seqfile_atomicity.rs"
[[test]]
name = "audit006_store_durability"
path = "tests/audit006_store_durability.rs"
[[test]]
name = "audit006_store_reset"
path = "tests/audit006_store_reset.rs"
[[test]]
name = "body_log_concurrency"
path = "tests/body_log_concurrency.rs"
[[test]]
name = "bodylog_read_single_handle_per_range"
path = "tests/bodylog_read_single_handle_per_range.rs"
[[test]]
name = "bodylog_reset_lock_order"
path = "tests/bodylog_reset_lock_order.rs"
[[test]]
name = "cached"
path = "tests/cached.rs"
[[test]]
name = "cached_file_store_read_through"
path = "tests/cached_file_store_read_through.rs"
[[test]]
name = "creation_time_file"
path = "tests/creation_time_file.rs"
[[test]]
name = "creation_time_parse_error"
path = "tests/creation_time_parse_error.rs"
[[test]]
name = "file_store_open_memory_bound"
path = "tests/file_store_open_memory_bound.rs"
[[test]]
name = "mongo_atomic_save_advance"
path = "tests/mongo_atomic_save_advance.rs"
[[test]]
name = "mongo_backend"
path = "tests/mongo_backend.rs"
[[test]]
name = "mongo_session_unique_index"
path = "tests/mongo_session_unique_index.rs"
[[test]]
name = "mssql_backend"
path = "tests/mssql_backend.rs"
[[test]]
name = "mssql_commit_rollback"
path = "tests/mssql_commit_rollback.rs"
[[test]]
name = "mssql_trust_cert_opt_in"
path = "tests/mssql_trust_cert_opt_in.rs"
[[test]]
name = "mssql_url_at_sign"
path = "tests/mssql_url_at_sign.rs"
[[test]]
name = "redb_backend"
path = "tests/redb_backend.rs"
[[test]]
name = "redb_reset_no_intermediate_collect"
path = "tests/redb_reset_no_intermediate_collect.rs"
[[test]]
name = "reset_ordering"
path = "tests/reset_ordering.rs"
[[test]]
name = "restart_resend"
path = "tests/restart_resend.rs"
[[test]]
name = "seqfile_crash_safety"
path = "tests/seqfile_crash_safety.rs"
[[test]]
name = "seqfile_migration"
path = "tests/seqfile_migration.rs"
[[test]]
name = "sql_backends"
path = "tests/sql_backends.rs"
[[test]]
name = "sql_schema_migration_order"
path = "tests/sql_schema_migration_order.rs"
[dependencies.async-trait]
version = "0.1"
[dependencies.futures-util]
version = "0.3"
optional = true
default-features = false
[dependencies.mongodb]
version = "3"
optional = true
[dependencies.redb]
version = "4"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dependencies.sqlx]
version = "0.9"
features = [
"runtime-tokio",
"sqlite",
"postgres",
"mysql-rsa",
]
optional = true
default-features = false
[dependencies.thiserror]
version = "2"
[dependencies.tiberius]
version = "0.12"
features = [
"rustls",
"tds73",
]
optional = true
default-features = false
[dependencies.time]
version = "0.3"
features = [
"formatting",
"parsing",
"macros",
]
[dependencies.tokio]
version = "1"
features = ["full"]
optional = true
[dependencies.tokio-util]
version = "0.7"
features = ["compat"]
optional = true
[dev-dependencies.tokio]
version = "1"
features = ["full"]
[lints.rust]
unsafe_code = "forbid"