38 releases

0.17.0 Dec 17, 2023
0.16.0 Oct 22, 2023
0.15.1 Jul 13, 2023
0.14.2 Jan 2, 2023
0.2.0 Oct 8, 2018

#4 in #detail

Download history 654/week @ 2023-12-21 606/week @ 2023-12-28 1389/week @ 2024-01-04 1468/week @ 2024-01-11 1491/week @ 2024-01-18 1276/week @ 2024-01-25 1345/week @ 2024-02-01 1030/week @ 2024-02-08 1383/week @ 2024-02-15 1339/week @ 2024-02-22 1140/week @ 2024-02-29 1300/week @ 2024-03-07 1202/week @ 2024-03-14 1315/week @ 2024-03-21 1156/week @ 2024-03-28 989/week @ 2024-04-04

4,921 downloads per month
Used in 5 crates

MIT/Apache

265KB
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

~30–44MB
~823K SLoC