[package]
edition = "2021"
rust-version = "1.89"
name = "aprender-db"
version = "0.29.0"
authors = ["Noah Gift <noah@paiml.com>"]
build = "build.rs"
exclude = [
"tests/",
"benches/",
"docs/",
".github/",
"book/",
".pmat/",
"target/",
".profraw",
".profdata",
".vscode/",
".idea/",
"proptest-regressions/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "GPU-first embedded analytics database with SIMD fallback and SQL query interface"
readme = "README.md"
keywords = [
"database",
"gpu",
"simd",
"analytics",
"wasm",
]
categories = [
"database",
"science",
"wasm",
]
license = "MIT"
repository = "https://github.com/paiml/aprender"
[package.metadata.pmat]
quality_gates = true
tdg_score_minimum = 85
mutation_testing = true
mutation_kill_rate_minimum = 85
coverage_minimum = 85
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--generate-link-to-definition"]
[package.metadata.release]
shared-version = true
[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
search = '## \[Unreleased\]'
replace = "## [{{version}}] - {{date}}"
[features]
compression = [
"dep:lz4_flex",
"dep:zstd",
]
default = [
"simd",
"tokio",
"rayon",
"parquet-io",
"server",
]
distributed = [
"tonic",
"prost",
]
gpu = [
"dep:wgpu",
"dep:bytemuck",
"dep:futures-intrusive",
]
parquet-io = ["dep:parquet"]
server = [
"dep:axum",
"dep:clap",
"dep:serde_yaml_ng",
"tokio",
"parquet-io",
]
simd = []
wasm = []
[lib]
name = "trueno_db"
path = "src/lib.rs"
[[bin]]
name = "aprender-db"
path = "src/main.rs"
required-features = ["server"]
[[example]]
name = "backend_selection"
path = "examples/backend_selection.rs"
[[example]]
name = "basic_usage"
path = "examples/basic_usage.rs"
[[example]]
name = "benchmark_shootout"
path = "examples/benchmark_shootout.rs"
[[example]]
name = "complete_pipeline"
path = "examples/complete_pipeline.rs"
[[example]]
name = "compressed_kv"
path = "examples/compressed_kv.rs"
[[example]]
name = "experiment_tracking"
path = "examples/experiment_tracking.rs"
[[example]]
name = "gaming_leaderboards"
path = "examples/gaming_leaderboards.rs"
[[example]]
name = "gpu_aggregations"
path = "examples/gpu_aggregations.rs"
required-features = ["gpu"]
[[example]]
name = "gpu_sales_analytics"
path = "examples/gpu_sales_analytics.rs"
required-features = ["gpu"]
[[example]]
name = "kv_store"
path = "examples/kv_store.rs"
[[example]]
name = "market_crashes"
path = "examples/market_crashes.rs"
[[example]]
name = "simd_acceleration"
path = "examples/simd_acceleration.rs"
[[example]]
name = "sql_query_interface"
path = "examples/sql_query_interface.rs"
[[example]]
name = "topk_selection"
path = "examples/topk_selection.rs"
[dependencies.anyhow]
version = "1"
[dependencies.arrow]
version = "57"
default-features = false
[dependencies.axum]
version = "0.7"
optional = true
[dependencies.batuta-common]
version = "0.1"
[dependencies.bytemuck]
version = "1"
features = ["derive"]
optional = true
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.clap]
version = "4.5"
features = ["derive"]
optional = true
[dependencies.dashmap]
version = "6.0"
[dependencies.futures-intrusive]
version = "0.5"
optional = true
[dependencies.lz4_flex]
version = "0.11"
optional = true
[dependencies.parquet]
version = "57"
features = ["arrow"]
optional = true
default-features = false
[dependencies.rayon]
version = "1.8"
optional = true
[dependencies.rustc-hash]
version = "2.0"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.serde_yaml_ng]
version = "0.10"
optional = true
[dependencies.sqlparser]
version = "0.52"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = ["full"]
optional = true
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
[dependencies.trueno]
version = "0.17"
[dependencies.wgpu]
version = "22"
features = ["wgsl"]
optional = true
[dependencies.zstd]
version = "0.13"
optional = true
[dev-dependencies.cargo-llvm-cov]
version = "0.6"
[dev-dependencies.criterion]
version = "0.5"
features = [
"html_reports",
"async_tokio",
]
[dev-dependencies.duckdb]
version = "1.1"
features = ["bundled"]
[dev-dependencies.proptest]
version = "1.5"
[dev-dependencies.quickcheck]
version = "1"
[dev-dependencies.rand]
version = "0.8"
[dev-dependencies.rusqlite]
version = "0.32"
[build-dependencies.serde]
version = "1"
features = ["derive"]
[build-dependencies.serde_yaml_ng]
version = "0.10"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.prost]
version = "0.13"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tonic]
version = "0.12"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.console_error_panic_hook]
version = "0.1"
[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"
[target.'cfg(target_arch = "wasm32")'.dependencies.serde]
version = "1.0"
features = ["derive"]
[target.'cfg(target_arch = "wasm32")'.dependencies.serde-wasm-bindgen]
version = "0.6"
[target.'cfg(target_arch = "wasm32")'.dependencies.serde_json]
version = "1.0"
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4"
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
features = [
"console",
"Window",
"Navigator",
"Performance",
"Gpu",
"GpuAdapter",
"GpuDevice",
"Request",
"RequestInit",
"Response",
"Headers",
"RequestMode",
"RequestCredentials",
]
[lints.clippy]
approx_constant = "allow"
assertions_on_constants = "allow"
assigning_clones = "allow"
bool_to_int_with_if = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
checked_conversions = "warn"
clone_on_copy = "allow"
cloned_instead_of_copied = "allow"
cloned_ref_to_slice_refs = "allow"
const_is_empty = "allow"
default_constructed_unit_structs = "allow"
default_trait_access = "allow"
derivable_impls = "allow"
doc_markdown = "allow"
empty_line_after_doc_comments = "allow"
empty_line_after_outer_attr = "allow"
erasing_op = "allow"
excessive_precision = "allow"
explicit_deref_methods = "warn"
explicit_iter_loop = "warn"
field_reassign_with_default = "allow"
float_cmp = "allow"
format_push_string = "allow"
identity_op = "allow"
if_not_else = "allow"
ignore_without_reason = "allow"
implicit_clone = "warn"
inconsistent_struct_constructor = "warn"
index_refutable_slice = "allow"
inefficient_to_string = "allow"
items_after_statements = "allow"
iter_cloned_collect = "allow"
large_stack_arrays = "allow"
len_zero = "allow"
manual_contains = "allow"
manual_div_ceil = "allow"
manual_let_else = "allow"
manual_midpoint = "allow"
manual_ok_or = "warn"
manual_range_contains = "allow"
many_single_char_names = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_fields_in_debug = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_borrows_for_generic_args = "allow"
needless_pass_by_value = "allow"
needless_range_loop = "allow"
needless_raw_string_hashes = "allow"
no_effect_underscore_binding = "allow"
nonminimal_bool = "allow"
overly_complex_bool_expr = "allow"
print_literal = "allow"
ptr_arg = "allow"
redundant_closure_for_method_calls = "allow"
redundant_guards = "allow"
return_self_not_must_use = "allow"
semicolon_if_nothing_returned = "allow"
similar_names = "allow"
single_char_pattern = "allow"
single_match_else = "allow"
stable_sort_primitive = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
type_complexity = "allow"
uninlined_format_args = "allow"
unnecessary_debug_formatting = "allow"
unnecessary_literal_bound = "allow"
unnecessary_literal_unwrap = "allow"
unnecessary_map_or = "allow"
unnecessary_wraps = "allow"
unnested_or_patterns = "warn"
unreadable_literal = "allow"
unused_self = "allow"
used_underscore_binding = "warn"
useless_vec = "allow"
vec_init_then_push = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "allow"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unreachable_pub = "warn"
unsafe_code = "deny"
unsafe_op_in_unsafe_fn = "warn"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_qualifications = "allow"
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(kani)",
"cfg(coverage_nightly)",
'cfg(feature, values("explainable-monitor-integration"))',
]
[profile.bench]
inherits = "release"
[profile.dev]
panic = "abort"
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
strip = false
[profile.test]
opt-level = 1