Skip to content

Commit

Permalink
feat(crypto): add std/crypto wrapping and extending runtime WebCrypto (
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyBanks authored Jul 29, 2021
1 parent 5606a10 commit 662139c
Show file tree
Hide file tree
Showing 22 changed files with 5,816 additions and 46 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
run: |-
set -o errexit
shopt -s inherit_errexit
declare modifications="$(git diff --name-only HEAD~ -- ./hash/_wasm/)"
declare modifications="$(git diff --name-only HEAD~ -- ./_wasm_crypto)"
declare modified="$([[ "$modifications" ]] && echo true || echo false)"
echo "::set-output name=modified::$modified"
echo "Hash source modified in this commit? $modified"
Expand All @@ -113,6 +113,7 @@ jobs:
# This must match the version in hash/_wasm/rust-toolchain:
rust-version: 1.53.0
targets: wasm32-unknown-unknown
components: rustfmt

- name: Set up wasm-bindgen-cli
run: |-
Expand All @@ -124,7 +125,7 @@ jobs:
id: build
if: success() && steps.source.outputs.modified == 'true'
run: |-
./hash/_wasm/build.ts
./_wasm_crypto/_build.ts
set -o errexit
shopt -s inherit_errexit
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ package.json
package-lock.json
.vscode/settings.json
**/cov/
/hash/_wasm/target
/hash/_wasm/out
/_wasm_crypto/target
4 changes: 4 additions & 0 deletions _wasm_crypto/.rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
max_width = 80
tab_spaces = 2
edition = "2018"
Loading

0 comments on commit 662139c

Please sign in to comment.