diff --git a/Cargo.lock b/Cargo.lock index d9d3040..eca4312 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -334,6 +334,20 @@ dependencies = [ "zbus", ] +[[package]] +name = "code-executor" +version = "1.0.0" +dependencies = [ + "bon", + "byte-unit", + "cgroups-rs", + "rand 0.9.2", + "rstest", + "state-shift", + "tokio", + "uuid", +] + [[package]] name = "concurrent-queue" version = "2.5.0" @@ -622,20 +636,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "judge-runner" -version = "1.0.0" -dependencies = [ - "bon", - "byte-unit", - "cgroups-rs", - "rand 0.9.2", - "rstest", - "state-shift", - "tokio", - "uuid", -] - [[package]] name = "libc" version = "0.2.178" diff --git a/Cargo.toml b/Cargo.toml index 51281c6..aa19fef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,11 @@ [package] -name = "judge-runner" +name = "code-executor" version = "1.0.0" edition = "2024" license = "MIT" readme = "README.md" -repository = "https://github.com/f-code-club/judge-runner" -homepage = "https://github.com/f-code-club/judge-runner" +repository = "https://github.com/f-code-club/code-executor" +homepage = "https://github.com/f-code-club/code-executor" description = """ A code runner library for online judge system """ diff --git a/README.md b/README.md index a5acc1c..ee9ccac 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Judge Runner +# Code Executor A code runner library for online judge system. @@ -16,7 +16,7 @@ A code runner library for online judge system. use std::time::Duration; use byte_unit::Byte; -use judge_runner::{Code, Judge, Resource, language}; +use code_executor::{Code, Judge, Resource, language}; #[tokio::main] async fn main() { diff --git a/examples/basic.rs b/examples/basic.rs index 558551d..13e41ee 100644 --- a/examples/basic.rs +++ b/examples/basic.rs @@ -1,7 +1,7 @@ use std::time::Duration; use byte_unit::Byte; -use judge_runner::{Code, Judge, Resource, language}; +use code_executor::{Code, Judge, Resource, language}; #[tokio::main] async fn main() { diff --git a/tests/should_return_accepted.rs b/tests/should_return_accepted.rs index e276bce..c96c3f4 100644 --- a/tests/should_return_accepted.rs +++ b/tests/should_return_accepted.rs @@ -4,7 +4,7 @@ use std::path::Path; use std::time::Duration; use byte_unit::Byte; -use judge_runner::{Code, Judge, Language, Resource, Verdict, language::*}; +use code_executor::{Code, Judge, Language, Resource, Verdict, language::*}; use rstest::rstest; #[rstest] diff --git a/tests/util.rs b/tests/util.rs index 3f39e37..532d65a 100644 --- a/tests/util.rs +++ b/tests/util.rs @@ -1,6 +1,6 @@ use std::{fs, path::Path}; -use judge_runner::{Code, Judge, Language}; +use code_executor::{Code, Judge, Language}; const INPUT: &str = "input"; const SOLUTION: &str = "solution";