Skip to content

Commit

Permalink
Improve samples graphs_tools_trivial_sample and `automata_tools_tri…
Browse files Browse the repository at this point in the history
…vial_sample`, add output, setup features
  • Loading branch information
dmvict committed Jun 9, 2022
1 parent d36f02a commit 3164c93
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions module/move/automata_tools/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ use automata_tools::prelude::*;
use wtools::prelude::*;
let node : automata_tools::canonical::Node = make!( 13 );
assert_eq!( node.id(), 13.into() );
println!( "{:?}", node );
/* print : node::13 */
```

### To add to your project
Expand Down
2 changes: 2 additions & 0 deletions module/move/graphs_tools/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Graphs tools.
use wtools::prelude::*;
let node : graphs_tools::canonical::Node = make!( 13 );
assert_eq!( node.id(), 13.into() );
println!( "{:?}", node );
/* print : node::13 */
}
```

Expand Down
2 changes: 1 addition & 1 deletion sample/rust/automata_tools_trivial_sample/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ edition = "2021"
publish = false

[dependencies]
graphs_tools = { version = "*", path = "../../../module/move/graphs_tools" }
automata_tools = { version = "*", path = "../../../module/move/automata_tools" }
wtools = { version = "*", path = "../../../module/rust/wtools" }
2 changes: 2 additions & 0 deletions sample/rust/automata_tools_trivial_sample/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ fn main()
use wtools::prelude::*;
let node : automata_tools::canonical::Node = make!( 13 );
assert_eq!( node.id(), 13.into() );
println!( "{:?}", node );
/* print : node::13 */
}

5 changes: 5 additions & 0 deletions sample/rust/graphs_tools_trivial_sample/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ version = "0.0.0"
edition = "2021"
publish = false

[features]
use_std = []
cell_factory = []
default = [ "use_std", "cell_factory" ]

[dependencies]
graphs_tools = { version = "*", path = "../../../module/move/graphs_tools" }
wtools = { version = "*", path = "../../../module/rust/wtools" }
2 changes: 2 additions & 0 deletions sample/rust/graphs_tools_trivial_sample/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ fn main()
use wtools::prelude::*;
let node : graphs_tools::canonical::Node = make!( 13 );
assert_eq!( node.id(), 13.into() );
println!( "{:?}", node );
/* print : node::13 */
}
}

0 comments on commit 3164c93

Please sign in to comment.