| Crates.io | fend-core |
| lib.rs | fend-core |
| version | 1.5.8 |
| created_at | 2020-08-31 12:21:08.666745+00 |
| updated_at | 2026-01-24 04:09:19.329947+00 |
| description | Arbitrary-precision unit-aware calculator |
| homepage | https://github.com/printfn/fend |
| repository | https://github.com/printfn/fend |
| max_upload_size | |
| id | 283063 |
| size | 516,027 |
This library implements most of the features of fend.
It requires no dependencies and can easily be used by other Rust programs.
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");
}