From 6fabbdb1535393d06d39a27476c2d81bc7c2915e Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 11 Jan 2025 23:21:24 +0100 Subject: [PATCH] feat: call it lebusiness client Signed-off-by: kjuulh --- Cargo.lock | 32 +++++++++---------- Cargo.toml | 4 +-- .../{client => lebusiness-client}/Cargo.toml | 2 +- .../{client => lebusiness-client}/src/main.rs | 0 cuddle.yaml | 14 ++------ 5 files changed, 21 insertions(+), 31 deletions(-) rename crates/{client => lebusiness-client}/Cargo.toml (94%) rename crates/{client => lebusiness-client}/src/main.rs (100%) diff --git a/Cargo.lock b/Cargo.lock index 0b6aa72..4bbdda6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -314,22 +314,6 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" -[[package]] -name = "client" -version = "0.1.0" -dependencies = [ - "app", - "axum", - "dotenvy", - "leptos", - "leptos_axum", - "log", - "simple_logger", - "tokio", - "tower", - "tower-http", -] - [[package]] name = "codee" version = "0.2.0" @@ -1217,6 +1201,22 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" +[[package]] +name = "lebusiness-client" +version = "0.1.0" +dependencies = [ + "app", + "axum", + "dotenvy", + "leptos", + "leptos_axum", + "log", + "simple_logger", + "tokio", + "tower", + "tower-http", +] + [[package]] name = "leptos" version = "0.7.3" diff --git a/Cargo.toml b/Cargo.toml index bbfe3dd..6392e7b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,10 +35,10 @@ wasm-bindgen = "=0.2.99" # that are used together frontend (lib) & server (bin) [[workspace.metadata.leptos]] # this name is used for the wasm, js and css file names -name = "client" +name = "lebusiness-client" # the package in the workspace that contains the server binary (binary crate) -bin-package = "client" +bin-package = "lebusiness-client" # the package in the workspace that contains the frontend wasm binary (library crate) lib-package = "frontend" diff --git a/crates/client/Cargo.toml b/crates/lebusiness-client/Cargo.toml similarity index 94% rename from crates/client/Cargo.toml rename to crates/lebusiness-client/Cargo.toml index de6d717..6ec1b1c 100644 --- a/crates/client/Cargo.toml +++ b/crates/lebusiness-client/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "client" +name = "lebusiness-client" version = "0.1.0" edition = "2021" diff --git a/crates/client/src/main.rs b/crates/lebusiness-client/src/main.rs similarity index 100% rename from crates/client/src/main.rs rename to crates/lebusiness-client/src/main.rs diff --git a/cuddle.yaml b/cuddle.yaml index eac40b6..66f6b67 100644 --- a/cuddle.yaml +++ b/cuddle.yaml @@ -3,7 +3,7 @@ base: "git@git.front.kjuulh.io:kjuulh/cuddle-rust-leptos-plan.git" vars: - service: "client" + service: "lebusiness-client" registry: kasperhermansen ingress: @@ -14,18 +14,8 @@ cuddle/clusters: dev: env: service.host: "0.0.0.0:3000" - content.url: https://content.front.kjuulh.io/graphql - content.base.url: https://content.front.kjuulh.io - content.token: - vault: true + prod: env: service.host: "0.0.0.0:3000" - content.url: https://content.front.kjuulh.io/graphql - content.base.url: https://content.front.kjuulh.io - content.token: - vault: true -scripts: - generate_graphql: - type: shell