Skip to content

Commit

Permalink
refactor(conta): use toml_edit instead of hand written sed (#195)
Browse files Browse the repository at this point in the history
* refactor(conta): edit versions with toml_edit

* feat(conta): trim the bump logic with toml_edit

* fix(conta): packages matching

* ci(typos): update to 1.16.25
  • Loading branch information
clearloop authored Dec 16, 2023
1 parent cdc0cfc commit 0a10536
Show file tree
Hide file tree
Showing 13 changed files with 246 additions and 305 deletions.
1 change: 1 addition & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[alias]
bb = "build --all --all-features --release"
be = "build --examples --target wasm32-unknown-unknown --release"
tt = "nextest run --release --all --no-fail-fast"
te = "nextest run --workspace --no-fail-fast --release --examples"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/typos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crate-ci/[email protected].23
- uses: crate-ci/[email protected].25
171 changes: 111 additions & 60 deletions Cargo.lock

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

20 changes: 10 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@ repository = "https://github.com/clearloop/zink.git"
anyhow = "1.0.75"
cargo_metadata = "0.18.1"
clap = "4.4.11"
curl = "0.4.44"
color-eyre = "0.6.2"
colored = "2.1.0"
crates-io = "0.39.0"
etc = "0.1.16"
ethers = "2.0.11"
hex = "0.4.3"
Expand All @@ -39,6 +37,7 @@ postcard = { version = "1.0.8", default-features = false }
proc-macro2 = "1.0.70"
quote = "1.0.33"
revm = "3.5.0"
reqwest = { version = "0.11.22", default-features = false }
semver = "1.0.20"
serde = { version = "1.0.193", default-features = false }
serde_json = "1.0.108"
Expand All @@ -49,6 +48,7 @@ target-lexicon = "0.12.12"
thiserror = "1.0.51"
tokio = "1.35.0"
toml = "0.8.8"
toml_edit = "0.21.0"
tracing = "0.1.40"
tracing-subscriber = "0.3.18"
url = "2.5.0"
Expand All @@ -62,14 +62,14 @@ sol-abi = { path = "evm/abi", version = "=0.0.1" }
opcodes = { package = "evm-opcodes", path = "evm/opcodes", version = "=0.0.3", features = [ "data" ] }

## Zink packages
elko = { path = "cli/elko", version = "=0.1.8" }
zabi = { path = "abi", version = "=0.1.8" }
zingen = { path = "codegen", version = "=0.1.8" }
zinkc = { path = "compiler", version = "=0.1.8" }
filetests = { package = "zinkc-filetests", path = "compiler/filetests", version = "=0.1.8" }
zink = { path = ".", version = "=0.1.8" }
zink-codegen = { path = "zink/codegen", version = "=0.1.8" }
zint = { path = "zint", version = "=0.1.8" }
elko = { path = "cli/elko", version = "0.1.8" }
zabi = { path = "abi", version = "0.1.8" }
zingen = { path = "codegen", version = "0.1.8" }
zinkc = { path = "compiler", version = "0.1.8" }
filetests = { package = "zinkc-filetests", path = "compiler/filetests", version = "0.1.8" }
zink = { path = ".", version = "0.1.8" }
zink-codegen = { path = "zink/codegen", version = "0.1.8" }
zint = { path = "zint", version = "0.1.8" }

[profile]
dev = { panic = "abort"}
Expand Down
10 changes: 10 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## v0.1.9

### Changes

- Refactor conta with `toml_edit`

### FIXED

- Missing logic of adapt package alias in conta

## v0.1.8

### Added
Expand Down
7 changes: 3 additions & 4 deletions cli/conta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ repository.workspace = true

[dependencies]
anyhow.workspace = true
cargo_metadata.workspace = true
clap = { workspace = true, features = [ "derive" ] }
crates-io.workspace = true
curl.workspace = true
ccli.workspace = true
reqwest = { workspace = true, features = [ "blocking", "json", "default-tls" ] }
semver.workspace = true
serde = { workspace = true, features = [ "derive" ] }
toml.workspace = true
toml_edit.workspace = true
5 changes: 2 additions & 3 deletions cli/conta/src/bin/conta.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use anyhow::Result;
use clap::Parser;
use ccli::{App, Result};
use conta::Conta;

fn main() -> Result<()> {
Conta::parse().run()
Conta::start()
}
Loading

0 comments on commit 0a10536

Please sign in to comment.