Rust Bindings
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 20/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- C++
- Estrellas
- 773
- Forks
- 233
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de OpenLightingProject/ola
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
OpenLightingProject/ola#2075 ·
-
Digital Enlightenment / FX5 not recognizedPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoquestion Type-DeviceSupport
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
OpenLightingProject/ola#2056 · 2 comentarios ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
OpenLightingProject/ola#2055 ·
-
Difficulty-Medium Language-C++ Maintainability OpSys-All
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
OpenLightingProject/ola#2053 · 1 comentario ·
-
v0.11.0Quizá libre de nuevo @peternewman la tomó hace 227 días y no hay ningún pull request abierto. Abierto
OpenLightingProject/ola#2038 · 18 comentarios · 2 asignados ·
Todos los issues de OpenLightingProject/ola
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
deepseek-ai/DeepEP#830 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
google-ai-edge/LiteRT-LM#4701 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
HarperFast/rocksdb-js#1131 ·
Los mantenedores suelen responder en 1 día
-
Swapped cache lookups in ScanModelAndDecideAllDiffExpansionPosiblemente ocupada @Lian292213 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
area/daemon bug good first issue platform/linux priority/p2
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ToshiNamura/Deimos#5 ·