#eval

bin+lib evcxr

An Evaluation Context for Rust

33 releases

Uses new Rust 2021

0.14.1 Oct 29, 2022
0.13.0 Jul 11, 2022
0.12.0 Oct 9, 2021
0.11.0 Jul 26, 2021
0.2.0 Oct 8, 2018

#407 in Rust patterns

Download history 764/week @ 2022-08-15 835/week @ 2022-08-22 741/week @ 2022-08-29 986/week @ 2022-09-05 842/week @ 2022-09-12 1317/week @ 2022-09-19 1040/week @ 2022-09-26 1126/week @ 2022-10-03 987/week @ 2022-10-10 752/week @ 2022-10-17 762/week @ 2022-10-24 859/week @ 2022-10-31 706/week @ 2022-11-07 611/week @ 2022-11-14 674/week @ 2022-11-21 606/week @ 2022-11-28

2,701 downloads per month
Used in 4 crates

Apache-2.0

215KB
4.5K SLoC

Evcxr library

Latest Version

An implementation of eval() for Rust.

The main struct in this crate is EvalContext. You create one, then ask it to eval bits of code. Any defined functions, variables etc are local to that context.

To see an example usage, see examples/example_eval.rs.

I'll not go into too much detail here, since the purpose of this library is really to provide functionality to evcxr_jupyter and evcxr_repl. If you'd like to try using this crate for something else, drop me an email, or file an issue on the repository and we can figure out your use case.

MSRV

See .github/workflows/ci.yml for the current minimum supported rust version. Generally rare that we support much older versions than the latest stable, since

  • mostly because our upstream dependencies make use of new rust features pretty quickly after they stabalize.

How it works

See how it works

Release notes

See release notes

Dependencies

~31MB
~671K SLoC