@dashevo/wasm-dpp 0.24.0-dev.21 → 0.24.0-dev.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +16 -11
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -15,27 +15,32 @@ In order for this binding to work, you have to have a rs-platform cloned
15
15
  alongside platform repo, so you can have access to the rust dpp.
16
16
 
17
17
  ## IMPORTANT!
18
- ### Build on a Mac
19
-
20
- To build on a mac, you need to perform two steps. First, install `clang`
21
- from the homebrew. XCode's `clang` doesn't ship with the WASM support. Second,
22
- just adding llvm to the `.zshrc` doesn't seem to work - run
23
- `AR=/usr/local/opt/llvm/bin/llvm-ar CC=/usr/local/opt/llvm/bin/clang yarn workspace @dashevo/wasm-dpp build:node`
24
- instead.
25
18
 
26
- Alternatively, you can add the following to the `yarn workspace @dashevo/wasm-dpp build:node:mac` instead.
19
+ ### Build on a Mac
20
+ Built-in `llvm` on OSX does not work, it needs to be installed from brew:
21
+ - `brew install llvm`
22
+ - LLVM installed from brew is keg only, and path to it must be provided in the profile file, e.g.`echo 'export PATH="/opt/homebrew/opt/llvm/bin:$PATH"' >> ~/.zshrc`
27
23
 
28
24
  ### Class names minification
29
25
  Library consumers must ignore class names minification for `@dashevo/wasm-dpp` library in their bundlers.
30
26
 
31
27
  ## Table of Contents
32
-
33
- - [Install](#install)
28
+ - [Prerequisites](#Prerequisites)
29
+ - [Build](#build)
34
30
  - [Usage](#usage)
35
31
  - [Contributing](#contributing)
36
32
  - [License](#license)
37
33
 
38
- ## Install
34
+
35
+
36
+ ## Prerequisites
37
+ - Install [Rust](https://www.rust-lang.org/tools/install) v1.67+
38
+ - Add wasm32 target: `$ rustup target add wasm32-unknown-unknown`
39
+ - Install wasm-bingen-cli: `cargo install wasm-bindgen-cli`
40
+ - _Depending on system, additional packages may need to be installed as a prerequisite for wasm-bindgen-cli. If anything is missing, installation will error and prompt what packages are missing (i.e. clang, llvm, libssl-dev)_
41
+
42
+ ## Build
43
+ `$ yarn build`
39
44
 
40
45
  ## TODO
41
46
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dashevo/wasm-dpp",
3
- "version": "0.24.0-dev.21",
3
+ "version": "0.24.0-dev.23",
4
4
  "description": "The JavaScript implementation of the Dash Platform Protocol",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -44,8 +44,8 @@
44
44
  "@babel/core": "^7.15.5",
45
45
  "@babel/preset-env": "^7.15.4",
46
46
  "@dashevo/dashcore-lib": "~0.20.3",
47
- "@dashevo/dpns-contract": "0.24.0-dev.21",
48
- "@dashevo/dpp": "0.24.0-dev.21",
47
+ "@dashevo/dpns-contract": "0.24.0-dev.23",
48
+ "@dashevo/dpp": "0.24.0-dev.23",
49
49
  "@dashevo/wasm-re2": "~1.0.2",
50
50
  "@types/bs58": "^4.0.1",
51
51
  "@types/node": "^14.6.0",