From e62c9450c281c22f67fa2e077c8b5667832fd150 Mon Sep 17 00:00:00 2001 From: peg Date: Wed, 13 Nov 2024 13:30:04 +0100 Subject: [PATCH] Taplo --- templates/basic-template/Cargo.toml | 9 ++++++--- templates/basic-template/cli/Cargo.toml | 17 +++++++++++------ .../basic-template/generate-types/Cargo.toml | 6 ++++-- 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/templates/basic-template/Cargo.toml b/templates/basic-template/Cargo.toml index 3779291..ef305de 100644 --- a/templates/basic-template/Cargo.toml +++ b/templates/basic-template/Cargo.toml @@ -18,9 +18,12 @@ strip = "debuginfo" crate-type = ["cdylib", "rlib"] [dependencies] -entropy-programs-core={ git="https://github.com/entropyxyz/programs.git", tag="v0.10.0" } -schemars = {version = "0.8.16", optional = true} -serde = { version = "1.0", default-features = false, features = ["alloc", "derive"] } +entropy-programs-core = { git = "https://github.com/entropyxyz/programs.git", tag = "v0.10.0" } +schemars = { version = "0.8.16", optional = true } +serde = { version = "1.0", default-features = false, features = [ + "alloc", + "derive", +] } # These are used by `cargo component` [package.metadata.component] diff --git a/templates/basic-template/cli/Cargo.toml b/templates/basic-template/cli/Cargo.toml index 946fbc6..b057ec0 100644 --- a/templates/basic-template/cli/Cargo.toml +++ b/templates/basic-template/cli/Cargo.toml @@ -4,12 +4,17 @@ version = "0.1.0" edition = "2021" [dependencies] -clap ={ version="4.5.20", features=["derive"] } -subxt ={version = "0.35.3", features = ["substrate-compat"]} -colored ="2.0.4" -tokio ={ version="1.16", features=["macros", "rt-multi-thread", "io-util", "process"] } -anyhow ="1.0.82" +clap = { version = "4.5.20", features = ["derive"] } +subxt = { version = "0.35.3", features = ["substrate-compat"] } +colored = "2.0.4" +tokio = { version = "1.16", features = [ + "macros", + "rt-multi-thread", + "io-util", + "process", +] } +anyhow = "1.0.82" dotenv = "0.15.0" generate-types = { path = "../generate-types" } project-root = "0.2.2" -entropy-test-cli = { git="https://github.com/entropyxyz/entropy-core.git", branch = "master" } +entropy-test-cli = { git = "https://github.com/entropyxyz/entropy-core.git", branch = "master" } diff --git a/templates/basic-template/generate-types/Cargo.toml b/templates/basic-template/generate-types/Cargo.toml index 7c0fd5b..a1c0529 100644 --- a/templates/basic-template/generate-types/Cargo.toml +++ b/templates/basic-template/generate-types/Cargo.toml @@ -6,6 +6,8 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -program = { package= "{{project-name}}", path = "..", default-features = false, features=['std'] } +program = { package = "{{project-name}}", path = "..", default-features = false, features = [ + 'std', +] } schemars = "0.8.16" -serde_json = { version = "1.0" } \ No newline at end of file +serde_json = { version = "1.0" }