39 releases

0.18.0 Oct 12, 2024
0.17.0 Dec 17, 2023
0.16.0 Oct 22, 2023
0.15.1 Jul 13, 2023
0.2.0 Oct 8, 2018

#720 in Parser implementations

Download history 1125/week @ 2024-07-23 1195/week @ 2024-07-30 1027/week @ 2024-08-06 1038/week @ 2024-08-13 1002/week @ 2024-08-20 1001/week @ 2024-08-27 873/week @ 2024-09-03 1052/week @ 2024-09-10 934/week @ 2024-09-17 1219/week @ 2024-09-24 1179/week @ 2024-10-01 1811/week @ 2024-10-08 1614/week @ 2024-10-15 1334/week @ 2024-10-22 1256/week @ 2024-10-29 1265/week @ 2024-11-05

5,832 downloads per month
Used in 5 crates

MIT/Apache

270KB
6K 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 (Minimum supported Rust version)

Should work with the latest stable release. May sometimes work with one or two older version. See evcxr/Cargo.toml for the current minimum supported rust version. If you're stuck on an older version of rustc, your best bet is either to use a precompiled binary or use an older version of Evcxr. The release notes might give clues as to when MSRV bumps occurred.

How it works

See how it works

Release notes

See release notes

Dependencies

~31–44MB
~828K SLoC