9 releases

Uses old Rust 2015

0.2.1 Sep 27, 2024
0.2.0 Apr 19, 2024
0.1.6 Mar 13, 2024
0.1.5 Sep 28, 2023
0.1.1 Oct 29, 2021

#7 in #fuzzy-string

Download history 1/week @ 2024-06-16 182/week @ 2024-09-22 56/week @ 2024-09-29

238 downloads per month

MIT license

18KB
331 lines

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.

No runtime deps