# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.95"
name = "spg-engine"
version = "7.16.2"
authors = ["GOLIA K.K. <lihao@golia.jp>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Execution engine for SPG: glues spg-sql parsing to spg-storage. Foreign keys, joins, vectors, cold tier."
readme = false
keywords = [
    "spg",
    "sql",
    "engine",
    "executor",
    "no-std",
]
categories = ["database-implementations"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/goliajp/spg"

[lib]
name = "spg_engine"
path = "src/lib.rs"

[[test]]
name = "e2e"
path = "tests/e2e.rs"

[[test]]
name = "e2e_alter_add_column"
path = "tests/e2e_alter_add_column.rs"

[[test]]
name = "e2e_array_ops"
path = "tests/e2e_array_ops.rs"

[[test]]
name = "e2e_as_of_segment"
path = "tests/e2e_as_of_segment.rs"

[[test]]
name = "e2e_brin"
path = "tests/e2e_brin.rs"

[[test]]
name = "e2e_bytea"
path = "tests/e2e_bytea.rs"

[[test]]
name = "e2e_bytea_ops"
path = "tests/e2e_bytea_ops.rs"

[[test]]
name = "e2e_cast_targets"
path = "tests/e2e_cast_targets.rs"

[[test]]
name = "e2e_cold_rows_per_table"
path = "tests/e2e_cold_rows_per_table.rs"

[[test]]
name = "e2e_compaction"
path = "tests/e2e_compaction.rs"

[[test]]
name = "e2e_create_extension"
path = "tests/e2e_create_extension.rs"

[[test]]
name = "e2e_do_block"
path = "tests/e2e_do_block.rs"

[[test]]
name = "e2e_explain_analyze"
path = "tests/e2e_explain_analyze.rs"

[[test]]
name = "e2e_expression_index"
path = "tests/e2e_expression_index.rs"

[[test]]
name = "e2e_fk_advanced"
path = "tests/e2e_fk_advanced.rs"

[[test]]
name = "e2e_fk_alter"
path = "tests/e2e_fk_alter.rs"

[[test]]
name = "e2e_fk_catalog"
path = "tests/e2e_fk_catalog.rs"

[[test]]
name = "e2e_fk_chaos"
path = "tests/e2e_fk_chaos.rs"

[[test]]
name = "e2e_fk_delete_cascade"
path = "tests/e2e_fk_delete_cascade.rs"

[[test]]
name = "e2e_fk_delete_restrict"
path = "tests/e2e_fk_delete_restrict.rs"

[[test]]
name = "e2e_fk_delete_set"
path = "tests/e2e_fk_delete_set.rs"

[[test]]
name = "e2e_fk_insert"
path = "tests/e2e_fk_insert.rs"

[[test]]
name = "e2e_fk_update"
path = "tests/e2e_fk_update.rs"

[[test]]
name = "e2e_fts"
path = "tests/e2e_fts.rs"

[[test]]
name = "e2e_get_ddl"
path = "tests/e2e_get_ddl.rs"

[[test]]
name = "e2e_group_by_all"
path = "tests/e2e_group_by_all.rs"

[[test]]
name = "e2e_hnsw_opclass"
path = "tests/e2e_hnsw_opclass.rs"

[[test]]
name = "e2e_include"
path = "tests/e2e_include.rs"

[[test]]
name = "e2e_index_advisor"
path = "tests/e2e_index_advisor.rs"

[[test]]
name = "e2e_inline_column_constraints"
path = "tests/e2e_inline_column_constraints.rs"

[[test]]
name = "e2e_inline_pk"
path = "tests/e2e_inline_pk.rs"

[[test]]
name = "e2e_insert_select"
path = "tests/e2e_insert_select.rs"

[[test]]
name = "e2e_int_array"
path = "tests/e2e_int_array.rs"

[[test]]
name = "e2e_json_path"
path = "tests/e2e_json_path.rs"

[[test]]
name = "e2e_jsonb"
path = "tests/e2e_jsonb.rs"

[[test]]
name = "e2e_key_column"
path = "tests/e2e_key_column.rs"

[[test]]
name = "e2e_limit_placeholder"
path = "tests/e2e_limit_placeholder.rs"

[[test]]
name = "e2e_memoize"
path = "tests/e2e_memoize.rs"

[[test]]
name = "e2e_multi_col_index"
path = "tests/e2e_multi_col_index.rs"

[[test]]
name = "e2e_on_conflict_composite"
path = "tests/e2e_on_conflict_composite.rs"

[[test]]
name = "e2e_on_conflict_nothing"
path = "tests/e2e_on_conflict_nothing.rs"

[[test]]
name = "e2e_on_conflict_update"
path = "tests/e2e_on_conflict_update.rs"

[[test]]
name = "e2e_order_by_multi"
path = "tests/e2e_order_by_multi.rs"

[[test]]
name = "e2e_partial_index"
path = "tests/e2e_partial_index.rs"

[[test]]
name = "e2e_per_table_budget"
path = "tests/e2e_per_table_budget.rs"

[[test]]
name = "e2e_pg_customer_parity"
path = "tests/e2e_pg_customer_parity.rs"

[[test]]
name = "e2e_pgdump_compat"
path = "tests/e2e_pgdump_compat.rs"

[[test]]
name = "e2e_plan_cache"
path = "tests/e2e_plan_cache.rs"

[[test]]
name = "e2e_plan_cache_invalidation"
path = "tests/e2e_plan_cache_invalidation.rs"

[[test]]
name = "e2e_returning"
path = "tests/e2e_returning.rs"

[[test]]
name = "e2e_round5_alter_and_trigger"
path = "tests/e2e_round5_alter_and_trigger.rs"

[[test]]
name = "e2e_round5_misc"
path = "tests/e2e_round5_misc.rs"

[[test]]
name = "e2e_round6_surfaces"
path = "tests/e2e_round6_surfaces.rs"

[[test]]
name = "e2e_round7_surfaces"
path = "tests/e2e_round7_surfaces.rs"

[[test]]
name = "e2e_runtime_default"
path = "tests/e2e_runtime_default.rs"

[[test]]
name = "e2e_serial"
path = "tests/e2e_serial.rs"

[[test]]
name = "e2e_slow_query"
path = "tests/e2e_slow_query.rs"

[[test]]
name = "e2e_snapshot"
path = "tests/e2e_snapshot.rs"

[[test]]
name = "e2e_spg_stat_query"
path = "tests/e2e_spg_stat_query.rs"

[[test]]
name = "e2e_spg_stat_views"
path = "tests/e2e_spg_stat_views.rs"

[[test]]
name = "e2e_sql_funcs"
path = "tests/e2e_sql_funcs.rs"

[[test]]
name = "e2e_table_constraints_engine"
path = "tests/e2e_table_constraints_engine.rs"

[[test]]
name = "e2e_text_array"
path = "tests/e2e_text_array.rs"

[[test]]
name = "e2e_timestamptz"
path = "tests/e2e_timestamptz.rs"

[[test]]
name = "e2e_tpch"
path = "tests/e2e_tpch.rs"

[[test]]
name = "e2e_transactional_ddl"
path = "tests/e2e_transactional_ddl.rs"

[[test]]
name = "e2e_trigger"
path = "tests/e2e_trigger.rs"

[[test]]
name = "e2e_two_tier"
path = "tests/e2e_two_tier.rs"

[[test]]
name = "e2e_unique_index"
path = "tests/e2e_unique_index.rs"

[[test]]
name = "e2e_unique_nulls_not_distinct"
path = "tests/e2e_unique_nulls_not_distinct.rs"

[[test]]
name = "e2e_window_null_treatment"
path = "tests/e2e_window_null_treatment.rs"

[[test]]
name = "perf_gate"
path = "tests/perf_gate.rs"

[[test]]
name = "perf_join_reorder"
path = "tests/perf_join_reorder.rs"

[[test]]
name = "perf_plan_cache"
path = "tests/perf_plan_cache.rs"

[[test]]
name = "perf_stages_knn"
path = "tests/perf_stages_knn.rs"

[[bench]]
name = "execute"
path = "benches/execute.rs"
harness = false

[dependencies.spg-crypto]
version = "7.9"

[dependencies.spg-sql]
version = "7.9"

[dependencies.spg-storage]
version = "7.9"

[dev-dependencies.criterion]
version = "0.5"
features = ["cargo_bench_support"]
default-features = false

[lints.clippy]
approx_constant = "allow"
assigning_clones = "allow"
bool_assert_comparison = "allow"
case_sensitive_file_extension_comparisons = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
collapsible_if = "allow"
collapsible_match = "allow"
comparison_chain = "allow"
doc_lazy_continuation = "allow"
doc_markdown = "allow"
doc_overindented_list_items = "allow"
duration_suboptimal_units = "allow"
duration_subsec = "allow"
elidable_lifetime_names = "allow"
explicit_iter_loop = "allow"
float_cmp = "allow"
float_cmp_const = "allow"
for_kv_map = "allow"
format_push_string = "allow"
from_iter_instead_of_collect = "allow"
if_not_else = "allow"
ignore_without_reason = "allow"
ignored_unit_patterns = "allow"
items_after_statements = "allow"
len_zero = "allow"
let_and_return = "allow"
manual_assert = "allow"
manual_checked_ops = "allow"
manual_clamp = "allow"
manual_contains = "allow"
manual_div_ceil = "allow"
manual_is_multiple_of = "allow"
manual_let_else = "allow"
manual_midpoint = "allow"
many_single_char_names = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_collect = "allow"
needless_continue = "allow"
needless_option_as_deref = "allow"
needless_pass_by_value = "allow"
needless_range_loop = "allow"
needless_raw_string_hashes = "allow"
no_effect_underscore_binding = "allow"
range_plus_one = "allow"
redundant_closure = "allow"
redundant_closure_for_method_calls = "allow"
ref_option = "allow"
return_self_not_must_use = "allow"
semicolon_if_nothing_returned = "allow"
should_panic_without_expect = "allow"
similar_names = "allow"
single_char_pattern = "allow"
single_match_else = "allow"
stable_sort_primitive = "allow"
struct_field_names = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
unnecessary_lazy_evaluations = "allow"
unnecessary_map_or = "allow"
unnecessary_to_owned = "allow"
unnecessary_wraps = "allow"
unnested_or_patterns = "allow"
unreadable_literal = "allow"
unused_self = "allow"
useless_format = "allow"
wildcard_imports = "allow"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
dead_code = "allow"
missing_debug_implementations = "warn"
non_snake_case = "allow"
unsafe_code = "deny"
unused_must_use = "deny"
unused_mut = "allow"
unused_variables = "allow"
