alloy-rs / alloy-rs/ruint

tracking: 2.0

Đang mở
#502 4 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Rust
Star
225
Fork
70
Merge trung bình
16 giờ 54 phút
Pull request đã merge (30 ngày)
8

Mô tả

I think 2.0 is pretty far away since we're blocked on generic const expressions (GCE), but I think it's worth gathering and discussing all the ideas in one place.

- [ ] Remove `Bits` type
- This is a thin wrapper around Uint which does not have any extra functionality
- [ ] Remove second `Uint` generic (`LIMBS`), blocked by GCE
- It could also be a non-breaking change by using a default value
- [ ] Remove support for `BITS == 0` and possibly `BITS == 1`
- I don't see the point of U0, maybe U1 too. It only causes unnecessary cruft throughout the codebase, where we check for `BITS == 0` and have a special case path because we have 0 limbs
- [ ] Represent Uint internally using machine word-sized Word/DoubleWord type aliases instead of hardcoded u64
- https://github.com/recmo/uint/issues/371
- possibly also configurable with compile time features, not just target word size
- [ ] Align parsing behavior with standard library
- https://github.com/recmo/uint/issues/348
- [ ] Make `as_le_slice` and similar methods return an array of `[u8; Self::BYTES]`
- [ ] Remove support for old crates support features
- ssz, ark-ff-0.3 ...
- [ ] Resolve the overflow vs panicking arithmetic question: #408, #522

cc @mattsse @gakonst @recmo @prestwich

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.