load("@crates//:defs.bzl", "aliases", "all_crate_deps")

load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", "rust_proc_macro", "rust_test")



filegroup(

    name = "cargo_manifest",

    srcs = ["Cargo.toml"],

    visibility = ["//visibility:public"],

)



filegroup(

    name = "package_runfiles",

    srcs = glob(["Cargo.toml", "**/*"], exclude = ["BUILD", "BUILD.bazel"], allow_empty = True),

    visibility = ["//visibility:public"],

)



rust_library(
    name = "meerkat_runtime",
    aliases = aliases(package_name = "meerkat-runtime"),
    crate_name = "meerkat_runtime",
    crate_root = "src/lib.rs",
    crate_features = [
        "live",
        "sqlite-store",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = glob(["src/**/*.rs"]),
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
    ),
)

rust_library(
    name = "meerkat_runtime_test_support",
    aliases = aliases(package_name = "meerkat-runtime"),
    crate_name = "meerkat_runtime",
    crate_root = "src/lib.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = glob(["src/**/*.rs"]),
    visibility = [
        "//meerkat:__pkg__",
        "//meerkat-anthropic:__pkg__",
        "//meerkat-auth-core:__pkg__",
        "//meerkat-cli:__pkg__",
        "//meerkat-comms:__pkg__",
        "//meerkat-gemini:__pkg__",
        "//meerkat-machine-codegen:__pkg__",
        "//meerkat-mcp:__pkg__",
        "//meerkat-mcp-server:__pkg__",
        "//meerkat-mob:__pkg__",
        "//meerkat-mob-mcp:__pkg__",
        "//meerkat-openai:__pkg__",
        "//meerkat-rest:__pkg__",
        "//meerkat-rpc:__pkg__",
        "//meerkat-runtime:__pkg__",
        "//meerkat-session:__pkg__",
        "//meerkat-tools:__pkg__",
        "//tests/integration:__pkg__",
    ],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
    ),
)

rust_library(
    name = "meerkat_runtime_agent_factory_build",
    aliases = aliases(package_name = "meerkat-runtime"),
    crate_name = "meerkat_runtime",
    crate_root = "src/lib.rs",
    crate_features = [
        "live",
        "sqlite-store",
    ],
    edition = "2024",
    rustc_flags = ["-Copt-level=0"],
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = glob(["src/**/*.rs"]),
    visibility = [
        "//meerkat:__pkg__",
    ],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
    ),
    deps = [
        "//meerkat:meerkat_auth_core_agent_factory_build",
        "//meerkat:meerkat_contracts_agent_factory_build",
        "//meerkat:meerkat_core_agent_factory_build",
        "//meerkat:meerkat_live_agent_factory_build",
        "//meerkat:meerkat_machine_kernels_agent_factory_build",
        "//meerkat:meerkat_machine_schema_agent_factory_build",
        "//meerkat:meerkat_store_agent_factory_build",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
    ),
)

rust_library(
    name = "meerkat_runtime_agent_factory_build_test_support",
    aliases = aliases(package_name = "meerkat-runtime"),
    crate_name = "meerkat_runtime",
    crate_root = "src/lib.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    rustc_flags = ["-Copt-level=0"],
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = glob(["src/**/*.rs"]),
    visibility = [
        "//meerkat:__pkg__",
    ],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
    ),
    deps = [
        "//meerkat:meerkat_auth_core_agent_factory_build",
        "//meerkat:meerkat_contracts_agent_factory_build",
        "//meerkat:meerkat_core_agent_factory_build",
        "//meerkat:meerkat_live_agent_factory_build",
        "//meerkat:meerkat_machine_kernels_agent_factory_build",
        "//meerkat:meerkat_machine_schema_agent_factory_build",
        "//meerkat:meerkat_store_agent_factory_build",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
    ),
)

rust_test(
    name = "meerkat_runtime_unit_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "meerkat_runtime",
    crate_root = "src/lib.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = glob(["src/**/*.rs"]),
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
        "unit",
    ],
    size = "small",
    data = [
        ":package_runfiles",
    ],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

rust_test(
    name = "auth_reauth_notice_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "auth_reauth_notice",
    crate_root = "tests/auth_reauth_notice.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = [
        "tests/auth_reauth_notice.rs",
    ],
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_BIN_NAME": "auth_reauth_notice",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
    ],
    size = "small",
    data = [
        "//meerkat-core:package_runfiles",
        "//tests/integration:package_runfiles",
    ],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-runtime:meerkat_runtime_test_support",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

