mirror of
https://tangled.org/grace.pink/atproto-ssh-tool.git
synced 2026-04-02 21:05:46 +00:00
initial commit
This commit is contained in:
commit
736b42018b
7 changed files with 6052 additions and 0 deletions
16
build.rs
Normal file
16
build.rs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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/");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue