Skip to content

Commit

Permalink
Merge branch 'main' into kevjue/field_extension
Browse files Browse the repository at this point in the history
  • Loading branch information
kevjue committed Feb 18, 2024
2 parents e4c93c5 + 8ac9e54 commit f53ae6a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions book/theme/head.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
<meta property="og:title" content="SP1 Book" />
<meta property="og:description" content="About
A performant, 100% open-source, contributor-friendly zkVM." />
<meta name="twitter:image:src" content="https://raw.githubusercontent.com/succinctlabs/ps1/main/assets/sp1.svg" />
<meta property="og:image" content="https://raw.githubusercontent.com/succinctlabs/ps1/main/assets/sp1.svg" />
<meta name="twitter:image:src" content="https://raw.githubusercontent.com/succinctlabs/sp1/main/assets/sp1.png" />
<meta property="og:image" content="https://raw.githubusercontent.com/succinctlabs/sp1/main/assets/sp1.png" />
16 changes: 16 additions & 0 deletions cli/src/assets/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Cargo build
**/target

# Cargo config
.cargo

# Profile-guided optimization
/tmp
pgo-data.profdata

# MacOS nuisances
.DS_Store

# Proofs
**/proof-with-pis.json
**/proof-with-io.json
4 changes: 4 additions & 0 deletions cli/src/commands/new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const PROGRAM_MAIN_RS: &str = include_str!("../assets/program/main.rs");
const SCRIPT_CARGO_TOML: &str = include_str!("../assets/script/Cargo.toml");
const SCRIPT_MAIN_RS: &str = include_str!("../assets/script/main.rs");
const SCRIPT_RUST_TOOLCHAIN: &str = include_str!("../assets/script/rust-toolchain");
const GIT_IGNORE: &str = include_str!("../assets/.gitignore");

#[derive(Parser)]
#[command(name = "new", about = "Setup a new project that runs inside the SP1.")]
Expand Down Expand Up @@ -44,6 +45,9 @@ impl NewCmd {
fs::write(script_root.join("src").join("main.rs"), SCRIPT_MAIN_RS)?;
fs::write(script_root.join("rust-toolchain"), SCRIPT_RUST_TOOLCHAIN)?;

// Add .gitignore file to root.
fs::write(root.join(".gitignore"), GIT_IGNORE)?;

println!(
" \x1b[1m{}\x1b[0m {} ({})",
Paint::green("Initialized"),
Expand Down

0 comments on commit f53ae6a

Please sign in to comment.