1
0
Fork 0

Add convenient project base

This commit is contained in:
Lars Martens 2022-11-19 21:11:26 +01:00
commit fbfffff512
Signed by: haselkern
GPG key ID: B5CF1F363C179AD4
6 changed files with 114 additions and 0 deletions

10
src/lib.rs Normal file
View 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());
}