Skip to content

Commit 453b518

Browse files
committed
work
1 parent 79d7b40 commit 453b518

File tree

4 files changed

+64
-133
lines changed

4 files changed

+64
-133
lines changed

Cargo.lock

Lines changed: 50 additions & 128 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/invoker/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ version = "0.1.0"
44
authors = ["Mikail Bagishov <bagishov.mikail@yandex.ru>"]
55
edition = "2018"
66

7-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8-
97
[dependencies]
8+
judging-apis = { path = "../judging-apis" }
9+
rpc = { git = "https://github.com/jjs-dev/commons" }
10+
minion = {git = "https://github.com/jjs-dev/minion"}
11+
hyper = "0.13.8"

src/invoker/src/main.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
struct RpcHandler;
2+
3+
impl rpc::Handler for RpcHandler {
4+
5+
}
6+
17
fn main() {
2-
println!("Hello, world!");
8+
let mut server = rpc::RouterBuilder::new();
9+
server.add_route(RpcHandler);
10+
let server = server.build().as_make_service();
11+
let server = hyper
312
}

src/judge/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ authors = ["Mikail Bagishov <bagishov.mikail@yandex.ru>"]
66
edition = "2018"
77

88
[dependencies]
9-
minion = {git = "https://github.com/jjs-dev/minion"}
109
serde = { version = "1.0.117", features = ["derive"] }
1110
serde_json = "1.0.59"
1211
dotenv = "0.15.0"
@@ -44,7 +43,6 @@ tracing-futures = "0.2.4"
4443
dkregistry = { git = "https://github.com/mikailbag/dkregistry-rs", branch = "all" }
4544
rpc = { git = "https://github.com/jjs-dev/commons", branch = "rpc-box-engine" }
4645
tower-service = "0.3.0"
47-
hyper = "0.13.7"
4846
futures-util = "0.3.5"
4947
event-listener = "2.4.0"
5048
async-channel = "1.4.2"

0 commit comments

Comments
 (0)