58 releases (29 stable)

1.4.8 May 4, 2024
1.4.6 Mar 28, 2024
1.4.3 Feb 23, 2024
1.4.0 Dec 27, 2023
0.1.11 Nov 27, 2020

#1366 in Math

Download history 98/week @ 2024-01-22 96/week @ 2024-01-29 134/week @ 2024-02-05 65/week @ 2024-02-12 191/week @ 2024-02-19 225/week @ 2024-02-26 275/week @ 2024-03-04 411/week @ 2024-03-11 96/week @ 2024-03-18 242/week @ 2024-03-25 141/week @ 2024-04-01 62/week @ 2024-04-08 56/week @ 2024-04-15 67/week @ 2024-04-22 470/week @ 2024-04-29 131/week @ 2024-05-06

727 downloads per month
Used in 2 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