rust_test(
    name = "composition_dispatch_is_the_path_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "composition_dispatch_is_the_path",
    crate_root = "tests/composition_dispatch_is_the_path.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = [
        "tests/composition_dispatch_is_the_path.rs",
    ],
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_BIN_NAME": "composition_dispatch_is_the_path",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
    ],
    size = "small",
    data = [
        ":package_runfiles",
    ],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-runtime:meerkat_runtime_test_support",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

rust_test(
    name = "composition_driver_contract_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "composition_driver_contract",
    crate_root = "tests/composition_driver_contract.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = [
        "tests/composition_driver_contract.rs",
    ],
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_BIN_NAME": "composition_driver_contract",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
    ],
    size = "small",
    data = [
        ":package_runfiles",
    ],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-runtime:meerkat_runtime_test_support",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

rust_test(
    name = "control_plane_contract_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "control_plane_contract",
    crate_root = "tests/control_plane_contract.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = [
        "tests/control_plane_contract.rs",
    ],
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_BIN_NAME": "control_plane_contract",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
    ],
    size = "small",
    data = [
        ":package_runfiles",
    ],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-runtime:meerkat_runtime_test_support",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

rust_test(
    name = "core_apply_terminal_truth_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "core_apply_terminal_truth",
    crate_root = "tests/core_apply_terminal_truth.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = [
        "tests/core_apply_terminal_truth.rs",
    ],
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_BIN_NAME": "core_apply_terminal_truth",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
    ],
    size = "small",
    data = [
        ":package_runfiles",
        "//:workspace_cargo_manifests",
        "//:workspace_metadata",
        "//meerkat-core:package_runfiles",
        "//meerkat-machine-schema:package_runfiles",
        "//meerkat-mcp-server:package_runfiles",
        "//meerkat:package_runfiles",
    ],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-runtime:meerkat_runtime_test_support",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

rust_test(
    name = "detached_wake_contract_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "detached_wake_contract",
    crate_root = "tests/detached_wake_contract.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = [
        "tests/detached_wake_contract.rs",
    ],
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_BIN_NAME": "detached_wake_contract",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
    ],
    size = "small",
    data = [],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-runtime:meerkat_runtime_test_support",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

rust_test(
    name = "driver_ephemeral_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "driver_ephemeral",
    crate_root = "tests/driver_ephemeral.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = [
        "tests/driver_ephemeral.rs",
    ],
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_BIN_NAME": "driver_ephemeral",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
    ],
    size = "small",
    data = [],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-runtime:meerkat_runtime_test_support",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

rust_test(
    name = "driver_persistent_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "driver_persistent",
    crate_root = "tests/driver_persistent.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = [
        "tests/driver_persistent.rs",
    ],
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_BIN_NAME": "driver_persistent",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
    ],
    size = "small",
    data = [],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-runtime:meerkat_runtime_test_support",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

rust_test(
    name = "handles_dispatch_through_dispatcher_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "handles_dispatch_through_dispatcher",
    crate_root = "tests/handles_dispatch_through_dispatcher.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = [
        "tests/handles_dispatch_through_dispatcher.rs",
    ],
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_BIN_NAME": "handles_dispatch_through_dispatcher",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
    ],
    size = "small",
    data = [
        ":package_runfiles",
        "//:workspace_cargo_manifests",
        "//:workspace_metadata",
        "//meerkat-runtime:cargo_manifest",
    ],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-runtime:meerkat_runtime_test_support",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

rust_test(
    name = "meerkat_machine_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "meerkat_machine",
    crate_root = "tests/meerkat_machine.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = [
        "tests/meerkat_machine.rs",
    ],
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_BIN_NAME": "meerkat_machine",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
    ],
    size = "small",
    data = [],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-runtime:meerkat_runtime_test_support",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

rust_test(
    name = "ops_lifecycle_contract_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "ops_lifecycle_contract",
    crate_root = "tests/ops_lifecycle_contract.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = [
        "tests/ops_lifecycle_contract.rs",
    ],
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_BIN_NAME": "ops_lifecycle_contract",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
    ],
    size = "small",
    data = [],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-runtime:meerkat_runtime_test_support",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

rust_test(
    name = "ops_lifecycle_persistence_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "ops_lifecycle_persistence",
    crate_root = "tests/ops_lifecycle_persistence.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = [
        "tests/ops_lifecycle_persistence.rs",
    ],
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_BIN_NAME": "ops_lifecycle_persistence",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
    ],
    size = "small",
    data = [],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-runtime:meerkat_runtime_test_support",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

