mirror of
https://github.com/Chaoscaot/schemsearch.git
synced 2026-01-06 11:37:06 +01:00
Restructure
This commit is contained in:
10
schemsearch-cli/Cargo.toml
Normal file
10
schemsearch-cli/Cargo.toml
Normal file
@@ -0,0 +1,10 @@
|
||||
[package]
|
||||
name = "schemsearch-cli"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
schemsearch-lib = { path = "../schemsearch-lib" }
|
||||
schemsearch-files = { path = "../schemsearch-files" }
|
||||
13
schemsearch-cli/src/main.rs
Normal file
13
schemsearch-cli/src/main.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
use std::path::Path;
|
||||
use schemsearch_files::Schematic;
|
||||
use schemsearch_lib::pattern_mapper::match_palette;
|
||||
|
||||
fn main() {
|
||||
let schematic = Schematic::load(Path::new("tests/simple.schem"));
|
||||
let endstone = Schematic::load(Path::new("tests/endstone.schem"));
|
||||
|
||||
let (matched_schematic, matched_endstone) = match_palette(&schematic, &endstone, true);
|
||||
|
||||
println!("{:?}", matched_schematic);
|
||||
println!("{:?}", matched_endstone);
|
||||
}
|
||||
Reference in New Issue
Block a user