diff --git a/README.md b/README.md index 25d1f6cc..9de6c582 100644 --- a/README.md +++ b/README.md @@ -208,7 +208,7 @@ If you checkout this repository you can build binaries for all bridges. ```shell script cd packages/lib-node/build cargo run -cd ../../../lib-web/build +cd ../../lib-web/build cargo run cd ../../../lib-react-native/android/build cargo run @@ -238,7 +238,7 @@ You need to provide EVERCLOUD_AUTH_PROJECT environemnt variable. This is Project cd packages/core npm i npx tsc -cd packages/tests +cd ../tests npm i npx tsc ``` @@ -255,7 +255,9 @@ node run ```shell script cd packages/tests-web -npm i +npm i -f webpack +npm i -f webpack-cli +npm i -f node run ``` diff --git a/packages/lib-node/lib/Cargo.toml b/packages/lib-node/lib/Cargo.toml index 7cfb607c..0c1525cc 100644 --- a/packages/lib-node/lib/Cargo.toml +++ b/packages/lib-node/lib/Cargo.toml @@ -10,7 +10,7 @@ crate-type = [ 'staticlib' ] [dependencies] libc = '0.2' -ever_client = { git = 'https://github.com/everx-labs/ever-sdk.git', default-features = false, features = [ 'std', 'rustls-tls-webpki-roots' ] } +ever_client = { git = 'https://github.com/everx-labs/ever-sdk.git', tag = '0.47', default-features = false, features = [ 'std', 'rustls-tls-webpki-roots' ] } [profile.release] lto = true diff --git a/packages/lib-node/lib/binding.cc b/packages/lib-node/lib/binding.cc index 6e9cd055..4d7068eb 100644 --- a/packages/lib-node/lib/binding.cc +++ b/packages/lib-node/lib/binding.cc @@ -241,7 +241,7 @@ napi_value requestSync(napi_env env, napi_callback_info info) { //--------------------------------------------------------- initialization -void unload(napi_env env, void *data, void *hint) { +void unload(const napi_env env, void *data, void *hint) { } napi_value init(napi_env env, napi_value exports) { diff --git a/packages/lib-react-native/android/lib/Cargo.toml b/packages/lib-react-native/android/lib/Cargo.toml index e0c8ebbd..040a2d27 100644 --- a/packages/lib-react-native/android/lib/Cargo.toml +++ b/packages/lib-react-native/android/lib/Cargo.toml @@ -12,7 +12,7 @@ crate-type = [ 'cdylib' ] openssl-sys = { version = "0.9.97", features = [ "vendored" ] } lazy_static = '1.4.0' jni = { default-features = false, version = '0.12.0' } -ever_client = { git = 'https://github.com/everx-labs/ever-sdk.git' } +ever_client = { git = 'https://github.com/everx-labs/ever-sdk.git', tag = '0.47' } [profile.release] lto = true diff --git a/packages/lib-react-native/ios/lib/Cargo.toml b/packages/lib-react-native/ios/lib/Cargo.toml index 62e5f898..7ab794f6 100644 --- a/packages/lib-react-native/ios/lib/Cargo.toml +++ b/packages/lib-react-native/ios/lib/Cargo.toml @@ -10,7 +10,7 @@ crate-type = [ 'staticlib' ] [dependencies] libc = '0.2' -ever_client = { git = 'https://github.com/everx-labs/ever-sdk.git', default-features = false, features = [ 'std', 'rustls-tls-webpki-roots' ] } +ever_client = { git = 'https://github.com/everx-labs/ever-sdk.git', tag = '0.47', default-features = false, features = [ 'std', 'rustls-tls-webpki-roots' ] } [profile.release] lto = true diff --git a/packages/lib-web/build/src/main.rs b/packages/lib-web/build/src/main.rs index 3fc4661c..404a9649 100644 --- a/packages/lib-web/build/src/main.rs +++ b/packages/lib-web/build/src/main.rs @@ -58,7 +58,7 @@ fn main() { let builder = Build::new(); let lib_dir = builder.package_dir.join("lib"); std::env::set_current_dir(&lib_dir).unwrap(); - exec("cargo", &["install", "wasm-pack", "--version", "0.9.1"]); + exec("cargo", &["install", "wasm-pack", "--version", "0.13.0"]); assert!(exec("wasm-pack", &["build", "--release", "--target", "web"]).success()); let pkg = lib_dir.join("pkg"); builder.add_package_file("eversdk.wasm", pkg.join("eversdk_bg.wasm")); diff --git a/packages/lib-web/lib/Cargo.toml b/packages/lib-web/lib/Cargo.toml index 3a3ee484..d34ecb88 100644 --- a/packages/lib-web/lib/Cargo.toml +++ b/packages/lib-web/lib/Cargo.toml @@ -28,7 +28,7 @@ lazy_static = '1.4.0' # just to fix building of rand for WASM: getrandom = { default-features = false, features = [ 'js' ], version = '0.2.2' } -ever_client = { default-features = false, features = [ 'wasm' ], git = 'https://github.com/everx-labs/ever-sdk.git' } +ever_client = { git = 'https://github.com/everx-labs/ever-sdk.git', tag = '0.47', default-features = false, features = [ 'wasm' ] } [dependencies.web-sys] version = '0.3.57'