rust_test(
    name = "peer_handling_mode_contract_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "peer_handling_mode_contract",
    crate_root = "tests/peer_handling_mode_contract.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = [
        "tests/peer_handling_mode_contract.rs",
    ],
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_BIN_NAME": "peer_handling_mode_contract",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
    ],
    size = "small",
    data = [],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-runtime:meerkat_runtime_test_support",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

rust_test(
    name = "peer_ingress_fact_ratchet_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "peer_ingress_fact_ratchet",
    crate_root = "tests/peer_ingress_fact_ratchet.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = [
        "tests/peer_ingress_fact_ratchet.rs",
    ],
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_BIN_NAME": "peer_ingress_fact_ratchet",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
    ],
    size = "small",
    data = [
        ":package_runfiles",
        "//meerkat-core:package_runfiles",
        "//meerkat:package_runfiles",
    ],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-runtime:meerkat_runtime_test_support",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

rust_test(
    name = "peer_interaction_dsl_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "peer_interaction_dsl",
    crate_root = "tests/peer_interaction_dsl.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = [
        "tests/peer_interaction_dsl.rs",
    ],
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_BIN_NAME": "peer_interaction_dsl",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
    ],
    size = "small",
    data = [],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-runtime:meerkat_runtime_test_support",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

rust_test(
    name = "peer_projection_dsl_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "peer_projection_dsl",
    crate_root = "tests/peer_projection_dsl.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = [
        "tests/peer_projection_dsl.rs",
    ],
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_BIN_NAME": "peer_projection_dsl",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
    ],
    size = "small",
    data = [],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-runtime:meerkat_runtime_test_support",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

rust_test(
    name = "peer_projection_producer_wiring_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "peer_projection_producer_wiring",
    crate_root = "tests/peer_projection_producer_wiring.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = [
        "tests/peer_projection_producer_wiring.rs",
    ],
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_BIN_NAME": "peer_projection_producer_wiring",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
    ],
    size = "small",
    data = [
        ":package_runfiles",
    ],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-runtime:meerkat_runtime_test_support",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

rust_test(
    name = "recovery_contract_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "recovery_contract",
    crate_root = "tests/recovery_contract.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = [
        "tests/recovery_contract.rs",
    ],
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_BIN_NAME": "recovery_contract",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
    ],
    size = "small",
    data = [],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-runtime:meerkat_runtime_test_support",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

rust_test(
    name = "recovery_replay_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "recovery_replay",
    crate_root = "tests/recovery_replay.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = [
        "tests/recovery_replay.rs",
    ],
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_BIN_NAME": "recovery_replay",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
    ],
    size = "small",
    data = [],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-runtime:meerkat_runtime_test_support",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

rust_test(
    name = "regression_comms_runtime_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "regression_comms_runtime",
    crate_root = "tests/regression_comms_runtime.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = [
        "tests/regression_comms_runtime.rs",
    ],
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_BIN_NAME": "regression_comms_runtime",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
    ],
    size = "small",
    data = [
        "//meerkat-core:package_runfiles",
    ],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-runtime:meerkat_runtime_test_support",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

rust_test(
    name = "runtime_bindings_contract_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "runtime_bindings_contract",
    crate_root = "tests/runtime_bindings_contract.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = [
        "tests/runtime_bindings_contract.rs",
    ],
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_BIN_NAME": "runtime_bindings_contract",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
    ],
    size = "small",
    data = [],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-runtime:meerkat_runtime_test_support",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

rust_test(
    name = "runtime_ingress_control_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "runtime_ingress_control",
    crate_root = "tests/runtime_ingress_control.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = [
        "tests/runtime_ingress_control.rs",
    ],
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_BIN_NAME": "runtime_ingress_control",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
    ],
    size = "small",
    data = [],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-runtime:meerkat_runtime_test_support",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

rust_test(
    name = "trust_reconcile_add_failure_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "trust_reconcile_add_failure",
    crate_root = "tests/trust_reconcile_add_failure.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = [
        "tests/trust_reconcile_add_failure.rs",
    ],
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_BIN_NAME": "trust_reconcile_add_failure",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
    ],
    size = "small",
    data = [
        ":package_runfiles",
        "//meerkat-comms:package_runfiles",
    ],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-runtime:meerkat_runtime_test_support",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

