#[cfg(all(unix, not(target_os = "freebsd")))]
#[macro_use]
extern crate sig;
#[macro_use]
mod errors;
mod cargo_metadata;
mod child_process;
mod code_block;
mod command_context;
mod crash_guard;
mod crate_config;
mod eval_context;
#[allow(dead_code)]
mod evcxr_internal_runtime;
mod item;
mod module;
mod runtime;
mod rust_analyzer;
mod statement_splitter;
mod use_trees;
pub use crate::command_context::CommandContext;
pub use crate::errors::CompilationError;
pub use crate::errors::Error;
pub use crate::errors::Theme;
pub use crate::eval_context::EvalCallbacks;
pub use crate::eval_context::EvalContext;
pub use crate::eval_context::EvalContextOutputs;
pub use crate::eval_context::EvalOutputs;
pub use crate::runtime::runtime_hook;
pub use rust_analyzer::Completions;
pub fn config_dir() -> Option<std::path::PathBuf> {
std::env::var_os("EVCXR_CONFIG_DIR")
.map(std::path::PathBuf::from)
.or_else(|| dirs::config_dir().map(|d| d.join("evcxr")))
}