From 9829bbfcd57c57e237c6aacb96a78d0b9f5bab68 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Tue, 29 Jun 2021 22:44:11 -0600 Subject: lol no generics --- Cargo.toml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index ddb4cdb..5e0cf6f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,12 +7,11 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -barrel = { version = "0.6.5", features = ["sqlite3"] } +barrel = { version = "0.6.5" } chrono = { version = "0.4", features = ["clock"] } -diesel = { version = "1.4.4", features = ["sqlite", "chrono"] } +diesel = { version = "1.4.4", features = ["chrono"] } hyper = { version = "0.14", features = ["full"] } -# TODO not this -libsqlite3-sys = { version = "0.22.2", features = ["bundled-windows"] } +libsqlite3-sys = { version = "0.22.2", features = ["bundled-windows"], optional = true } quote = "1.0" structopt = "0.3.21" syn = { version = "1.0", features = ["full", "extra-traits"] } @@ -22,3 +21,6 @@ warp = "0.3" [dev-dependencies] rand = "0.8.3" + +[features] +sqlite = ["barrel/sqlite3", "diesel/sqlite", "libsqlite3-sys"] -- cgit v1.2.3