rust_test(
    name = "trust_reconcile_concurrency_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "trust_reconcile_concurrency",
    crate_root = "tests/trust_reconcile_concurrency.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = [
        "tests/trust_reconcile_concurrency.rs",
    ],
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_BIN_NAME": "trust_reconcile_concurrency",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
    ],
    size = "small",
    data = [
        ":package_runfiles",
        "//meerkat-comms:package_runfiles",
    ],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-runtime:meerkat_runtime_test_support",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

rust_test(
    name = "turn_content_shape_contract_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "turn_content_shape_contract",
    crate_root = "tests/turn_content_shape_contract.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = [
        "tests/turn_content_shape_contract.rs",
    ],
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_BIN_NAME": "turn_content_shape_contract",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
    ],
    size = "small",
    data = [
        ":package_runfiles",
    ],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-runtime:meerkat_runtime_test_support",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

rust_test(
    name = "turn_metadata_single_construction_site_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "turn_metadata_single_construction_site",
    crate_root = "tests/turn_metadata_single_construction_site.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = [
        "tests/turn_metadata_single_construction_site.rs",
    ],
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_BIN_NAME": "turn_metadata_single_construction_site",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
    ],
    size = "small",
    data = [
        ":package_runfiles",
    ],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-runtime:meerkat_runtime_test_support",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

rust_test(
    name = "unregister_drain_contract_test",
    aliases = aliases(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
        proc_macro = True,
        proc_macro_dev = True,
    ),
    crate_name = "unregister_drain_contract",
    crate_root = "tests/unregister_drain_contract.rs",
    crate_features = [
        "live",
        "sqlite-store",
        "test-support",
    ],
    edition = "2024",
    compile_data = [
        "Cargo.toml",
        "src/comms_drain.rs",
        "src/handles/peer_comms.rs",
        "src/meerkat_machine/mod.rs",
    ],
    srcs = [
        "tests/unregister_drain_contract.rs",
    ],
    visibility = ["//visibility:public"],
    rustc_env = {
        "CARGO_PKG_VERSION": "0.7.16",
        "CARGO_BIN_NAME": "unregister_drain_contract",
        "CARGO_MANIFEST_DIR": "./meerkat-runtime",
        "MEERKAT_GENERATED_AUTHORITY_BRIDGE_SYMBOL_SUFFIX": "bazel_private_generated_authority_bridge",
    },
    tags = [
        "fast",
    ],
    size = "small",
    data = [],
    env = {
        "RUST_MIN_STACK": "16777216",
    },
    proc_macro_deps = [
        "//meerkat-machine-derive:meerkat_machine_derive",
        "//meerkat-machine-dsl:meerkat_machine_dsl",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        proc_macro = True,
        proc_macro_dev = True,
    ),
    deps = [
        "//meerkat-auth-core:meerkat_auth_core",
        "//meerkat-comms:meerkat_comms",
        "//meerkat-contracts:meerkat_contracts",
        "//meerkat-core:meerkat_core",
        "//meerkat-live:meerkat_live",
        "//meerkat-machine-kernels:meerkat_machine_kernels",
        "//meerkat-machine-schema:meerkat_machine_schema",
        "//meerkat-runtime:meerkat_runtime_test_support",
        "//meerkat-store:meerkat_store",
    ] + all_crate_deps(
        package_name = "meerkat-runtime",
        normal = True,
        normal_dev = True,
    ),
)

test_suite(
    name = "fast_tests",
    tests = [
        ":auth_reauth_notice_test",
        ":composition_dispatch_is_the_path_test",
        ":composition_driver_contract_test",
        ":control_plane_contract_test",
        ":core_apply_terminal_truth_test",
        ":detached_wake_contract_test",
        ":driver_ephemeral_test",
        ":driver_persistent_test",
        ":handles_dispatch_through_dispatcher_test",
        ":meerkat_machine_test",
        ":meerkat_runtime_unit_test",
        ":ops_lifecycle_contract_test",
        ":ops_lifecycle_persistence_test",
        ":peer_handling_mode_contract_test",
        ":peer_ingress_fact_ratchet_test",
        ":peer_interaction_dsl_test",
        ":peer_projection_dsl_test",
        ":peer_projection_producer_wiring_test",
        ":recovery_contract_test",
        ":recovery_replay_test",
        ":regression_comms_runtime_test",
        ":runtime_bindings_contract_test",
        ":runtime_ingress_control_test",
        ":trust_reconcile_add_failure_test",
        ":trust_reconcile_concurrency_test",
        ":turn_content_shape_contract_test",
        ":turn_metadata_single_construction_site_test",
        ":unregister_drain_contract_test",
    ],
)
