| Crates.io | polybase_bb_rs |
| lib.rs | polybase_bb_rs |
| version | 1.0.0-nightly.20250723-caching |
| created_at | 2025-07-30 02:25:27.539527+00 |
| updated_at | 2025-08-05 18:29:12.525211+00 |
| description | barretenberg bindings for Rust |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1773030 |
| size | 16,319,609 |
Rust bindings for Barretenberg C++ codebase.
# Build on your own machine
cargo build -vvvv
# Cross-compile for iOS
cargo build -vvvv --target aarch64-apple-ios
# Cross-compile for Android
cargo build -vvvv --target aarch64-linux-android
sys/random.hrandom.h is not available in the iOS SDK includes but it is available in the MacOS SDK includes. So you can copy it from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys and paste it in /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys. This will work, no compability issues, it's just not there for some reason.
You can also run scripts/patcher.sh to do this (you may need to run it as sudo).