Skip to content

Commit

Permalink
chore: rename crate to algohub-server
Browse files Browse the repository at this point in the history
  • Loading branch information
fu050409 committed Nov 24, 2024
1 parent 2fe0deb commit 7e496d5
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .changes/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
},
"packages": {
"online-judge": {
"algohub-server": {
"path": ".",
"manager": "rust"
}
Expand Down
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"words": [
"algohub",
"chrono",
"covector",
"dtolnay",
Expand Down
26 changes: 13 additions & 13 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "online-judge"
name = "algohub-server"
version = "0.1.0"
edition = "2021"
description = "Extremely fast async online judge backend based on Rust"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "online-judge",
"name": "algohub-server",
"version": "0.0.0",
"description": "Extremely fast async online judge backend based on Rust",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ use rocket::launch;

#[launch]
async fn rocket() -> _ {
online_judge::rocket().await
algohub_server::rocket().await
}
4 changes: 2 additions & 2 deletions tests/account.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::{fs::File, io::Read, path::Path};

use anyhow::Result;
use online_judge::{
use algohub_server::{
models::{
account::Profile,
response::{Empty, Response},
Expand Down Expand Up @@ -58,7 +58,7 @@ impl AsRef<[u8]> for Upload {

#[rocket::async_test]
async fn test_register() -> Result<()> {
let rocket = online_judge::rocket().await;
let rocket = algohub_server::rocket().await;

let client = Client::tracked(rocket).await?;

Expand Down

0 comments on commit 7e496d5

Please sign in to comment.