Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Commit

Permalink
Setup transport and messaging for Jason (#18)
Browse files Browse the repository at this point in the history
- bootstrap basic Jason architecture
- impl WS transport for Client API RPC
- impl heartbeat of  WS connection

Additionally:
- separate Client API protocol implementation into dedicated crate
  • Loading branch information
alexlapa authored May 17, 2019
1 parent a3ad134 commit 0c8a3aa
Show file tree
Hide file tree
Showing 30 changed files with 2,420 additions and 682 deletions.
1,236 changes: 707 additions & 529 deletions Cargo.lock

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ repository = "https://github.com/instrumentisto/medea"
[workspace]
members = [
"jason",
"proto/client-api",
]

[profile.release]
Expand All @@ -27,7 +28,10 @@ failure = "0.1"
futures = "0.1"
hashbrown = "0.1"
humantime = "1.2"
serde = { version = "1.0", features = ["derive"] }
macro-attr = "0.2"
medea-client-api-proto = { path = "proto/client-api", features = ['medea'] }
newtype_derive = "0.1"
serde = { version = "1.0", features = ['derive'] }
serde_json = "1.0"
slog = "2.4"
slog-envlogger = "2.1"
Expand Down
24 changes: 14 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ cargo.fmt:
# make cargo.lint

cargo.lint:
cargo clippy -- -D clippy::pedantic -D warnings
cargo clippy --all -- -D clippy::pedantic -D warnings



Expand Down Expand Up @@ -124,21 +124,25 @@ endif
# Run Rust unit tests of project.
#
# Usage:
# make test.unit [app=(all|medea|jason)]
# make test.unit [crate=(@all|medea|jason|<crate-name>)]

test-unit-app = $(if $(call eq,$(app),),all,$(app))
test-unit-crate = $(if $(call eq,$(crate),),@all,$(crate))

test.unit:
ifeq ($(test-unit-app),all)
@make test.unit app=medea
@make test.unit app=jason
endif
ifeq ($(test-unit-app),medea)
ifeq ($(test-unit-crate),@all)
@make test.unit crate=medea-client-api-proto
@make test.unit crate=medea
@make test.unit crate=jason
else
ifeq ($(test-unit-crate),medea)
cargo test --bin medea
endif
ifeq ($(test-unit-app),jason)
else
ifeq ($(test-unit-crate),jason)
wasm-pack test --headless --firefox jason
endif
cargo test -p $(test-unit-crate)
endif
endif



Expand Down
5 changes: 5 additions & 0 deletions config.default.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[server]
# Timeout for websocket session to wait message from [`Web Client`].
#
# Default:
# idle_timeout = "10s"
1 change: 1 addition & 0 deletions jason/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/pkg/
/target/
Loading

0 comments on commit 0c8a3aa

Please sign in to comment.