Skip to content

Commit 3fb1cc1

Browse files
committed
chore: remove uneeded crate-type from most Cargo.toml
Addition of `staticlib` add a lot of disk usage and build time and is not justified for crates that are not intended to be directly used by third parties (all crates except `mithril-stm` and `mithril-client`).
1 parent 59bf453 commit 3fb1cc1

File tree

12 files changed

+1
-37
lines changed

12 files changed

+1
-37
lines changed

internal/cardano-node/mithril-cardano-node-chain/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ homepage.workspace = true
88
license.workspace = true
99
repository.workspace = true
1010

11-
[lib]
12-
crate-type = ["lib", "cdylib", "staticlib"]
13-
1411
[dependencies]
1512
anyhow = { workspace = true }
1613
async-trait = { workspace = true }

internal/cardano-node/mithril-cardano-node-internal-database/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ license.workspace = true
1010
repository.workspace = true
1111
include = ["**/*.rs", "Cargo.toml", "README.md", ".gitignore"]
1212

13-
[lib]
14-
crate-type = ["lib", "cdylib", "staticlib"]
15-
1613
[dependencies]
1714
anyhow = { workspace = true }
1815
async-trait = { workspace = true }

internal/mithril-aggregator-client/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ license.workspace = true
1010
repository.workspace = true
1111
include = ["**/*.rs", "Cargo.toml", "README.md"]
1212

13-
[lib]
14-
crate-type = ["lib", "cdylib", "staticlib"]
15-
1613
[dependencies]
1714
anyhow = { workspace = true }
1815
async-trait = { workspace = true }

internal/mithril-dmq/Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ include = ["**/*.rs", "Cargo.toml", "README.md", ".gitignore"]
1414
# `serde_bytes` is used for DmqMessage serialization
1515
ignored = ["serde_bytes"]
1616

17-
[lib]
18-
crate-type = ["lib", "cdylib", "staticlib"]
19-
2017
[dependencies]
2118
anyhow = { workspace = true }
2219
async-trait = { workspace = true }
@@ -31,7 +28,7 @@ serde_bytes = "0.11.19"
3128
slog = { workspace = true }
3229
slog-scope = "4.4.0"
3330
thiserror = { workspace = true }
34-
tokio = { workspace = true, features = ["sync","rt-multi-thread"] }
31+
tokio = { workspace = true, features = ["sync", "rt-multi-thread"] }
3532

3633
[dev-dependencies]
3734
mockall = { workspace = true }

internal/mithril-era/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ homepage.workspace = true
88
license.workspace = true
99
repository.workspace = true
1010

11-
[lib]
12-
crate-type = ["lib", "cdylib", "staticlib"]
13-
1411
[dependencies]
1512
anyhow = { workspace = true }
1613
async-trait = { workspace = true }

internal/mithril-metric/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ homepage = { workspace = true }
88
license = { workspace = true }
99
repository = { workspace = true }
1010

11-
[lib]
12-
crate-type = ["lib", "cdylib", "staticlib"]
13-
1411
[dependencies]
1512
anyhow = { workspace = true }
1613
axum = "0.8.6"

internal/mithril-persistence/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ homepage = { workspace = true }
88
license = { workspace = true }
99
repository = { workspace = true }
1010

11-
[lib]
12-
crate-type = ["lib", "cdylib", "staticlib"]
13-
1411
[dependencies]
1512
anyhow = { workspace = true }
1613
async-trait = { workspace = true }

internal/mithril-resource-pool/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ homepage = { workspace = true }
88
license = { workspace = true }
99
repository = { workspace = true }
1010

11-
[lib]
12-
crate-type = ["lib", "cdylib", "staticlib"]
13-
1411
[dependencies]
1512
anyhow = { workspace = true }
1613
mithril-common = { path = "../../mithril-common" }

internal/mithril-ticker/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ homepage.workspace = true
88
license.workspace = true
99
repository.workspace = true
1010

11-
[lib]
12-
crate-type = ["lib", "cdylib", "staticlib"]
13-
1411
[dependencies]
1512
anyhow = { workspace = true }
1613
async-trait = { workspace = true }

internal/signed-entity/mithril-signed-entity-lock/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ homepage = { workspace = true }
88
license = { workspace = true }
99
repository = { workspace = true }
1010

11-
[lib]
12-
crate-type = ["lib", "cdylib", "staticlib"]
13-
1411
[dependencies]
1512
mithril-common = { path = "../../../mithril-common" }
1613
tokio = { workspace = true }

0 commit comments

Comments
 (0)