From 6a9cac4bbbd25444e6d7331505e0864bb722660c Mon Sep 17 00:00:00 2001 From: Mike Gindin Date: Mon, 15 May 2023 13:25:50 -0400 Subject: [PATCH] wip dynamodb resource - testing git path for dynamodb resource in example --- Cargo.lock | 62 ++++++++++++++++++++++++++++------- Cargo.toml | 1 + resources/dynamodb/Cargo.toml | 4 +-- 3 files changed, 53 insertions(+), 14 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index dfbb21d4e..dcf5ca5ee 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1212,9 +1212,9 @@ dependencies = [ "semver 1.0.17", "serde", "serde_json", - "shuttle-common", + "shuttle-common 0.16.0", "shuttle-proto", - "shuttle-service", + "shuttle-service 0.16.0", "sqlx", "strum", "tar", @@ -5250,7 +5250,7 @@ dependencies = [ "reqwest", "serde", "serde_json", - "shuttle-common", + "shuttle-common 0.16.0", "tokio", "toml 0.5.11", "tracing", @@ -5275,7 +5275,7 @@ dependencies = [ "ring", "serde", "serde_json", - "shuttle-common", + "shuttle-common 0.16.0", "sqlx", "strum", "thiserror", @@ -5347,6 +5347,22 @@ dependencies = [ "uuid", ] +[[package]] +name = "shuttle-common" +version = "0.16.0" +source = "git+https://github.com/mikegin/shuttle.git?branch=feature/dynamodb-resource#0b947d7b08c298cdcfb353e54a53d1bb8a81a1a1" +dependencies = [ + "anyhow", + "chrono", + "once_cell", + "rustrict", + "serde", + "serde_json", + "strum", + "tracing", + "uuid", +] + [[package]] name = "shuttle-deployer" version = "0.16.0" @@ -5376,9 +5392,9 @@ dependencies = [ "rand", "serde", "serde_json", - "shuttle-common", + "shuttle-common 0.16.0", "shuttle-proto", - "shuttle-service", + "shuttle-service 0.16.0", "sqlx", "strum", "tar", @@ -5397,6 +5413,15 @@ dependencies = [ "uuid", ] +[[package]] +name = "shuttle-dynamodb" +version = "0.1.0" +dependencies = [ + "async-trait", + "serde", + "shuttle-service 0.16.0 (git+https://github.com/mikegin/shuttle.git?branch=feature/dynamodb-resource)", +] + [[package]] name = "shuttle-gateway" version = "0.16.0" @@ -5432,7 +5457,7 @@ dependencies = [ "rustls-pemfile", "serde", "serde_json", - "shuttle-common", + "shuttle-common 0.16.0", "snailquote", "sqlx", "strum", @@ -5459,7 +5484,7 @@ dependencies = [ "home", "prost", "prost-types", - "shuttle-common", + "shuttle-common 0.16.0", "tokio", "tonic", "tonic-build", @@ -5485,7 +5510,7 @@ dependencies = [ "prost", "rand", "serde_json", - "shuttle-common", + "shuttle-common 0.16.0", "shuttle-proto", "sqlx", "thiserror", @@ -5513,9 +5538,9 @@ dependencies = [ "rmp-serde", "serde", "serde_json", - "shuttle-common", + "shuttle-common 0.16.0", "shuttle-proto", - "shuttle-service", + "shuttle-service 0.16.0", "strfmt", "thiserror", "tokio", @@ -5541,7 +5566,7 @@ dependencies = [ "pipe", "serde", "shuttle-codegen", - "shuttle-common", + "shuttle-common 0.16.0", "strfmt", "thiserror", "tokio", @@ -5549,6 +5574,19 @@ dependencies = [ "tracing", ] +[[package]] +name = "shuttle-service" +version = "0.16.0" +source = "git+https://github.com/mikegin/shuttle.git?branch=feature/dynamodb-resource#0b947d7b08c298cdcfb353e54a53d1bb8a81a1a1" +dependencies = [ + "anyhow", + "async-trait", + "serde", + "shuttle-common 0.16.0 (git+https://github.com/mikegin/shuttle.git?branch=feature/dynamodb-resource)", + "strfmt", + "thiserror", +] + [[package]] name = "signal-hook" version = "0.3.15" diff --git a/Cargo.toml b/Cargo.toml index e5e381149..ae6a50956 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,7 @@ members = [ "provisioner", "runtime", "service", + "resources/dynamodb", ] exclude = [ diff --git a/resources/dynamodb/Cargo.toml b/resources/dynamodb/Cargo.toml index 60030e525..7f637a881 100644 --- a/resources/dynamodb/Cargo.toml +++ b/resources/dynamodb/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shuttle-dynamodb" -version = "0.1.0" +version = "0.16.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -8,4 +8,4 @@ edition = "2021" [dependencies] async-trait = "0.1.56" serde = { version = "1.0.148", features = ["derive"] } -shuttle-service = { git = "https://github.com/mikegin/shuttle.git", branch = "feature/dynamodb-resource", path = "../../service", version = "0.16.0", default-features = false } +shuttle-service = { git = "https://github.com/mikegin/shuttle.git", branch = "feature/dynamodb-resource", version = "0.16.0", default-features = false }