65 releases (36 stable)

new 1.5.5 Nov 16, 2024
1.5.2 Sep 15, 2024
1.5.0 Jul 10, 2024
1.4.6 Mar 28, 2024
0.1.11 Nov 27, 2020

#1294 in Math

Download history 227/week @ 2024-07-29 339/week @ 2024-08-05 137/week @ 2024-08-12 131/week @ 2024-08-19 136/week @ 2024-08-26 144/week @ 2024-09-02 373/week @ 2024-09-09 342/week @ 2024-09-16 283/week @ 2024-09-23 407/week @ 2024-09-30 234/week @ 2024-10-07 181/week @ 2024-10-14 144/week @ 2024-10-21 216/week @ 2024-10-28 111/week @ 2024-11-04 347/week @ 2024-11-11

840 downloads per month
Used in 3 crates

MIT license

380KB
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