Skip to content

Commit

Permalink
refactor: add key conversion utils
Browse files Browse the repository at this point in the history
  • Loading branch information
BasileiosKal committed Jul 8, 2024
1 parent e3ef7f2 commit 36832ad
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-wrapper-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
toolchain: stable
override: true

- name: Install llvm
run: which clang
- name: Export Clang
run: export CC=/usr/bin/clang

- name: Run yarn install
run: yarn install --frozen-lockfile
Expand Down
1 change: 1 addition & 0 deletions src/common/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ macro_rules! print_byte_array {

pub(crate) use print_byte_array;

/// Convert a vec to a byte array
pub fn vec_to_byte_array<const N: usize>(vec: &[u8]) -> Result<[u8; N], Error> {
let data_len = vec.len();
match <[u8; N]>::try_from(vec.to_owned()) {
Expand Down
2 changes: 0 additions & 2 deletions src/error.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::usize;

/// Error enumerates all possible errors occuring in this library.
/// An error returned by the crypto component.
#[derive(Clone, PartialEq, Eq, Hash)]
Expand Down
2 changes: 0 additions & 2 deletions wrappers/wasm/scripts/build-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ SRC_WASM=lib/web/index.js

# Add dev dependencies to current path
export PATH="$PATH:node_modules/.bin"
export CC=/usr/bin/clang
echo $PATH

if [ -z "$BUILD_MODE" ]
then
Expand Down

0 comments on commit 36832ad

Please sign in to comment.