Skip to content

Commit

Permalink
fix(Frontend): 🐛 fix frontend grpc feature(backend) not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Eason0729 committed Jul 2, 2024
1 parent 539dc72 commit 25fc094
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion frontend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ features = ["rt-multi-thread", "fs", "sync"]

[dependencies.grpc]
path = "../grpc"
features = ["serde", "client"]
features = ["serde", "client", "backend"]

[build-dependencies.tonic-build]
features = ["prost"]
Expand Down
6 changes: 0 additions & 6 deletions frontend/build.rs

This file was deleted.

3 changes: 3 additions & 0 deletions grpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ pub mod backend;

#[cfg(feature = "judger")]
pub mod judger;

#[cfg(not(any(feature = "backend", feature = "judger")))]
compile_error!("At least one of the features `backend` and `judger` must be enabled");

0 comments on commit 25fc094

Please sign in to comment.