Skip to content

Commit d342ef8

Browse files
authored
Merge pull request #1103 from nebocco/actix-web
replace tide with Actix-web
2 parents b0dfda6 + a33aa73 commit d342ef8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2021
-1841
lines changed

atcoder-problems-backend/Cargo.lock

Lines changed: 1004 additions & 980 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

atcoder-problems-backend/Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,12 @@ sql-client = { path = "./sql-client" }
2424
atcoder-client = { path = "./atcoder-client" }
2525

2626
# Web framework
27-
tide = "0.16"
28-
cookie = "0.14"
27+
actix-web = "4.0.0-beta.18"
2928
reqwest = { version = "0.11", features = ["json"] }
3029

3130
async-trait = "0.1"
3231

33-
async-std = { version = "1.9.0", features = ["attributes"] }
3432
anyhow = "1.0.32"
35-
tokio = { version = "1.15", features = ["rt-multi-thread", "macros"] }
3633

3734
[dev-dependencies]
3835

atcoder-problems-backend/src/bin/batch_update.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use sql_client::submission_client::{SubmissionClient, SubmissionRequest};
1212
use std::env;
1313
use std::error::Error;
1414

15-
#[async_std::main]
15+
#[actix_web::main]
1616
async fn main() -> Result<(), Box<dyn Error>> {
1717
init_log_config()?;
1818
info!("Started!");

atcoder-problems-backend/src/bin/crawl_all_submissions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use sql_client::models::Contest;
88
use sql_client::simple_client::SimpleClient;
99
use std::{env, thread, time};
1010

11-
#[async_std::main]
11+
#[actix_web::main]
1212
async fn main() {
1313
init_log_config().unwrap();
1414
info!("Started");

atcoder-problems-backend/src/bin/crawl_for_virtual_contests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ async fn crawl<R: Rng>(url: &str, rng: &mut R) -> Result<()> {
2727
Ok(())
2828
}
2929

30-
#[async_std::main]
30+
#[actix_web::main]
3131
async fn main() {
3232
init_log_config().unwrap();
3333
let url = env::var("SQL_URL").expect("SQL_URL must be set.");

atcoder-problems-backend/src/bin/crawl_from_new_contests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async fn iteration(url: &str) -> Result<()> {
2323
Ok(())
2424
}
2525

26-
#[async_std::main]
26+
#[actix_web::main]
2727
async fn main() {
2828
init_log_config().unwrap();
2929
info!("Started");

atcoder-problems-backend/src/bin/crawl_problems.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use atcoder_problems_backend::utils::init_log_config;
44
use sql_client::initialize_pool;
55
use std::env;
66

7-
#[async_std::main]
7+
#[actix_web::main]
88
async fn main() {
99
init_log_config().unwrap();
1010
log::info!("Started");

atcoder-problems-backend/src/bin/crawl_recent_submissions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ async fn crawl(url: &str) -> Result<()> {
1111
crawler.crawl().await
1212
}
1313

14-
#[async_std::main]
14+
#[actix_web::main]
1515
async fn main() {
1616
init_log_config().unwrap();
1717
log::info!("Started");

atcoder-problems-backend/src/bin/crawl_whole_contest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use log::info;
66
use sql_client::initialize_pool;
77
use std::env;
88

9-
#[async_std::main]
9+
#[actix_web::main]
1010
async fn main() -> Result<()> {
1111
init_log_config()?;
1212
info!("Started");

atcoder-problems-backend/src/bin/delta_update.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::collections::BTreeSet;
1010
use std::env;
1111
use std::error::Error;
1212

13-
#[async_std::main]
13+
#[actix_web::main]
1414
async fn main() -> Result<(), Box<dyn Error>> {
1515
init_log_config()?;
1616
info!("Started!");

0 commit comments

Comments
 (0)