Skip to content

Commit c712839

Browse files
committed
chore: update version to 0.1.43 and change references from wavedash.gg to wavedash.com for consistency
1 parent db62ddd commit c712839

File tree

4 files changed

+29
-18
lines changed

4 files changed

+29
-18
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
22
name = "wvdsh"
3-
version = "0.1.42"
3+
version = "0.1.43"
44
edition = "2021"
55
authors = ["Wavedash Team"]
6-
description = "Cross-platform CLI tool for uploading game projects to wavedash.gg"
6+
description = "Cross-platform CLI tool for uploading game projects to wavedash.com"
77
license = "MIT"
88
repository = "https://github.com/wvdsh/cli"
9-
homepage = "https://wavedash.gg"
9+
homepage = "https://wavedash.com"
1010
readme = "README.md"
1111
keywords = ["cli", "gaming", "upload", "wavedash"]
1212
categories = ["command-line-utilities", "games"]

src/dev/mod.rs

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ use std::net::{SocketAddr, TcpListener as StdTcpListener};
33
use std::path::PathBuf;
44

55
use anyhow::{Context, Result};
6-
use axum::{http::{Method, StatusCode}, middleware, routing::{get_service, head}, Router};
6+
use axum::{
7+
http::{Method, StatusCode},
8+
middleware,
9+
routing::{get_service, head},
10+
Router,
11+
};
712
use axum_server::{self, Handle};
813
use mime_guess::from_path;
914
use tokio::signal;
@@ -158,10 +163,19 @@ fn config_parent_dir(config_path: &PathBuf) -> Result<PathBuf> {
158163
}
159164

160165
fn build_cors_layer() -> Result<CorsLayer> {
161-
let allowed_domains = vec!["wavedash.gg".to_string(), "staging.wavedash.gg".to_string(), "wavedash.lvh.me".to_string()];
166+
let allowed_domains = vec![
167+
"wavedash.com".to_string(),
168+
"staging.wavedash.gg".to_string(),
169+
"wavedash.lvh.me".to_string(),
170+
];
162171
Ok(CorsLayer::new()
163172
.allow_credentials(true)
164-
.allow_methods(AllowMethods::list(vec![Method::GET, Method::POST, Method::HEAD, Method::OPTIONS]))
173+
.allow_methods(AllowMethods::list(vec![
174+
Method::GET,
175+
Method::POST,
176+
Method::HEAD,
177+
Method::OPTIONS,
178+
]))
165179
.allow_headers(AllowHeaders::mirror_request())
166180
.allow_origin(AllowOrigin::predicate(move |origin, _| {
167181
origin
@@ -219,10 +233,9 @@ async fn log_and_add_corp_headers(
219233
for (suffix, encoding) in compression_map {
220234
if path.ends_with(suffix) {
221235
// Add Content-Encoding header
222-
response.headers_mut().insert(
223-
"Content-Encoding",
224-
encoding.parse().unwrap(),
225-
);
236+
response
237+
.headers_mut()
238+
.insert("Content-Encoding", encoding.parse().unwrap());
226239

227240
// Fix Content-Type based on the actual file type (without compression extension)
228241
if let Some(stripped_path) = path.strip_suffix(suffix) {
@@ -233,10 +246,9 @@ async fn log_and_add_corp_headers(
233246
.map(|m| m.to_string())
234247
.unwrap_or_else(|| "application/octet-stream".to_string());
235248

236-
response.headers_mut().insert(
237-
"Content-Type",
238-
mime_type.parse().unwrap(),
239-
);
249+
response
250+
.headers_mut()
251+
.insert("Content-Type", mime_type.parse().unwrap());
240252
}
241253
break;
242254
}

src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use std::path::PathBuf;
1414

1515
#[derive(Parser)]
1616
#[command(name = "wvdsh")]
17-
#[command(about = "Cross-platform CLI tool for uploading game projects to wavedash.gg")]
17+
#[command(about = "Cross-platform CLI tool for uploading game projects to wavedash.com")]
1818
#[command(version)]
1919
struct Cli {
2020
#[arg(long, global = true, help = "Enable verbose output")]
@@ -70,14 +70,13 @@ enum BuildCommands {
7070
},
7171
}
7272

73-
7473
#[tokio::main]
7574
async fn main() -> Result<()> {
7675
// Install rustls crypto provider for TLS
7776
rustls::crypto::ring::default_provider()
7877
.install_default()
7978
.expect("Failed to install rustls crypto provider");
80-
79+
8180
let cli = Cli::parse();
8281

8382
// Check for updates (shows cached from previous run, spawns background check for next)

0 commit comments

Comments
 (0)