ptp-helper: Rewrite in Rust for portability and security
This works on Linux, Android, Windows, macOS, FreeBSD, NetBSD, OpenBSD, DragonFlyBSD, Solaris and Illumos. Newly supported compared to the C version is Windows. Compared to the C version various error paths are handled more correctly and a couple of memory leaks are fixed. Otherwise it should work identically. The minimum required Rust version for compiling this is 1.48, i.e. the version currently in Debian stable. On Windows, Rust 1.54 is needed at least. Fixes gstreamer/gstreamer#1259
Showing
- gst-env.py 1 addition, 1 deletiongst-env.py
- subprojects/gstreamer/libs/gst/helpers/gst-ptp-helper.c 0 additions, 687 deletionssubprojects/gstreamer/libs/gst/helpers/gst-ptp-helper.c
- subprojects/gstreamer/libs/gst/helpers/meson.build 2 additions, 101 deletionssubprojects/gstreamer/libs/gst/helpers/meson.build
- subprojects/gstreamer/libs/gst/helpers/ptp/args.rs 56 additions, 0 deletionssubprojects/gstreamer/libs/gst/helpers/ptp/args.rs
- subprojects/gstreamer/libs/gst/helpers/ptp/conf_lib.rs.in 2 additions, 0 deletionssubprojects/gstreamer/libs/gst/helpers/ptp/conf_lib.rs.in
- subprojects/gstreamer/libs/gst/helpers/ptp/error.rs 209 additions, 0 deletionssubprojects/gstreamer/libs/gst/helpers/ptp/error.rs
- subprojects/gstreamer/libs/gst/helpers/ptp/ffi.rs 805 additions, 0 deletionssubprojects/gstreamer/libs/gst/helpers/ptp/ffi.rs
- subprojects/gstreamer/libs/gst/helpers/ptp/io.rs 759 additions, 0 deletionssubprojects/gstreamer/libs/gst/helpers/ptp/io.rs
- subprojects/gstreamer/libs/gst/helpers/ptp/main.rs 232 additions, 0 deletionssubprojects/gstreamer/libs/gst/helpers/ptp/main.rs
- subprojects/gstreamer/libs/gst/helpers/ptp/meson.build 91 additions, 0 deletionssubprojects/gstreamer/libs/gst/helpers/ptp/meson.build
- subprojects/gstreamer/libs/gst/helpers/ptp/net.rs 657 additions, 0 deletionssubprojects/gstreamer/libs/gst/helpers/ptp/net.rs
- subprojects/gstreamer/libs/gst/helpers/ptp/privileges.rs 159 additions, 0 deletionssubprojects/gstreamer/libs/gst/helpers/ptp/privileges.rs
- subprojects/gstreamer/libs/gst/helpers/ptp/ptp_helper_post_install.sh 0 additions, 0 deletions...gstreamer/libs/gst/helpers/ptp/ptp_helper_post_install.sh
- subprojects/gstreamer/libs/gst/helpers/ptp/rand.rs 140 additions, 0 deletionssubprojects/gstreamer/libs/gst/helpers/ptp/rand.rs
Loading
Please register or sign in to comment