Commit Graph

17 Commits

Author SHA1 Message Date
DaniPopes fd669bfa36
Make Rust `bindgen` build dependency optional (#382) 2024-02-06 11:39:07 -06:00
Dan Cline 9cb4db23dd chore: bump bindgen
also adds .ccls-cache/ to .gitignore
2024-01-22 11:16:35 -05:00
kaliubuntu0206 e266280d88
Fixed x86_64-pc-windows-gcc build for rust bindings (#384) 2023-12-14 14:29:06 -06:00
Justin Traglia d637761a2e
Use official trusted setup (#377) 2023-10-18 13:31:55 -05:00
Justin Traglia d35b0f3854
Set /std:c11 ccflag for Windows in Rust bindings (#354) 2023-08-31 12:12:02 -07:00
Michael Sproul 4c0d477c0f
Use blst crate for Rust blst dep (#351) 2023-08-24 14:13:39 -06:00
Justin Traglia d874c06b42
Force use of portable blst in Rust bindings (#338) 2023-08-11 16:19:02 +01:00
Justin Traglia 9d85ed8b19
Upgrade blst to v0.3.11 (#330)
* Upgrade blst to v0.3.11

* Update blst headers in Go bindings
2023-08-10 12:53:42 +01:00
Michael Sproul 13cec820c0
Use LIB_PREFIX in Rust bindings (#317) 2023-06-28 13:55:28 -05:00
Divma fd24cf8e1e
[Rust] Remove blst to avoid double link issues, expose blst features (#287) 2023-04-10 15:45:34 -05:00
Justin Traglia fe857cb3b9
Update blst and remove hacks (#281) 2023-04-07 07:58:17 -05:00
Justin Traglia 5d4f6efbe7
Remove rust snapshots (#279) 2023-04-05 13:46:21 -05:00
Divma b30983fc9a
Windows bindings for rust (#259) 2023-04-05 13:33:37 -05:00
Divma 34f4fa1609
Delegate blst build to crate in preparation for windows bindings (#274) 2023-03-31 10:56:56 -05:00
Divma f384175810
Reproducible rust bindings (#243)
* modify directory structure to isolate the generated bindings

* add a lib.rs file

* move deref impls to the extension file

* remove unused types from generated bindings

* cleanup new lines to reduce diff noise

* reorder definitions to reduce diff noise

* move sync and send impls to the extension file

* generate bindings

* blacklist used bindings; create snapshots dir to ensure freshness in the future

* fix typo. Ty @pawanjay176

* run cargo build after merge

* custom impl for KZGCommitment and KZGProof

* final touches
2023-03-27 23:47:24 +09:00
Justin Traglia b3291f9bf1
Speed up rust build just a little (#220) 2023-03-17 11:52:07 +02:00
Pawan Dhananjay 2c151d7f7e
Rust bindings (#4)
* working build

* Move bindings.rs to root directory

* tidy build script

* Add initial rust safe bindings

* import fewer c stuff in bindings

* remove unnecessary blst definitions in bindings

* remove bindgen build dependency

* improve interface

* Remove more stuff from bindings

* Add a simple test

* Update error type

* Update verify_kzg_proof interface

* Return array instead of vec

* link with no-pie

* impl Send and Sync for KzgSettings; change mut pointers to const

* Remove no-pie linking

* Make FIELD_ELEMENTS_PER_BLOB a compile time variable

* Add load_trusted_setup method

* Cleanup

* Add failure case to bytes_to_bls_field

* Fix conditional compilation and ensure canonical blobs in test

* Add test vectors

* Remove blobk_commitment test case

* Change function signature

* Copy and delete instead of rename in build script

* Make consts public

* Add error conditions for invalid trusted setup

* Lowercase renamings

* Make blob public

* Add benchmarks

* Run test vectors only for mainnet spec

* Add README

* clippy

* Add rust CI checks

* actually add CI checks

* Fix CI

* Fix workflow again
2023-01-12 17:50:12 +00:00