From 379a98506658eb6ea7b9606615133c430d11e8f4 Mon Sep 17 00:00:00 2001 From: Abdulla Abdurakhmanov Date: Sat, 22 Aug 2020 18:53:47 +0300 Subject: [PATCH] pre-push hook generator --- .github/workflows/gh-pages.yml | 2 +- Cargo.toml | 2 +- src/client/Cargo.toml | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index c2cf91d..21731e9 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -13,7 +13,7 @@ jobs: uses: peaceiris/actions-mdbook@v1 with: mdbook-version: 'latest' - - run: cd docs && mdbook build + - run: cd docs && mdbook build - name: Copy CNAME run: cp CNAME docs/output - name: Deploy diff --git a/Cargo.toml b/Cargo.toml index 1c6ecb8..fa517f1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,4 +4,4 @@ members = [ "src/models", "src/client", "src/examples" -] \ No newline at end of file +] diff --git a/src/client/Cargo.toml b/src/client/Cargo.toml index 99a5c8d..981fa7d 100644 --- a/src/client/Cargo.toml +++ b/src/client/Cargo.toml @@ -36,4 +36,7 @@ base64 = "0.12" hex = "0.4" log = "0.4" ring = "0.16" -lazy_static = "1.4" \ No newline at end of file +lazy_static = "1.4" + +[dev-dependencies] +cargo-husky = { version = "1", default-features = false, features = ["run-for-all", "prepush-hook", "run-cargo-fmt"] }