From 784435897b6579aa74cc09340585c57314e471ed Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 6 Nov 2022 00:45:47 +0100 Subject: [PATCH] move bin --- .dockerignore | 3 +++ .drone.yml | 5 +++-- Cargo.toml | 40 ++++++++++++++++++++++++++++++++++ Dockerfile | 0 como_bin/Cargo.toml | 39 --------------------------------- {como_bin/src => src}/error.rs | 0 {como_bin/src => src}/main.rs | 0 7 files changed, 46 insertions(+), 41 deletions(-) create mode 100644 .dockerignore create mode 100644 Dockerfile delete mode 100644 como_bin/Cargo.toml rename {como_bin/src => src}/error.rs (100%) rename {como_bin/src => src}/main.rs (100%) diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..c4d70a6 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +.cuddle/ +.git/ +target/ diff --git a/.drone.yml b/.drone.yml index 80e6654..d72618f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,4 +1,5 @@ kind: template -load: bust_docker_template.yaml +load: bust_rustbin_default_template.yaml name: como -data: {} +data: + bin_name: como diff --git a/Cargo.toml b/Cargo.toml index 79f2391..fc8cedd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,3 +7,43 @@ members = [ "como_gql", "como_api", ] + +[package] +name = "como_bin" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +como_gql = { path = "como_gql" } +como_core = { path = "como_core" } +como_domain = { path = "como_domain" } +como_infrastructure = { path = "como_infrastructure" } +como_api = { path = "como_api" } + +async-graphql = "4.0.6" +async-graphql-axum = "*" +axum = "0.5.13" +axum-extra = { version = "*", features = ["cookie", "cookie-private"] } +axum-sessions = { version = "*" } +serde = { version = "1.0", features = ["derive"] } +serde_json = "1.0.68" +tokio = { version = "1.20.1", features = ["full"] } +uuid = { version = "1.1.2", features = ["v4", "fast-rng"] } +sqlx = { version = "0.6", features = [ + "runtime-tokio-rustls", + "postgres", + "migrate", + "uuid", + "offline", +] } +anyhow = "1.0.60" +dotenv = "0.15.0" +tracing = "0.1.36" +tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } +tower-http = { version = "0.3.4", features = ["full"] } +argon2 = "0.4" +rand_core = { version = "0.6", features = ["std"] } +cookie = { version = "0.16", features = ["secure", "percent-encode"] } +clap = { version = "3", features = ["derive", "env"] } diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e69de29 diff --git a/como_bin/Cargo.toml b/como_bin/Cargo.toml deleted file mode 100644 index 148e1b8..0000000 --- a/como_bin/Cargo.toml +++ /dev/null @@ -1,39 +0,0 @@ -[package] -name = "como_bin" -version = "0.1.0" -edition = "2021" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[dependencies] -como_gql = { path = "../como_gql" } -como_core = { path = "../como_core" } -como_domain = { path = "../como_domain" } -como_infrastructure = { path = "../como_infrastructure" } -como_api = { path = "../como_api" } - -async-graphql = "4.0.6" -async-graphql-axum = "*" -axum = "0.5.13" -axum-extra = { version = "*", features = ["cookie", "cookie-private"] } -axum-sessions = { version = "*" } -serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0.68" -tokio = { version = "1.20.1", features = ["full"] } -uuid = { version = "1.1.2", features = ["v4", "fast-rng"] } -sqlx = { version = "0.6", features = [ - "runtime-tokio-rustls", - "postgres", - "migrate", - "uuid", - "offline", -] } -anyhow = "1.0.60" -dotenv = "0.15.0" -tracing = "0.1.36" -tracing-subscriber = { version = "0.3.15", features = ["env-filter"] } -tower-http = { version = "0.3.4", features = ["full"] } -argon2 = "0.4" -rand_core = { version = "0.6", features = ["std"] } -cookie = { version = "0.16", features = ["secure", "percent-encode"] } -clap = { version = "3", features = ["derive", "env"] } diff --git a/como_bin/src/error.rs b/src/error.rs similarity index 100% rename from como_bin/src/error.rs rename to src/error.rs diff --git a/como_bin/src/main.rs b/src/main.rs similarity index 100% rename from como_bin/src/main.rs rename to src/main.rs