Skip to main content

monty_types/
lib.rs

1#![doc = include_str!("../README.md")]
2
3/// The monty version this build was compiled as.
4pub const MONTY_VERSION: &str = env!("CARGO_PKG_VERSION");
5
6pub mod args;
7mod builtins;
8mod exceptions;
9mod file_mode;
10pub mod format;
11mod io;
12mod object;
13mod os;
14mod resource;
15mod results;
16mod run_options;
17mod type_checking;
18
19pub use crate::{
20    builtins::BuiltinsFunctions,
21    exceptions::{
22        CodeLoc, ExcData, ExcType, JsonErrorData, MontyException, StackFrame, UnicodeErrorData, UnicodeErrorObject,
23        unicode_decode_error_msg,
24    },
25    file_mode::FileMode,
26    format::{FormatFloat, StringRepr, bytes_repr, bytes_repr_fmt, string_repr_fmt, utf8_error_reason},
27    io::{DEFAULT_MAX_PRINT_COLLECT_BYTES, PrintStream, PrintWriter, PrintWriterCallback, check_print_collect_limit},
28    object::{
29        ConversionError, DictPairs, InvalidInputError, MontyDate, MontyDateTime, MontyFileHandle, MontyObject,
30        MontyTimeDelta, MontyTimeZone, MontyType,
31    },
32    os::{
33        GetenvArgs, MkdirCallArgs, MontyPath, OpenCallArgs, OsFunctionCall, PathBytesDataArgs, PathStringDataArgs,
34        RenameCallArgs, dir_stat, file_stat, stat_result, symlink_stat,
35    },
36    resource::{
37        BASELINE_MEMORY, DEFAULT_MAX_RECURSION_DEPTH, LARGE_RESULT_THRESHOLD, LIVE_MEMORY, OOM_EXIT_CODE,
38        ResourceError, ResourceLimits, ResourceTracker,
39    },
40    results::{ExtFunctionResult, NameLookupResult},
41    run_options::{AssertMessageAnnotations, CompileOptions},
42    type_checking::{TypeCheckState, TypeCheckingConfig, TypeCheckingFormat},
43};