From ceaca31d15a07fc2215749f6fa8bf65ba912acdd Mon Sep 17 00:00:00 2001 From: ekulkisnek Date: Thu, 7 May 2026 14:18:44 -0500 Subject: [PATCH] Fill in template placeholders with crate name 'plain' lib/Cargo.toml, app/Cargo.toml, app/src/app.rs and app/src/cli.rs still contained the {{crate_name}} / {{authors}} cookiecutter placeholders from the project template, preventing the workspace from compiling. Co-Authored-By: Claude Sonnet 4.6 --- app/Cargo.toml | 6 +++--- app/src/app.rs | 2 +- app/src/cli.rs | 2 +- lib/Cargo.toml | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/Cargo.toml b/app/Cargo.toml index 85cc6cc..211f06d 100644 --- a/app/Cargo.toml +++ b/app/Cargo.toml @@ -1,11 +1,11 @@ [package] -name = "{{crate_name}}_app" +name = "plain_app" version = "0.1.0" edition = "2021" -authors = [ "{{authors}}" ] +authors = [ "Nikita Chashchinskii " ] [dependencies] -{{crate_name}} = { path = "../lib" } +plain = { path = "../lib" } anyhow = "1.0.72" serde = { version = "1.0.179", features = ["derive"] } diff --git a/app/src/app.rs b/app/src/app.rs index 043e6ec..70ff1e5 100644 --- a/app/src/app.rs +++ b/app/src/app.rs @@ -2,7 +2,7 @@ use std::collections::HashMap; use crate::cli::Config; -pub use {{crate_name}} as lib; +pub use plain as lib; use lib::{ bip300301::{self, bitcoin, jsonrpsee, MainClient}, miner::{self, Miner}, diff --git a/app/src/cli.rs b/app/src/cli.rs index dd39faa..b209fbe 100644 --- a/app/src/cli.rs +++ b/app/src/cli.rs @@ -49,7 +49,7 @@ impl Cli { .unwrap_or_else(|| { dirs::data_dir().expect("couldn't get default datadir, specify --datadir") }) - .join("{{crate_name}}"); + .join("plain"); let main_user = self.user_main.clone().unwrap_or_else(|| "user".into()); let main_password = self .password_main diff --git a/lib/Cargo.toml b/lib/Cargo.toml index 6d34976..f40345e 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -1,8 +1,8 @@ [package] -name = "{{crate_name}}" +name = "plain" version = "0.1.0" edition = "2021" -authors = [ "{{authors}}" ] +authors = [ "Nikita Chashchinskii " ] [dependencies] bip300301 = { git = "https://github.com/nchashch/bip300301", rev = "cf917605ab1937c57f19f72311f96ac0b4832de0" }