From 26051b6257466060a7a1dabcf48b6c6eb9859fb8 Mon Sep 17 00:00:00 2001 From: Niko PLP Date: Tue, 21 Oct 2025 01:28:23 +0300 Subject: [PATCH] fix iOS build --- Cargo.lock | 6 +++--- DEV.md | 5 +++++ app/nextgraph/src-tauri/src/lib.rs | 5 +++++ engine/oxigraph/Cargo.toml | 2 +- engine/storage-rocksdb/Cargo.toml | 2 +- sdk/python/Cargo.toml | 2 +- 6 files changed, 16 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5d91457..40e14eb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3285,7 +3285,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "07033963ba89ebaf1584d767badaa2e8fcec21aedea6b8c0346d487d49c28667" dependencies = [ "cfg-if", - "windows-targets 0.53.3", + "windows-targets 0.48.5", ] [[package]] @@ -3820,8 +3820,8 @@ dependencies = [ [[package]] name = "ng-rocksdb" -version = "0.21.0-ngpreview.7" -source = "git+https://git.nextgraph.org/NextGraph/rust-rocksdb.git?branch=master#0861351ab34188cb2ed71ee865f463d80019b165" +version = "0.21.0-ngpreview.8" +source = "git+https://git.nextgraph.org/NextGraph/rust-rocksdb.git?branch=master#d21a1b4ae64f7025d2b8be7f70f4e1a2562113c2" dependencies = [ "bindgen", "bzip2-sys", diff --git a/DEV.md b/DEV.md index 7ca596f..b0476b5 100644 --- a/DEV.md +++ b/DEV.md @@ -6,6 +6,11 @@ On OpenBSD, for LLVM you need to choose llvm-17. +On MacOS, there are several bugs with LLVM above version 17. So you have to install version 17 only. +``` +brew install llvm@17 +``` + On all platforms, we have to install wasm-pack this way: ``` diff --git a/app/nextgraph/src-tauri/src/lib.rs b/app/nextgraph/src-tauri/src/lib.rs index 3a91050..ab73162 100644 --- a/app/nextgraph/src-tauri/src/lib.rs +++ b/app/nextgraph/src-tauri/src/lib.rs @@ -34,6 +34,11 @@ use ng_wallet::*; use nextgraph::local_broker::*; +#[cfg(mobile)] +mod mobile; +#[cfg(mobile)] +pub use mobile::*; + pub type SetupHook = Box Result<(), Box> + Send>; #[tauri::command(rename_all = "snake_case")] diff --git a/engine/oxigraph/Cargo.toml b/engine/oxigraph/Cargo.toml index f64a143..9eb17e9 100644 --- a/engine/oxigraph/Cargo.toml +++ b/engine/oxigraph/Cargo.toml @@ -51,7 +51,7 @@ ng-repo = { path = "../repo", version = "0.1.2" } [target.'cfg(all(not(target_family = "wasm"),not(docsrs)))'.dependencies] libc = "0.2" -ng-rocksdb = { version = "0.21.0-ngpreview.7", git = "https://git.nextgraph.org/NextGraph/rust-rocksdb.git", branch = "master", features = [ ] } +ng-rocksdb = { version = "0.21.0-ngpreview.8", git = "https://git.nextgraph.org/NextGraph/rust-rocksdb.git", branch = "master", features = [ ] } [target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies] getrandom = { version = "0.3.3", features = ["wasm_js"] } diff --git a/engine/storage-rocksdb/Cargo.toml b/engine/storage-rocksdb/Cargo.toml index 6f810b1..404630e 100644 --- a/engine/storage-rocksdb/Cargo.toml +++ b/engine/storage-rocksdb/Cargo.toml @@ -20,4 +20,4 @@ ng-repo = { path = "../repo", version = "0.1.2" } git = "https://git.nextgraph.org/NextGraph/rust-rocksdb.git" branch = "master" features = [ ] -version = "0.21.0-ngpreview.7" +version = "0.21.0-ngpreview.8" diff --git a/sdk/python/Cargo.toml b/sdk/python/Cargo.toml index 0fcc93e..48deddb 100644 --- a/sdk/python/Cargo.toml +++ b/sdk/python/Cargo.toml @@ -17,7 +17,7 @@ name = "nextgraphpy" crate-type = ["cdylib"] [dependencies] -pyo3 = "0.23.3" +pyo3 = "0.23.5" pyo3-async-runtimes = { version = "0.23", features = ["async-std-runtime"] } pythonize = "0.23.0" async-std = "1.12.0"