Skip to content

Commit

Permalink
Reduce required mysql dependencies for diesel (#707)
Browse files Browse the repository at this point in the history
* Cargo.toml:  Only enable mysql_backend on diesel, not the whole mysql feature
* Cargo.toml:  Add diesel with mysql feature enabled to dev-dependencies
  • Loading branch information
mcronce authored Mar 5, 2025
1 parent 41ce632 commit f34cefc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ bincode = { default-features = false, version = "1.0" }
bytes = { default-features = false, version = "1.0" }
criterion = { default-features = false, version = "0.5" }
csv = "1"
diesel = { default-features = false, features = ["mysql"], version = "2.2.3" }
futures = { default-features = false, version = "0.3" }
rand = { default-features = false, features = ["getrandom"], version = "0.8" }
rand-0_9 = { default-features = false, features = ["thread_rng"], package = "rand", version = "0.9" }
Expand All @@ -57,7 +58,7 @@ default = ["serde", "std"]

borsh = ["dep:borsh", "std"]
c-repr = [] # Force Decimal to be repr(C)
db-diesel-mysql = ["diesel/mysql", "std"]
db-diesel-mysql = ["diesel/mysql_backend", "std"]
db-diesel-postgres = ["diesel/postgres", "std"]
db-diesel2-mysql = ["db-diesel-mysql"]
db-diesel2-postgres = ["db-diesel-postgres"]
Expand Down

0 comments on commit f34cefc

Please sign in to comment.