Skip to content
Snippets Groups Projects
Unverified Commit 69087ce2 authored by Javier Viola's avatar Javier Viola Committed by GitHub
Browse files

Merge pull request #93 from paritytech/feat/examples

add examples crate
parents 9f251308 623a9c0a
Branches
No related merge requests found
[workspace]
resolver = "2"
members = [
"crates/examples",
"crates/support",
"crates/configuration",
"crates/orchestrator",
......
[package]
name = "examples"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
configuration = { path = "../configuration" }
use configuration::NetworkConfigBuilder;
fn main() {
let config = NetworkConfigBuilder::new()
.with_relaychain(|r| {
r.with_chain("rococo-local")
.with_node(|node| node.with_name("alice").with_command("polkadot"))
})
.build();
println!("{:?}", config.unwrap());
}
use configuration::NetworkConfigBuilder;
fn main() {
let config = NetworkConfigBuilder::new()
.with_relaychain(|r| {
r.with_chain("rococo-local")
.with_default_command("polkadot")
.with_node(|node| node.with_name("alice"))
.with_node(|node| node.with_name("name"))
})
.build();
println!("{:?}", config.unwrap());
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment