Skip to content

Commit

Permalink
intro: add installation step (#1)
Browse files Browse the repository at this point in the history
* add installation step

* fix: use console tag

* chore: ignore mdbook installation error
  • Loading branch information
gakonst authored Aug 19, 2021
1 parent 8fbe441 commit 143b56c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ help: ## Show this help.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {sub("\\\\n",sprintf("\n%22c"," "), $$2);printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)

build: ## Build the book directory
@cargo install mdbook
@cargo install mdbook || true
@mdbook build

test:
@mdbook test

deploy: build ## Deploy the site using Netlify's CLI
@netlify deploy --prod
16 changes: 16 additions & 0 deletions src/1_introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,19 @@ We assume familiarity with Ethereum's mechanics such as:
* Deploying a contract & interacting with it
* Sending funds across accounts
* Signing messages and recovering their sender

## Installing Ethers-rs

First create a new Rust project:

```console
$ cargo new ethers-hello-world && cd ethers-hello-world
```

Edit your `Cargo.toml` and insert the following dependency:

```toml
[dependencies]

ethers = { git = "https://github.com/gakonst/ethers-rs" }
```

0 comments on commit 143b56c

Please sign in to comment.