Skip to content

Commit

Permalink
Rename web-server to web-server-warp
Browse files Browse the repository at this point in the history
  • Loading branch information
flosse committed Jun 17, 2024
1 parent 07e6db1 commit b267bb9
Show file tree
Hide file tree
Showing 22 changed files with 20 additions and 18 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ members = [
"crates/infrastructure",
"crates/json-boundary",
"crates/web-app-api",
"crates/web-server"
"crates/web-server-warp"
]
exclude = [ "crates/web-app-seed" ]

Expand All @@ -43,16 +43,16 @@ rust-version = "1.79"
cawr-infrastructure = "0.0.0"

[patch.crates-io]
cawr-adapter = { path = "crates/adapter" }
cawr-application = { path = "crates/application" }
cawr-cli = { path = "crates/cli" }
cawr-db = { path = "crates/db" }
cawr-desktop = { path = "crates/desktop" }
cawr-domain = { path = "crates/domain" }
cawr-infrastructure = { path = "crates/infrastructure" }
cawr-json-boundary = { path = "crates/json-boundary" }
cawr-web-app-api = { path = "crates/web-app-api" }
cawr-web-server = { path = "crates/web-server" }
cawr-adapter = { path = "crates/adapter" }
cawr-application = { path = "crates/application" }
cawr-cli = { path = "crates/cli" }
cawr-db = { path = "crates/db" }
cawr-desktop = { path = "crates/desktop" }
cawr-domain = { path = "crates/domain" }
cawr-infrastructure = { path = "crates/infrastructure" }
cawr-json-boundary = { path = "crates/json-boundary" }
cawr-web-app-api = { path = "crates/web-app-api" }
cawr-web-server-warp = { path = "crates/web-server-warp" }

[profile.release]
lto = true
Expand Down
2 changes: 1 addition & 1 deletion crates/infrastructure/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ cawr-adapter = "=0.0.0"
cawr-cli = "=0.0.0"
cawr-db = "=0.0.0"
cawr-desktop = "=0.0.0"
cawr-web-server = "=0.0.0"
cawr-web-server-warp = "=0.0.0"

# External dependencies
anyhow = "1.0"
Expand Down
8 changes: 5 additions & 3 deletions crates/infrastructure/src/web.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
use crate::storage::data_storage;
use clap::Parser;
use std::{
net::{IpAddr, SocketAddr},
path::PathBuf,
sync::Arc,
};

use clap::Parser;
use tokio::runtime::Runtime;

use crate::storage::data_storage;

#[derive(Parser)]
struct Args {
#[clap(default_value = "127.0.0.1", help = "IP address", long)]
Expand All @@ -22,5 +24,5 @@ pub fn run() {
let db = Arc::new(data_storage(args.data_dir));
let rt = Runtime::new().expect("tokio runtime");
let addr = SocketAddr::from((args.bind, args.port));
rt.block_on(cawr_web_server::run(db, addr));
rt.block_on(cawr_web_server_warp::run(db, addr));
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "cawr-web-server"
name = "cawr-web-server-warp"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b267bb9

Please sign in to comment.