Commit Graph

23 Commits

Author SHA1 Message Date
Justin Traglia 8a9014cf3e Update versions in preparation of release 2024-03-04 10:32:55 -06:00
Dan Cline 0bbededd08
chore: make standalone portable feature, enabled by default (#391) 2024-02-07 06:07:20 -06:00
DaniPopes fd669bfa36
Make Rust `bindgen` build dependency optional (#382) 2024-02-06 11:39:07 -06:00
Dan Cline 8ac5c35876 change portable to default 2024-02-03 13:02:45 -05:00
Dan Cline 684a896a4c feat: add portable feature to enable blst portable 2024-02-02 17:45:48 -05:00
Dan Cline 9cb4db23dd chore: bump bindgen
also adds .ccls-cache/ to .gitignore
2024-01-22 11:16:35 -05:00
Justin Traglia d637761a2e
Use official trusted setup (#377) 2023-10-18 13:31:55 -05:00
rakita f5f6f863d4
chore: bump bindgen version (#355) 2023-09-05 17:24:53 -05:00
DaniPopes 551e2f90d8
Support Rust `no_std` environments (#347) 2023-09-05 17:06:03 -05:00
Justin Traglia d35b0f3854
Set /std:c11 ccflag for Windows in Rust bindings (#354) 2023-08-31 12:12:02 -07:00
Dan Cline 666a9de002
feat: add serde impls to Blob and Bytes48 (#342)
* feat: add serde impls to Blob and Bytes48

* remove duplicate serde file

* cargo fmt

* serialize and deserialize with prefix

* cargo fmt

* use different trusted setup based on minimal spec

* add Bytes32 serde impls
2023-08-24 21:39:46 -06: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 de151d8fd7
Update rust dependencies (#333) 2023-08-10 12:51:56 +01:00
Dan Cline 6353f689e5
Add Apache-2.0 to rust license in Cargo.toml (#328) 2023-08-09 15:49:22 -05:00
Michael Sproul 13cec820c0
Use LIB_PREFIX in Rust bindings (#317) 2023-06-28 13:55:28 -05:00
Justin Traglia 16e83cec65
Add band-aid fix for Windows benchmark issue (#322) 2023-06-28 13:37:58 -05:00
Divma fd24cf8e1e
[Rust] Remove blst to avoid double link issues, expose blst features (#287) 2023-04-10 15:45:34 -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 3e5f562f05
Update rust bindings to support YAML ref tests (#164) 2023-03-03 16:01:56 -07: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