66 releases (37 stable)

Uses new Rust 2024

new 1.5.6 Mar 14, 2025
1.5.5 Nov 16, 2024
1.5.3 Oct 5, 2024
1.5.0 Jul 10, 2024
0.1.11 Nov 27, 2020

#1329 in Math

Download history 182/week @ 2024-11-23 144/week @ 2024-11-30 284/week @ 2024-12-07 151/week @ 2024-12-14 91/week @ 2024-12-21 131/week @ 2024-12-28 164/week @ 2025-01-04 177/week @ 2025-01-11 231/week @ 2025-01-18 195/week @ 2025-01-25 187/week @ 2025-02-01 534/week @ 2025-02-08 421/week @ 2025-02-15 301/week @ 2025-02-22 342/week @ 2025-03-01 533/week @ 2025-03-08

1,823 downloads per month
Used in 3 crates

MIT license

385KB
13K SLoC

fend-core

This library implements most of the features of fend.

It requires no dependencies and can easily be used by other Rust programs.

Example

extern crate fend_core;

fn main() {
    let mut context = fend_core::Context::new();
    let result = fend_core::evaluate("1 + 1", &mut context).unwrap();
    assert_eq!(result.get_main_result(), "2");
}

lib.rs:

This library implements most of the features of fend.

Example

extern crate fend_core;

fn main() {
    let mut context = fend_core::Context::new();
    let result = fend_core::evaluate("1 + 1", &mut context).unwrap();
    assert_eq!(result.get_main_result(), "2");
}

No runtime deps