Skip to content

Commit 7160ce2

Browse files
authored
Fixed wasm compilation error + corrected readme (#143)
1 parent 6bb7ba5 commit 7160ce2

File tree

3 files changed

+4
-14
lines changed

3 files changed

+4
-14
lines changed

wasm/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[package]
22
name = "cesride-wasm"
3+
description = "Cryptographic primitives for use with Composable Event Streaming Representation (CESR)"
34
version = "0.1.0"
45
authors = ['Dmitry Kuzmenko <dmitry.kuzmenko@dsr-corporation.com>']
56
edition = "2021"

wasm/README.md

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
11
# WASM FFI for CESRIDE
22

3-
You can build the FFI with
4-
```
5-
$ wasm-pack build
6-
```
7-
8-
### How to build
3+
### How to build with wasm-pack
94
Install wasm-pack from https://rustwasm.github.io/wasm-pack/installer/ and then
10-
```
11-
make # Will output modules best-suited to be bundled with webpack
12-
WASM_TARGET=nodejs make # Will output modules that can be directly consumed by NodeJS
13-
WASM_TARGET=web make # Will output modules that can be directly consumed in browser without bundler usage
14-
```
155

16-
### How to build with wasm-pack build
176
```
187
wasm-pack build # Will output modules best-suited to be bundled with webpack
198
wasm-pack build --target=nodejs # Will output modules that can be directly consumed by NodeJS
@@ -27,7 +16,7 @@ yarn install
2716
yarn start
2817
```
2918

30-
### Run demo шт Browser
19+
### Run demo in Browser
3120
```
3221
cd demo/web
3322
yarn install

wasm/src/primitives/bexter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::ops::Deref;
22

33
use crate::{error::*, Wrap};
4-
use cesride_core::{Bexter, Matter};
4+
use cesride_core::{Bexter, Bext, Matter};
55
use wasm_bindgen::prelude::*;
66

77
#[wasm_bindgen(js_name = Bexter)]

0 commit comments

Comments
 (0)