Skip to content

Commit

Permalink
Merge pull request #114 from traP-jp/refactor/#113-workspace-structure
Browse files Browse the repository at this point in the history
🎨 divide crates into app, lib and pylib
  • Loading branch information
comavius authored Feb 18, 2025
2 parents 07f743d + 13c7666 commit 7e91e59
Show file tree
Hide file tree
Showing 86 changed files with 46 additions and 35 deletions.
11 changes: 6 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ pyo3-stub-gen = "0.7.0"

[workspace]
members = [
"judge_control_app",
"writerutil",
"grpc_schema",
"judge_core",
"traopy",
"lib/jobapi",
"lib/local_jobapi",
"lib/grpc_schema",
"lib/judge_core",
"pylib/traopy",
"app/judge_control_app",
]
resolver = "2"
6 changes: 6 additions & 0 deletions app/judge_control_app/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "judge_control_app"
version = "0.1.0"
edition = "2021"

[dependencies]
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use anyhow::Result;
fn main() {
println!("Hello, world!");
}
12 changes: 0 additions & 12 deletions judge_control_app/src/main.rs

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion judge_control_app/Cargo.toml → lib/jobapi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "judge_control_app"
name = "jobapi"
version = "0.1.0"
edition = "2021"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions lib/local_jobapi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "local_jobapi"
version = "0.1.0"
edition = "2021"

[dependencies]
1 change: 1 addition & 0 deletions lib/local_jobapi/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion traopy/Cargo.toml → pylib/traopy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ uuid = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
anyhow = { workspace = true }
judge_core = { path = "../judge_core" }
judge_core = { path = "../../lib/judge_core" }

[features]
abi3 = ["pyo3/abi3-py37", "generate-import-lib"]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ managed = true
dev-dependencies = []

[tool.rye.workspace]
members = ["traopy/example", "traopy"]
members = ["pylib/traopy/example", "pylib/traopy"]

[tool.setuptools.packages.find]
include = ["traopy"]
include = ["pylib"]
4 changes: 2 additions & 2 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
# universal: false

-e file:.
-e file:traopy
-e file:traopy/example
-e file:pylib/traopy
-e file:pylib/traopy/example
asttokens==3.0.0
# via stack-data
comm==0.2.2
Expand Down
4 changes: 2 additions & 2 deletions requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
# universal: false

-e file:.
-e file:traopy
-e file:traopy/example
-e file:pylib/traopy
-e file:pylib/traopy/example
asttokens==3.0.0
# via stack-data
comm==0.2.2
Expand Down
10 changes: 10 additions & 0 deletions traojudge_judge_workspace.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Metadata-Version: 2.2
Name: traojudge-judge-workspace
Version: 0.1.0
Summary: Rye workspace for traO-Judge-judge repository
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

# traO-Judge-judge
traO Judge ジャッジ
7 changes: 7 additions & 0 deletions traojudge_judge_workspace.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
LICENSE
README.md
pyproject.toml
traojudge_judge_workspace.egg-info/PKG-INFO
traojudge_judge_workspace.egg-info/SOURCES.txt
traojudge_judge_workspace.egg-info/dependency_links.txt
traojudge_judge_workspace.egg-info/top_level.txt
1 change: 1 addition & 0 deletions traojudge_judge_workspace.egg-info/dependency_links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions traojudge_judge_workspace.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pylib
9 changes: 0 additions & 9 deletions writerutil/Cargo.toml

This file was deleted.

0 comments on commit 7e91e59

Please sign in to comment.