Skip to content

Commit

Permalink
Merge pull request #262 from monadicus/refactor/deprecate-cargo-make
Browse files Browse the repository at this point in the history
Refactor/deprecate cargo make
  • Loading branch information
gluax authored Sep 9, 2024
2 parents 115a6ba + 1c98aee commit 719bf84
Show file tree
Hide file tree
Showing 7 changed files with 232 additions and 260 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,19 @@ incremental = true
lto = "fat"
opt-level = 3
panic = "unwind"
strip = true

# For testing cargo bloat
[profile.release-no-strip]
inherits = "release"
strip = false

# This one optimizes binary size
[profile.release-small]
inherits = "release"
opt-level = "z"
strip = true

[profile.release-big]
inherits = "release"
codegen-units = 16
incremental = true
lto = "thin"
opt-level = 1
panic = "unwind"

[workspace.dependencies]
aleo-std = "=0.1.24"
Expand Down
226 changes: 0 additions & 226 deletions Makefile.toml

This file was deleted.

2 changes: 1 addition & 1 deletion crates/snops/src/persist/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ impl PersistStorage {

// load accounts json
for name in &self.accounts {
let path = storage_path.join(&format!("{name}.json"));
let path = storage_path.join(format!("{name}.json"));

let res = if *name == *ACCOUNTS_KEY_ID {
read_to_addrs(pick_additional_addr, &path).await
Expand Down
2 changes: 1 addition & 1 deletion crates/snops/src/schema/storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ impl Document {

if let Some(generation) = &self.generate {
for (name, account) in &generation.accounts {
let path = base.join(&format!("{}.json", name));
let path = base.join(format!("{}.json", name));

if !path.exists() {
info!("generating accounts for {name}");
Expand Down
1 change: 1 addition & 0 deletions crates/xtask/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ edition = "2021"
[dependencies]
anyhow.workspace = true
xshell = "0.2"
clap.workspace = true
Loading

0 comments on commit 719bf84

Please sign in to comment.