Cargo Features

[dependencies]
miden-assembly = { version = "0.12.0", default-features = false, features = ["std", "testing"] }
default = std

The std feature is set by default whenever miden-assembly is added without default-features = false somewhere in the dependency tree.

std default

Enables std of aho-corasick, fancy and std of miden-miette and std of thiserror and miden-core

thiserror:

Std feature enables support for formatting std::path::{Path, PathBuf}
conveniently in an error message.

#[derive(Error, Debug)]
#[error("failed to create configuration file {path}")]
pub struct MyError {
pub path: PathBuf,
pub source: std::io::Error,
}

Without std, this would need to be written #[error("... {}", path.display())].

Affects diagnostics::reporting.DefaultReportHandler, parser::read_modules_from_dir

testing

Enables regex