From bbb074692c1b2bbef2edd3bbe30ce6d581b52185 Mon Sep 17 00:00:00 2001 From: Mac L Date: Thu, 29 Jan 2026 10:30:22 +0400 Subject: [PATCH] Disable `sqlite` by default (#8708) Compiling types with the `sqlite` feature more than doubles the total compile time. Most downstream users don't need `sqlite` compatibility for `Slot` and `Epoch` types. Disable the `sqlite` feature by default. Co-Authored-By: Mac L --- consensus/types/Cargo.toml | 2 +- validator_client/slashing_protection/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/consensus/types/Cargo.toml b/consensus/types/Cargo.toml index 78c6f871cb..feea855c84 100644 --- a/consensus/types/Cargo.toml +++ b/consensus/types/Cargo.toml @@ -8,7 +8,7 @@ authors = [ edition = { workspace = true } [features] -default = ["sqlite", "legacy-arith"] +default = ["legacy-arith"] # Allow saturating arithmetic on slots and epochs. Enabled by default, but deprecated. legacy-arith = [] sqlite = ["dep:rusqlite"] diff --git a/validator_client/slashing_protection/Cargo.toml b/validator_client/slashing_protection/Cargo.toml index b80da6c786..86df6d01fe 100644 --- a/validator_client/slashing_protection/Cargo.toml +++ b/validator_client/slashing_protection/Cargo.toml @@ -23,7 +23,7 @@ serde = { workspace = true } serde_json = { workspace = true } tempfile = { workspace = true } tracing = { workspace = true } -types = { workspace = true } +types = { workspace = true, features = ["sqlite"] } [dev-dependencies] rayon = { workspace = true }