Skip to content

Commit

Permalink
Remove sqlite dependency from mithril-common
Browse files Browse the repository at this point in the history
  • Loading branch information
Alenar committed Feb 9, 2024
1 parent b4dcb1f commit d830389
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions mithril-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ serde_with = "3.6.0"
serde_yaml = "0.9.31"
sha2 = "0.10.8"
slog = "2.7.0"
sqlite = { version = "0.33.0", features = ["bundled"], optional = true }
strum = { version = "0.26.1", features = ["derive"] }
thiserror = "1.0.56"
tokio = { version = "1.35.1", features = ["io-util", "rt", "sync"] }
Expand Down Expand Up @@ -93,9 +92,8 @@ serde_yaml = "0.9.31"
default = []

# Full feature set
full = ["random", "database", "fs", "test_tools"]
full = ["random", "fs", "test_tools"]
random = ["rand_core/getrandom"]
database = ["dep:sqlite"]
fs = ["tokio/fs", "tokio/process", "dep:pallas-network", "dep:pallas-traverse"]

# Portable feature avoids SIGILL crashes on CPUs not supporting Intel ADX instruction set when built on CPUs that support it
Expand Down
10 changes: 0 additions & 10 deletions mithril-common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,6 @@
//! - [certificate chain][certificate_chain] used to validate the Certificate Chain created by an aggregator
//! - The [entities] used by, and exchanged between, the aggregator, signers and client.

macro_rules! cfg_database {
($($item:item)*) => {
$(
#[cfg(feature = "database")]
#[cfg_attr(docsrs, doc(cfg(feature = "database")))]
$item
)*
}
}

macro_rules! cfg_fs {
($($item:item)*) => {
$(
Expand Down

0 comments on commit d830389

Please sign in to comment.