diff --git a/backend/Cargo.lock b/backend/Cargo.lock index 058ea2747..42d4b74e9 100644 --- a/backend/Cargo.lock +++ b/backend/Cargo.lock @@ -351,11 +351,25 @@ name = "diesel" version = "1.4.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b28135ecf6b7d446b43e27e225622a038cc4e2930a1022f51cdb97ada19b8e4d" +dependencies = [ + "bitflags", + "byteorder", + "diesel_derives 1.4.1", + "pq-sys", + "r2d2", +] + +[[package]] +name = "diesel" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68c186a7418a2aac330bb76cde82f16c36b03a66fb91db32d20214311f9f6545" dependencies = [ "bitflags", "byteorder", "chrono", - "diesel_derives", + "diesel_derives 2.0.1", + "itoa", "pq-sys", "r2d2", ] @@ -383,6 +397,18 @@ dependencies = [ "syn", ] +[[package]] +name = "diesel_derives" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "143b758c91dbc3fe1fdcb0dba5bd13276c6a66422f2ef5795b58488248a310aa" +dependencies = [ + "proc-macro-error", + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "diesel_migrations" version = "1.4.0" @@ -935,7 +961,7 @@ version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2b4fc84e4af020b837029e017966f86a1c2d5e83e64b589963d5047525995860" dependencies = [ - "diesel", + "diesel 1.4.8", ] [[package]] @@ -1225,6 +1251,30 @@ dependencies = [ "vcpkg", ] +[[package]] +name = "proc-macro-error" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" +dependencies = [ + "proc-macro-error-attr", + "proc-macro2", + "quote", + "syn", + "version_check", +] + +[[package]] +name = "proc-macro-error-attr" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" +dependencies = [ + "proc-macro2", + "quote", + "version_check", +] + [[package]] name = "proc-macro-hack" version = "0.5.19" @@ -1523,7 +1573,7 @@ version = "0.1.0-rc.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5fa48b6ab25013e9812f1b0c592741900b3a2a83c0936292e0565c0ac842f558" dependencies = [ - "diesel", + "diesel 1.4.8", "r2d2", "rocket", "rocket_sync_db_pools_codegen", @@ -1618,7 +1668,7 @@ name = "seed_data" version = "0.1.0" dependencies = [ "chrono", - "diesel", + "diesel 2.0.2", "dotenv", "server", ] @@ -1671,7 +1721,7 @@ name = "server" version = "0.1.0" dependencies = [ "chrono", - "diesel", + "diesel 2.0.2", "diesel-derive-enum", "diesel_migrations", "dotenv", diff --git a/backend/seed_data/Cargo.toml b/backend/seed_data/Cargo.toml index 1daa00552..da3af091e 100644 --- a/backend/seed_data/Cargo.toml +++ b/backend/seed_data/Cargo.toml @@ -7,6 +7,6 @@ edition = "2021" [dependencies] server = { path="../server" } -diesel = "1.4.8" +diesel = "2.0.2" chrono = "0.4.23" dotenv = "0.15.0" diff --git a/backend/server/Cargo.toml b/backend/server/Cargo.toml index e79988baa..eea5dc136 100644 --- a/backend/server/Cargo.toml +++ b/backend/server/Cargo.toml @@ -18,7 +18,7 @@ rocket = { version = "0.5.0-rc.2", features = ["json"] } rocket_sync_db_pools = { version = "0.1.0-rc.2", features = ["diesel_postgres_pool"] } # pull rocket_cors from git master until crates.io artifact builds on stable rocket_cors = { git = "https://github.com/lawliet89/rocket_cors", branch = "master" } -diesel = { version = "1.4.8", features = ["postgres", "r2d2", "chrono"] } +diesel = { version = "2.0.2", features = ["postgres", "r2d2", "chrono"] } diesel-derive-enum = { version = "1", features = ["postgres"] } dotenv = "0.15.0" dotenv_codegen = "0.15.0"