37 releases (8 stable)

Uses new Rust 2021

1.1.1 Sep 23, 2022
1.0.5 Aug 13, 2022
1.0.4 Jul 22, 2022
1.0.1 Mar 19, 2022
0.1.11 Nov 27, 2020

#439 in Math

Download history 15/week @ 2022-06-11 16/week @ 2022-06-18 6/week @ 2022-06-25 37/week @ 2022-07-02 39/week @ 2022-07-09 96/week @ 2022-07-16 118/week @ 2022-07-23 16/week @ 2022-07-30 82/week @ 2022-08-06 59/week @ 2022-08-13 23/week @ 2022-08-20 37/week @ 2022-08-27 9/week @ 2022-09-03 115/week @ 2022-09-10 67/week @ 2022-09-17 32/week @ 2022-09-24

223 downloads per month
Used in fend

MIT license

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

Features

  • gpl