Add convenient project base
This commit is contained in:
commit
fbfffff512
6 changed files with 114 additions and 0 deletions
10
src/lib.rs
Normal file
10
src/lib.rs
Normal file
|
@ -0,0 +1,10 @@
|
|||
/// Remember the passed value as the solution for the current puzzle.
|
||||
/// Prints a specially formatted line so that the solution can be found from the justfile.
|
||||
pub fn solved_level_1<S: ToString>(s: S) {
|
||||
println!("level-1-solution={}", s.to_string());
|
||||
}
|
||||
|
||||
/// See [solved_level_1].
|
||||
pub fn solved_level_2<S: ToString>(s: S) {
|
||||
println!("level-2-solution={}", s.to_string());
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue