mirror of
https://github.com/actix/examples
synced 2024-11-23 22:41:07 +01:00
disable db/diesel for now
This commit is contained in:
parent
da60a30fd9
commit
fb9f9d243d
30
Cargo.lock
generated
30
Cargo.lock
generated
@ -2255,27 +2255,11 @@ dependencies = [
|
|||||||
"byteorder",
|
"byteorder",
|
||||||
"chrono",
|
"chrono",
|
||||||
"diesel_derives",
|
"diesel_derives",
|
||||||
"libsqlite3-sys 0.9.1",
|
|
||||||
"pq-sys",
|
"pq-sys",
|
||||||
"r2d2",
|
"r2d2",
|
||||||
"uuid",
|
"uuid",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "diesel-example"
|
|
||||||
version = "1.0.0"
|
|
||||||
dependencies = [
|
|
||||||
"actix-web 4.0.0-rc.2",
|
|
||||||
"diesel",
|
|
||||||
"dotenv",
|
|
||||||
"env_logger 0.9.0",
|
|
||||||
"failure",
|
|
||||||
"futures",
|
|
||||||
"serde 1.0.136",
|
|
||||||
"serde_json",
|
|
||||||
"uuid",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "diesel_derives"
|
name = "diesel_derives"
|
||||||
version = "1.4.1"
|
version = "1.4.1"
|
||||||
@ -3474,16 +3458,6 @@ version = "0.2.116"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "565dbd88872dbe4cc8a46e527f26483c1d1f7afa6b884a3bd6cd893d4f98da74"
|
checksum = "565dbd88872dbe4cc8a46e527f26483c1d1f7afa6b884a3bd6cd893d4f98da74"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "libsqlite3-sys"
|
|
||||||
version = "0.9.1"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "0e9eb7b8e152b6a01be6a4a2917248381875758250dc3df5d46caf9250341dda"
|
|
||||||
dependencies = [
|
|
||||||
"pkg-config",
|
|
||||||
"vcpkg",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "libsqlite3-sys"
|
name = "libsqlite3-sys"
|
||||||
version = "0.23.2"
|
version = "0.23.2"
|
||||||
@ -5053,7 +5027,7 @@ dependencies = [
|
|||||||
"fallible-iterator",
|
"fallible-iterator",
|
||||||
"fallible-streaming-iterator",
|
"fallible-streaming-iterator",
|
||||||
"hashlink",
|
"hashlink",
|
||||||
"libsqlite3-sys 0.23.2",
|
"libsqlite3-sys",
|
||||||
"memchr",
|
"memchr",
|
||||||
"smallvec",
|
"smallvec",
|
||||||
]
|
]
|
||||||
@ -5659,7 +5633,7 @@ dependencies = [
|
|||||||
"indexmap",
|
"indexmap",
|
||||||
"itoa 1.0.1",
|
"itoa 1.0.1",
|
||||||
"libc",
|
"libc",
|
||||||
"libsqlite3-sys 0.23.2",
|
"libsqlite3-sys",
|
||||||
"log",
|
"log",
|
||||||
"memchr",
|
"memchr",
|
||||||
"once_cell",
|
"once_cell",
|
||||||
|
@ -14,7 +14,8 @@ members = [
|
|||||||
"basics/static_index",
|
"basics/static_index",
|
||||||
"basics/todo",
|
"basics/todo",
|
||||||
"database_interactions/basic",
|
"database_interactions/basic",
|
||||||
"database_interactions/diesel",
|
# example uses incompatible libsqlite-sys to other examples
|
||||||
|
# "database_interactions/diesel",
|
||||||
"database_interactions/mongodb",
|
"database_interactions/mongodb",
|
||||||
"database_interactions/pg",
|
"database_interactions/pg",
|
||||||
"database_interactions/redis",
|
"database_interactions/redis",
|
||||||
|
@ -84,7 +84,7 @@ async fn main() -> std::io::Result<()> {
|
|||||||
HttpServer::new(move || {
|
HttpServer::new(move || {
|
||||||
App::new()
|
App::new()
|
||||||
// redis session middleware
|
// redis session middleware
|
||||||
.wrap(RedisSession::new("127.0.0.1:6379", &private_key.master()))
|
.wrap(RedisSession::new("127.0.0.1:6379", private_key.master()))
|
||||||
// enable logger - always register Actix Web Logger middleware last
|
// enable logger - always register Actix Web Logger middleware last
|
||||||
.wrap(middleware::Logger::default())
|
.wrap(middleware::Logger::default())
|
||||||
.service(resource("/").route(get().to(index)))
|
.service(resource("/").route(get().to(index)))
|
||||||
|
Loading…
Reference in New Issue
Block a user