56 releases (27 stable)

1.4.6 Mar 28, 2024
1.4.3 Feb 23, 2024
1.4.0 Dec 27, 2023
1.3.2 Nov 11, 2023
0.1.11 Nov 27, 2020

#1326 in Math

Download history 44/week @ 2023-12-22 21/week @ 2023-12-29 65/week @ 2024-01-05 14/week @ 2024-01-12 87/week @ 2024-01-19 29/week @ 2024-01-26 166/week @ 2024-02-02 98/week @ 2024-02-09 35/week @ 2024-02-16 348/week @ 2024-02-23 253/week @ 2024-03-01 394/week @ 2024-03-08 155/week @ 2024-03-15 196/week @ 2024-03-22 184/week @ 2024-03-29 74/week @ 2024-04-05

674 downloads per month
Used in 2 crates

MIT license

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