summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicholasjohnson.ch>2024-04-21 00:00:00 +0000
committerNicholas Johnson <nick@nicholasjohnson.ch>2024-04-21 00:00:00 +0000
commit4e042126bd9f250fc84a00fa34de90cc48d15ccf9715a72ef465669313331252 (patch)
treef5dee1ff90390ab1b6f101467695ba16a99c3a66d40515c3174ce2661f86e956 /src/main.rs
parentd901633c75773ffaa8a1eb01cc9539e3f79b3924613e5c89d5f4b0236acf5d7e (diff)
downloadhitomezashi-rs-9ec6adf5432bcb5aa1b231fd6cbc21fb8e72d9212c9c24d794b8852354feb214.tar.gz
hitomezashi-rs-9ec6adf5432bcb5aa1b231fd6cbc21fb8e72d9212c9c24d794b8852354feb214.zip
Make hitomezashi_rs a proper library cratev3.0.0
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
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<usize> = 1..=std::usize::MAX;