Rust Bindings
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
- 20/100
Hướng nghiên cứu
No files or tests are named. Start by reviewing the existing C++ and Python binding arrangements, then evaluate the proposed Cargo packaging, API-version compatibility, repository separation, license, and native socket-level design. Done would be a usable Rust binding with an agreed version-support and ownership model.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I'm starting to look into some new projects in Rust. I'm willing to work on and contribute the bindings, but there are some things to think about:
- The bindings need to live Cargo, the Rust package manager, as a primary method of installation. This also handles hosting documentation at https://doc.rust-lang.org. You can bundle dependencies in the same way that we currently ship/install the C++ and Python bindings, but this is sort of an anti-pattern in Rust (with the exception being OS distros that need to provide Rust dependencies as a part of other packages but it is typically NOT intended for code compilation for the end user).
- The above means that the OLA version may be decoupled from the Rust bindings version. I propose establishing an API version that can be queried from OLA. The bindings would then check if the OLA they are communicating with is supported by the binding version. This would also significantly help with #1451 where similarly the Python bindings could be decoupled if published to Pypi. I will make a separate issue/initial pull for this. Another nice consequence of this is possibly documentation about the underlying socket API that would allow for any binding to be created more trivially in the future.
- The above means that possibly there should be a separate repo for the Rust bindings since they wouldn't necessarily be tied to an individual OLA version/OLA API version. It would be strange also (in my opinion) for the Rust binding version to match the OLA version if it supports multiple OLA versions (we can limit it possibly to the last 1 or 2 major/minor versions released or found in popular distros (i.e. all of
0.10.x) for now. - Because of Rust's recompilation/static linking requirements, LGPL may not be the best license. It is not necessarily always possible to replace the binary components of a Rust library with another in the same way you can with C/C++ shared libraries. It seems that MPL is the closest (copyleft). Apache 2.0 and MIT are also popular (but not copyleft).
- This should be a native binding, not a C++/shared library wrapper. There are some threading and other bits in the C++ API that don't make sense to wrap in Rust and should be written in Rust. Since it will be very separate code (working at the socket level and not a shared library) it further makes sense to be a separate repo (in my opinion).
I think I will probably start this at some point in my own repo and then I would be happy to transfer ownership or fork to another repo once I have something usable.
- Ngôn ngữ chính
- C++
- Star
- 773
- Fork
- 233
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
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 OpenLightingProject/ola
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
OpenLightingProject/ola#2075 ·
-
Digital Enlightenment / FX5 not recognizedCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởquestion Type-DeviceSupport
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
OpenLightingProject/ola#2056 · 2 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
OpenLightingProject/ola#2055 ·
-
Difficulty-Medium Language-C++ Maintainability OpSys-All
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
OpenLightingProject/ola#2053 · 1 bình luận ·
-
v0.11.0Có thể làm lại được @peternewman đã nhận 227 ngày trước và không có pull request nào đang mở. Đang mở
OpenLightingProject/ola#2038 · 18 bình luận · 2 người được giao ·
Tất cả issue của OpenLightingProject/ola
Issue tương tự
-
[内容勘误] STL常用模式章节实战演练中代码有问题Đang mởdocumentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
Awesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPP#335 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
deepseek-ai/DeepEP#830 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
google-ai-edge/LiteRT-LM#4701 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
HarperFast/rocksdb-js#1131 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Swapped cache lookups in ScanModelAndDecideAllDiffExpansionCó thể đã có người làm @Lian292213 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày