#api #web #wrapper

faclair

HTTP Client for the learngaelic.scot Scottish Gaelic dictionary

1 unstable release

0.1.0 Jun 8, 2021

#373 in HTTP client

Unlicense

53KB
94 lines

Faclair

This is an http client for the learngaelic.scot Scottish Gaelic dictionary.

Example

use faclair::{self, Options, Language};

fn main() -> Result<(), faclair::Error> {
    let results = faclair::search("saor")?;
    for result in results {
        println!("{} -> {}", result.headword, result.translation);
    }

    let options = Options::default();
    options.whole_word();
    options.language(Language::Both);

    let results = faclair::search_with_options("saor", options)?;
    for result in results {
        println!("{} -> {}", result.headword, result.translation);
    }

    Ok(())
}

lib.rs:

This is a client that can be used to search the learngaelic.scot/dictionary Scottish Gaelic Dictionary

Dependencies

~2.7–4MB
~106K SLoC