hawdb-sql-syntax 0.12.0

An embedded Rust graph database for local data-plane workloads
Documentation
load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test")

package(default_visibility = ["//visibility:public"])

test_suite(
    name = "presubmit_tests",
)

filegroup(
    name = "frontend_corpus_sources",
    srcs = [
        "tests/postgres_pgq.rs",
        "tests/postgres_select_pgq.rs",
        "tests/support/alias_boundaries.rs",
    ],
    testonly = True,
    visibility = ["//crates/sql:__pkg__"],
)

rust_library(
    name = "hawdb_sql_syntax",
    crate_name = "hawdb_sql_syntax",
    crate_root = "src/lib.rs",
    srcs = glob(["src/**/*.rs"]),
    edition = "2024",
)

rust_test(
    name = "hawdb_sql_syntax_tests",
    crate = ":hawdb_sql_syntax",
    edition = "2024",
)

rust_test(
    name = "postgres_pgq_tests",
    crate_name = "postgres_pgq_tests",
    crate_root = "tests/postgres_pgq.rs",
    srcs = ["tests/postgres_pgq.rs"],
    edition = "2024",
    deps = [":hawdb_sql_syntax"],
)

_POSTGRES_SELECT_TEST_SRCS = [
    "tests/postgres_select_pgq.rs",
    "tests/support/alias_boundaries.rs",
]

rust_test(
    name = "postgres_select_pgq_tests",
    crate_name = "postgres_select_pgq_tests",
    crate_root = "tests/postgres_select_pgq.rs",
    srcs = _POSTGRES_SELECT_TEST_SRCS,
    edition = "2024",
    deps = [":hawdb_sql_syntax"],
)

rust_test(
    name = "hawdb_sql_alias_boundary_fuzz_tests",
    size = "small",
    tags = ["manual"],
    args = [
        "alias_boundaries::table_alias_boundary_differential_campaign",
        "--exact",
        "--ignored",
        "--nocapture",
    ],
    crate_name = "postgres_select_pgq_tests",
    crate_root = "tests/postgres_select_pgq.rs",
    srcs = _POSTGRES_SELECT_TEST_SRCS,
    edition = "2024",
    deps = [":hawdb_sql_syntax"],
)