Use a compiled Python C extension rather than cffi for Python bindings
Categories
(Data Platform and Tools :: Glean: SDK, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: mdroettboom, Unassigned)
References
Details
(Whiteboard: [telemetry:glean-rs:backlog][glean-py])
The use of cffi for building the Python bindings is perfectly acceptable for the end-to-end testing MVP. However, since the type checking happens at runtime, it is perfectly possible that malformed input to the Python glean bindings could result in a segfault (or worse).
For a "releasable" version that might ship in end-user products, such as telemetry for mach, we should move to a proper fully-compiled Python/C extension, using, for example PyO3, or since we only interact with the Rust through a C FFI layer anyway, any of the plethora of tools for generating Python/C extensions, such as SWIG, Cython or even the hand-written option.
Updated•7 years ago
|
| Reporter | ||
Comment 1•6 years ago
|
||
The downside of this is going from supporting 4 builds (Win32, Win64, macOS, Linux) to the product of that and Python versions (3.6, 3.7, 3.8, 3.9). Marking as WONTFIX.
Description
•