From 4e042126bd9f250fc84a00fa34de90cc48d15ccf9715a72ef465669313331252 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Sun, 21 Apr 2024 00:00:00 +0000 Subject: Make hitomezashi_rs a proper library crate --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 0aba5f0..c936dc1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,7 +19,7 @@ use clap::Parser; use std::ops::RangeInclusive; -mod hitomezashi; +use hitomezashi_rs; #[derive(Parser)] #[command(version, about, long_about = None)] // Read from `Cargo.toml` @@ -43,7 +43,7 @@ struct Cli { fn main() { let cli = Cli::parse(); - hitomezashi::hitomezashi(cli.width, cli.height, Some(cli.skew)); + hitomezashi_rs::generate(cli.width, cli.height, Some(cli.skew)); } const DIMENSION_RANGE: RangeInclusive = 1..=std::usize::MAX; -- cgit v1.2.3