13 unstable releases (4 breaking)

0.5.0 Aug 14, 2023
0.4.3 Jul 28, 2023
0.4.0 Feb 9, 2023
0.3.0 Oct 27, 2022
0.1.0 Jun 25, 2021

#20 in #tracker

Download history 8/week @ 2024-02-21 12/week @ 2024-02-28 2/week @ 2024-03-06 8/week @ 2024-03-13 17/week @ 2024-03-20 6/week @ 2024-03-27 14/week @ 2024-04-03 35/week @ 2024-04-10 1/week @ 2024-04-17 11/week @ 2024-04-24

143 downloads per month

MIT license

160KB
3K SLoC

Tracker-rs for Tracker 3.0

The Rust API is documented here: https://dleggo.gitlab.io/tracker-rs/tracker/index.html.

All the functions that GIR can simply generate are available. Some things haven't been added to tracker-rs yet though:

  • The function foreach in NamespaceManager is not available.
  • The function get_values in Resource is not available.
  • The function update_array_async in SparqlConnection is not available.
  • The sparql utility functions are missing.

Work In Progress

  • Write examples to check the basic functionality is working.
  • Test flatpak intergration and async functionality.

I do not know enough of Rust, C, or FFI to enable the class and functions above, I will try in the future. Please contribute to enable everything in Tracker 3.x, writing the functions in idiomatic rust, and creating working examples. Also a suite of tests would be awesome!

Build

To regenerate the the code from the gir files. Run ./generator.py

Dependencies

~9.5MB
~199K SLoC