Skip to content

Commit

Permalink
chore(elko): remove clap
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop committed Dec 23, 2023
1 parent 82c3ef7 commit c44df68
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

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

2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ repository = "https://github.com/clearloop/zink.git"
anyhow = "1.0.76"
cargo_metadata = "0.18.1"
ccli = "0.0.1"
clap = "4.4.11"
colored = "2.1.0"
etc = "0.1.16"
hex = "0.4.3"
Expand Down Expand Up @@ -78,7 +77,6 @@ packages = [
"elko"
]


# Zink Programming Language
# -------------------------

Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
[![telegram][telegram-badge]][telegram-group]

[The Zink project][book] mainly provides a singlepass compiler `zinkc` which compiles
WASM to EVM bytecode, the source code of your smart contract could be any language you
like!
WASM to EVM bytecode, the source code of your smart contracts could be any language you like!

```mermaid
flowchart LR
Expand Down
1 change: 1 addition & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- Remove ethers
- Move out ccli and conta
- Use `anyhow::Result` instead for the result of `zint`
- Remove clap in elko

### FIXED

Expand Down
1 change: 0 additions & 1 deletion elko/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ repository.workspace = true
[dependencies]
anyhow.workspace = true
ccli.workspace = true
clap = { workspace = true, features = [ "derive" ] }
cargo_metadata.workspace = true
colored.workspace = true
etc.workspace = true
Expand Down
5 changes: 4 additions & 1 deletion elko/src/bin/elko.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
//! The package manager of zink.
#![deny(missing_docs)]

use ccli::{clap::Subcommand, App, Parser, Result};
use ccli::{
clap::{self, Parser, Subcommand},
App, Result,
};
use elko::{Build, Compile, New};

/// Elko commands
Expand Down
2 changes: 1 addition & 1 deletion elko/src/build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Command `Build`.
use crate::utils::WasmBuilder;
use anyhow::{anyhow, Result};
use clap::Parser;
use ccli::clap::{self, Parser};
use etc::{Etc, FileSystem};
use std::{env, fs, path::PathBuf};
use zinkc::Compiler;
Expand Down
2 changes: 1 addition & 1 deletion elko/src/new.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Command `New`
use crate::utils::Manifest;
use anyhow::{anyhow, Result};
use clap::Parser;
use ccli::clap::{self, Parser};
use colored::*;
use std::{fs, path::PathBuf};

Expand Down

0 comments on commit c44df68

Please sign in to comment.