subspace
subspace is a highly unstable convenience crate for setting up management of and communication with external processes (nodes).
Example
Add subspace
to your Cargo.toml
[]
= "0.1.0"
In your main process, create an External
struct.
// For the full example, check tests/node_tests.rs
// name is the path + filename of the executable to launch
let name = "target/debug/example";
// address is the hostname + port the node should bind to
let address = "localhost:2345";
new?;
In your secondary process, parse command line arguments (done with clap in the example) and create a node.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.