//!
//!
//!
//!
//!
//!
//!
//! Minimum support: Rust 1.74+.
//!
//!
//! Visit the site 🌐
//! —
//! Read the book 📖
//!
//!
//!
//! An interpreter for the Rune Language, an embeddable dynamic programming language for Rust.
//!
//!
//!
//! ## Usage
//!
//! If you're in the repo, you can take it for a spin with:
//!
//! ```text
//! cargo run --bin rune -- scripts/hello_world.rn
//! ```
//!
//! [Rune Language]: https://rune-rs.github.io
//! [rune]: https://github.com/rune-rs/rune
pub const VERSION: &str = include_str!(concat!(env!("OUT_DIR"), "/version.txt"));
fn main() {
rune::cli::Entry::new()
.about(format_args!("The Rune Language Interpreter {VERSION}"))
.context(&mut |opts| {
let mut c = rune_modules::with_config(opts.capture.is_none())?;
if opts.experimental {
c.install(rune_modules::experiments::module(opts.capture.is_none())?)?;
}
Ok(c)
})
.run();
}