mirror of
https://tangled.org/grace.pink/atproto-ssh-tool.git
synced 2026-04-02 21:05:46 +00:00
16 lines
465 B
Rust
16 lines
465 B
Rust
use jacquard_lexicon::codegen::CodeGenerator;
|
|
use jacquard_lexicon::corpus::LexiconCorpus;
|
|
use std::env;
|
|
use std::path::Path;
|
|
|
|
fn main() {
|
|
let out_dir = env::var_os("OUT_DIR").unwrap();
|
|
let out_path = Path::new(&out_dir);
|
|
|
|
let corpus = LexiconCorpus::load_from_dir(Path::new("lexicons/")).unwrap();
|
|
|
|
CodeGenerator::new(&corpus, "pink_lexicon")
|
|
.write_to_disk(out_path)
|
|
.unwrap();
|
|
println!("cargo::rerun-if-changed=lexicons/");
|
|
}
|