#wrapper #web #api #api-bindings

faclair

HTTP Client for the learngaelic.scot Scottish Gaelic dictionary

1 unstable release

0.1.0 Jun 8, 2021

#582 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

~3–4.5MB
~82K SLoC