Skip to content

Commit

Permalink
feat: ✨ basic structure for sub-crates
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisu-Woniu committed Mar 1, 2024
1 parent 874dab4 commit 5084f45
Show file tree
Hide file tree
Showing 14 changed files with 321 additions and 88 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: moonrepo/setup-rust@v1
with:
channel: stable
bins: cargo-deb
bins: cargo-deb, cargo-hack
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
Expand All @@ -36,3 +36,5 @@ jobs:
with:
name: rsjudge-deb
path: target/debian/*.deb
- name: Check for MSRV compliance
run: cargo hack check --rust-version --workspace --all-targets
115 changes: 68 additions & 47 deletions Cargo.lock

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

14 changes: 10 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
[workspace]
members = ["crates/rsjudge-grpc", "crates/rsjudge-rest", "crates/rsjudge-runner", "xtask"]
members = ["crates/rsjudge-grpc", "crates/rsjudge-judger", "crates/rsjudge-rest", "crates/rsjudge-runner", "xtask"]

[workspace.package]
version = "0.1.0"
authors = ["NJUPT-SAST"]
license = "Apache-2.0"
edition = "2021"

# clap requires Rust 1.74+ to work
rust-version = "1.74"

[package]
name = "rsjudge"
version.workspace = true
authors.workspace = true
edition = "2021"
license.workspace = true
rust-version.workspace = true
description = "An online judge sandbox server in Rust."

[package.metadata.deb]
Expand Down Expand Up @@ -69,20 +74,21 @@ systemd-units = { enable = false }

[dependencies]
# Workspace dependencies
rsjudge-judger = { version = "0.1.0", path = "crates/rsjudge-judger" }
rsjudge-runner = { version = "0.1.0", path = "crates/rsjudge-runner" }

# Optional dependencies
rsjudge-grpc = { version = "0.1.0", path = "crates/rsjudge-grpc", optional = true }
rsjudge-rest = { version = "0.1.0", path = "crates/rsjudge-rest", optional = true }

anyhow = "1.0.80"
caps = "0.5.5"
clap = { version = "4.5.1", features = ["derive"] }
env_logger = "0.11.2"
log = "0.4.21"
serde = { version = "1.0.197", features = ["derive"] }
tokio = { version = "1.36.0", features = ["fs", "rt-multi-thread", "macros"] }
toml = "0.8.10"
log = "0.4.20"
env_logger = "0.11.2"
caps = "0.5.5"

# Unused for now:
# cgroups = "0.1.0"
Expand Down
Loading

0 comments on commit 5084f45

Please sign in to comment.