mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-19 22:08:30 +00:00
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 <mjladson@pm.me>
This commit is contained in:
@@ -8,7 +8,7 @@ authors = [
|
|||||||
edition = { workspace = true }
|
edition = { workspace = true }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["sqlite", "legacy-arith"]
|
default = ["legacy-arith"]
|
||||||
# Allow saturating arithmetic on slots and epochs. Enabled by default, but deprecated.
|
# Allow saturating arithmetic on slots and epochs. Enabled by default, but deprecated.
|
||||||
legacy-arith = []
|
legacy-arith = []
|
||||||
sqlite = ["dep:rusqlite"]
|
sqlite = ["dep:rusqlite"]
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ serde = { workspace = true }
|
|||||||
serde_json = { workspace = true }
|
serde_json = { workspace = true }
|
||||||
tempfile = { workspace = true }
|
tempfile = { workspace = true }
|
||||||
tracing = { workspace = true }
|
tracing = { workspace = true }
|
||||||
types = { workspace = true }
|
types = { workspace = true, features = ["sqlite"] }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
rayon = { workspace = true }
|
rayon = { workspace = true }
|
||||||
|
|||||||
Reference in New Issue
Block a user