Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion anneal/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
members = [".", "tools/doc_gen", "v2/setup"]
members = [".", "tools/doc_gen", "v2/toolchain-config"]

[package]
name = "cargo-anneal"
Expand Down
1 change: 1 addition & 0 deletions anneal/v2/result
49 changes: 49 additions & 0 deletions anneal/v2/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@


/// Anneal: A Literate Verification Toolchain
#[derive(clap::Parser, Debug)]
#[command(name = "cargo-anneal", version, about, long_about = None)]
struct Cli {
#[command(subcommand)]
command: Commands,
}

#[derive(clap::Subcommand, Debug)]
enum Commands {
/// Setup Anneal dependencies
Setup(SetupArgs),
}

#[derive(clap::Args, Debug)]
#[group(multiple = false)]
struct SetupArgs {
/// Path to the toolchain archive
#[arg(long)]
archive: Option<PathBuf>,
/// Path to the external toolchain directory
#[arg(long)]
dir: Option<PathBuf>,
/// Pull toolchain archive from remote explicitly
#[arg(long)]
remote: bool,
}

fn is_development_environment() -> bool {
std::env::var("__ZEROCOPY_LOCAL_DEV").is_ok()
}

fn main() {
let mut args_iter = std::env::args_os().peekable();
let bin_name = args_iter.next().unwrap_or_else(|| "cargo-anneal".into());
// If we're being run as a cargo plugin, the second argument will be "anneal".
if args_iter.peek().is_some_and(|arg| arg == "anneal") {
args_iter.next();
}
let args = Cli::parse_from(std::iter::once(bin_name).chain(args_iter));
if is_development_environment() {

} else {

}
println!("Hello, world!");
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "setup"
name = "toolchain-config"
version = "0.1.0"
edition = "2024"

Expand Down
File renamed without changes.
File renamed without changes.
Loading