Skip to content

Commit a91fcb2

Browse files
gx0rWulf
authored andcommitted
Bundle the sqlite3 library, rather than relying on dynamic linking to a system sqlite3 library, which may be out-of-date or nonexistent.
1 parent 8d96221 commit a91fcb2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

create-rust-app/Cargo.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ lazy_static = { version="1.4.0" }
2323
serde = { version = "1.0.143", features = ["derive"] }
2424
diesel = { version="2.0.0-rc.1", default-features = false, features = ["uuid", "r2d2", "chrono", "returning_clauses_for_sqlite_3_35"] } # plugin_dev, plugin_auth
2525

26+
##
27+
## Database
28+
##
29+
30+
# sqlite dependencies
31+
libsqlite3-sys = { version = "0.25", optional = true, features = ["bundled"] }
32+
2633
##
2734
## PLUGINS
2835
##
@@ -65,7 +72,6 @@ actix-web-httpauth = { optional=true, version="0.6.0" }
6572
derive_more = { optional=true, version="0.99.17" }
6673
futures = { optional=true, version="0.3.21" }
6774
env_logger = { optional=true, version= "0.9.0" }
68-
6975
##
7076
## MISC - here, we list deps which are required by multiple features but are not required in all configurations
7177
##
@@ -82,5 +88,5 @@ plugin_storage = [ "aws-config", "aws-types", "aws-endpoint", "aws-sdk-s3", "tok
8288
plugin_graphql = []
8389
backend_poem = ["poem", "anyhow", "mime_guess"]
8490
backend_actix-web = ["actix-web", "actix-http", "actix-files", "actix-multipart", "actix-web-httpauth","derive_more", "futures", "env_logger"]
85-
database_sqlite = ["diesel/sqlite"]
91+
database_sqlite = ["diesel/sqlite", "libsqlite3-sys/bundled"]
8692
database_postgres = ["diesel/postgres"]

0 commit comments

Comments
 (0)