Async traits
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- rust
- Lĩnh vực
- cryptography
Hướng nghiên cứu
Bắt đầu bằng việc xem xét công việc async-signature và các mục theo dõi còn lại cho aead và cipher. Đọc các cuộc thảo luận được liên kết về async-trait và Rust internals để hiểu các ràng buộc hiện tại; issue cần có phạm vi crate và thiết kế được quyết định trước khi có thể xác định việc hoàn thành.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Several crates in this repo could benefit from having async equivalents. There are several use cases for async, such as communicating with network services which implement a particular cryptographic primitive (Cloud KMS, NetHSM), or things like cryptographic tokens, SmartCards, non-networked HSMs (e.g. PCI cards, USB devices), or embedded cryptographic accelerators.
Unfortunately Rust doesn't natively support async traits yet. The most commonly used solution at the moment is @dtolnay's async-trait crate. This provides an ergonomic syntax which should hopefully be easy to transition to hypothetical future natively supported async traits, however at the moment it requires std and uses Box to store Futures. There's some discussion about improving this happening on rust-internals right now.
I think it'd be useful to start defining some async traits, even if they presently depend on std. Here's a tracking list of crates that could benefit from async traits:
-
aead: embedded cryptographic accelerators -
cipher: embedded cryptographic accelerators -
async-signature: Cloud KMS/NetHSM services and embedded cryptographic accelerators
Others? (please leave a note in the comments if you have a use case and I'll update)
- Ngôn ngữ chính
- Rust
- Star
- 756
- Fork
- 256
- Merge trung bình
- 1 giờ 27 phút
- Pull request đã merge (30 ngày)
- 2
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
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của RustCrypto/traits
-
try_sign_digest() is confusing. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
RustCrypto/traits#2487 · 2 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
RustCrypto/traits#2482 · 5 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 32/100
RustCrypto/traits#2478 · 5 bình luận ·
-
cipher: tracking issue for v0.6 Đang mởcipher
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
RustCrypto/traits#2424 ·
-
`signature` v4 tracking issue Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
RustCrypto/traits#2401 ·
Tất cả issue của RustCrypto/traits
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
TheLarkInn/aipm#2413 ·
-
documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
alexgorbatchev/simple-ptt#15 ·
-
tooling
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
todo:ticket
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
taikoxyz/taiko-mono#22168 · 1 bình luận ·