flx-rs

Crates.ioflx-rs
lib.rsflx-rs
version0.2.1
sourcesrc
created_at2021-10-27 16:43:03.234317
updated_at2024-09-27 08:57:23.774641
descriptionRewrite emacs-flx in Rust for dynamic modules
homepagehttps://github.com/the-flx/flx-rs
repositoryhttps://github.com/the-flx/flx-rs
max_upload_size
id473141
size19,673
Jen-Chieh Shen (jcs090218)

documentation

https://docs.rs/flx-rs

README

License: MIT Release crates.io crates.io.d

flx-rs

Rewrite emacs-flx in Rust for dynamic modules

CI

🔨 Usage

Add this to your Cargo.toml:

[dependencies]
flx-rs = "0.2.0"

This package only exposed one function flx_rs::score that takes only two arguments (str: &str, query: &str).

use flx_rs;

fn main() {
    let result : Option<flx_rs::Result> = flx_rs::score("switch-to-buffer", "stb");

    println!("Score: {}", result.unwrap().score);   // Score: 237
}

See the official documentation at https://docs.rs/flx-rs/latest/flx_rs/.

📂 Example

  • flx-rs - Emacs package uses this as a dynamic module

⚜️ License

flx-rs is distributed under the terms of the MIT license.

See LICENSE for details.

Commit count: 72

cargo fmt