File tree Expand file tree Collapse file tree 3 files changed +4
-14
lines changed Expand file tree Collapse file tree 3 files changed +4
-14
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " cesride-wasm"
3
+ description = " Cryptographic primitives for use with Composable Event Streaming Representation (CESR)"
3
4
version = " 0.1.0"
4
5
authors = [' Dmitry Kuzmenko <dmitry.kuzmenko@dsr-corporation.com>' ]
5
6
edition = " 2021"
Original file line number Diff line number Diff line change 1
1
# WASM FFI for CESRIDE
2
2
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
9
4
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
- ```
15
5
16
- ### How to build with wasm-pack build
17
6
```
18
7
wasm-pack build # Will output modules best-suited to be bundled with webpack
19
8
wasm-pack build --target=nodejs # Will output modules that can be directly consumed by NodeJS
@@ -27,7 +16,7 @@ yarn install
27
16
yarn start
28
17
```
29
18
30
- ### Run demo шт Browser
19
+ ### Run demo in Browser
31
20
```
32
21
cd demo/web
33
22
yarn install
Original file line number Diff line number Diff line change 1
1
use std:: ops:: Deref ;
2
2
3
3
use crate :: { error:: * , Wrap } ;
4
- use cesride_core:: { Bexter , Matter } ;
4
+ use cesride_core:: { Bexter , Bext , Matter } ;
5
5
use wasm_bindgen:: prelude:: * ;
6
6
7
7
#[ wasm_bindgen( js_name = Bexter ) ]
You can’t perform that action at this time.
0 commit comments