fift/
lib.rs

1extern crate self as fift;
2
3use anyhow::Result;
4
5pub use self::core::Context;
6
7pub mod core;
8pub mod error;
9pub mod modules;
10pub mod util;
11
12impl Context<'_> {
13    pub fn with_basic_modules(self) -> Result<Self> {
14        use modules::*;
15        self.with_module(BaseModule)?
16            .with_module(Arithmetic)?
17            .with_module(CellUtils)?
18            .with_module(DictUtils)?
19            .with_module(Control)?
20            .with_module(DebugUtils)?
21            .with_module(StackUtils)?
22            .with_module(StringUtils)?
23            .with_module(Crypto)?
24            .with_module(VmUtils)
25    }
26}