60 releases (31 stable)

1.5.0 Jul 10, 2024
1.4.8 May 4, 2024
1.4.6 Mar 28, 2024
1.4.0 Dec 27, 2023
0.1.11 Nov 27, 2020

#1362 in Math

Download history 109/week @ 2024-04-03 60/week @ 2024-04-10 46/week @ 2024-04-17 87/week @ 2024-04-24 495/week @ 2024-05-01 90/week @ 2024-05-08 52/week @ 2024-05-15 54/week @ 2024-05-22 54/week @ 2024-05-29 35/week @ 2024-06-05 37/week @ 2024-06-12 297/week @ 2024-06-19 63/week @ 2024-06-26 99/week @ 2024-07-03 292/week @ 2024-07-10 177/week @ 2024-07-17

644 downloads per month
Used in 3 crates

MIT license

365KB
12K 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