Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lwshang committed Sep 5, 2023
1 parent eb9be51 commit 2b2d7a7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ quote = "1"
syn = { version = "2", features = ["parsing", "full", "extra-traits"] }

[[example]]
name = "gen_mock_wat"
name = "generate_mock_wat"
path = "util/generate_mock_wat.rs"
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Candid Extractor

This project provides a CLI tool `candid_extractor` which extract candid definition from a canister WASM module.

## Installation

```
cargo install --git https://github.com/lwshang/candid_extractor
```

## Usage

```
candid_extractor path/to/canister.wasm
```

## Generate IC mock wat

```
cargo run --example=generate_mock_wat
```

0 comments on commit 2b2d7a7

Please sign in to comment.