Adding rust files
This commit is contained in:
Generated
+3251
File diff suppressed because it is too large
Load Diff
+33
@@ -0,0 +1,33 @@
|
|||||||
|
[package]
|
||||||
|
name = "textsender"
|
||||||
|
version = "0.5.0"
|
||||||
|
edition = "2024"
|
||||||
|
rust-version = "1.95"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
axum = { version = "0.8.9", features = ["multipart"] }
|
||||||
|
axum-extra = { version = "0.12.6", features = ["cookie"] }
|
||||||
|
serde = { version = "1.0.228", features = ["derive"] }
|
||||||
|
serde_json = { version = "1.0.149" }
|
||||||
|
tokio = { version = "1.52.3", features = ["full"] }
|
||||||
|
tokio-util = { version = "0.7.18", features = ["io"] }
|
||||||
|
tower = { version = "0.5.3", features = ["full"] }
|
||||||
|
tower-http = { version = "0.6.10", features = ["cors", "timeout"] }
|
||||||
|
tracing-subscriber = "0.3.23"
|
||||||
|
futures = { version = "0.3.32" }
|
||||||
|
mime_guess = { version = "2.0.5" }
|
||||||
|
uuid = { version = "1.23.1", features = ["v4", "serde"] }
|
||||||
|
sqlx = { version = "0.8.6", features = ["postgres", "runtime-tokio-native-tls", "time", "uuid"] }
|
||||||
|
time = { version = "0.3.47", features = ["formatting", "macros", "parsing", "serde"] }
|
||||||
|
thiserror = "2.0.18"
|
||||||
|
base64 = "0.22.1"
|
||||||
|
jsonwebtoken = { version = "10.3.0", features = ["rust_crypto"] }
|
||||||
|
josekit = { version = "0.10.3" }
|
||||||
|
utoipa = { version = "5.5.0", features = ["axum_extras"] }
|
||||||
|
utoipa-swagger-ui = { version = "9.0.2", features = ["axum"] }
|
||||||
|
textsender_models = { git = "ssh://git@git.kundeng.us/phoenix/textsender-models.git", tag = "v0.3.0-v0.3.0-migrate-2be0337da0-111" }
|
||||||
|
|
||||||
|
[dev-dependencies]
|
||||||
|
common-multipart-rfc7578 = { version = "0.7.0" }
|
||||||
|
url = { version = "2.5.8" }
|
||||||
|
tempfile = { version = "3.27.0" }
|
||||||
+19
@@ -0,0 +1,19 @@
|
|||||||
|
|
||||||
|
#[tokio::main]
|
||||||
|
async fn main() {
|
||||||
|
// initialize tracing
|
||||||
|
tracing_subscriber::fmt::init();
|
||||||
|
|
||||||
|
/*
|
||||||
|
match tokio::net::TcpListener::bind(config::host::get_full()).await {
|
||||||
|
Ok(listener) => {
|
||||||
|
// build our application with routes
|
||||||
|
let app = config::init::app().await;
|
||||||
|
axum::serve(listener, app).await.unwrap();
|
||||||
|
}
|
||||||
|
Err(err) => {
|
||||||
|
eprintln!("Error: {err:?}")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user