-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
205 additions
and
144 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ version = "0.3.0" | |
[workspace] | ||
|
||
members = [ | ||
"rain_client", | ||
"rain_core", | ||
"rain_server", | ||
"rain_task", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[package] | ||
name = "rain_client" | ||
version = "0.3.0" | ||
|
||
description = "Distributed computational framework for large-scale task-based pipelines. Client library in Rust." | ||
# documentation = "https://docs.rs/rain_task/" # default docs.rs | ||
homepage = "https://github.com/substantic/rain" | ||
repository = "https://github.com/substantic/rain/" | ||
readme = "README.md" | ||
authors = [ | ||
"Stanislav Bohm <[email protected]>", | ||
"Tomas Gavenciak <[email protected]>", | ||
"Vojtech Cima <[email protected]>", | ||
] | ||
license = "MIT" | ||
|
||
exclude = ["testing/**/*"] | ||
|
||
[badges] | ||
travis-ci = { repository = "substantic/rain", branch = "master" } | ||
maintenance = { status = "actively-developed" } | ||
|
||
[dependencies] | ||
futures="0.1" | ||
log = "0.4" | ||
rain_core = "0.3.0" | ||
tokio-core="0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
src/client/communicator.rs → rain_client/src/client/communicator.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
src/client/dataobject.rs → rain_client/src/client/dataobject.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
extern crate futures; | ||
#[macro_use] | ||
extern crate log; | ||
extern crate rain_core; | ||
extern crate tokio_core; | ||
|
||
mod client; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
pub(crate) mod executor; | ||
pub mod rpc; | ||
|
||
pub use self::executor::{CallMsg, DataLocation, DropCachedMsg, ExecutorToGovernorMessage, | ||
GovernorToExecutorMessage, LocalObjectIn, LocalObjectOut, RegisterMsg, | ||
ResultMsg}; | ||
pub use self::rpc::new_rpc_system; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
use capnp_rpc::{rpc_twoparty_capnp, twoparty, RpcSystem}; | ||
use tokio_io::{AsyncRead, AsyncWrite}; | ||
|
||
pub fn new_rpc_system<Stream>( | ||
stream: Stream, | ||
bootstrap: Option<::capnp::capability::Client>, | ||
) -> RpcSystem<twoparty::VatId> | ||
where | ||
Stream: AsyncRead + AsyncWrite + 'static, | ||
{ | ||
let (reader, writer) = stream.split(); | ||
let network = Box::new(twoparty::VatNetwork::new( | ||
reader, | ||
writer, | ||
rpc_twoparty_capnp::Side::Client, | ||
Default::default(), | ||
)); | ||
RpcSystem::new(network, bootstrap) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.