Initial scaffolding for the rust bindings and tests

Review Request #628 — Created April 28, 2021 and submitted

Information

gplugin/gplugin
default
36ef3353e832

Reviewers

This is a small portion of GPLUGIN-133 to add rust bindings and test that we can load plugins written in rust. The rust portion of this is going to be done by a friend of mine, so to save them time we split it up so that I'm handling the build system side.

ran with meson -Drs=true and verified it failed the unit tests as expected.

Description From Last Updated

I think the option should be rust; we don't have pl for Perl and py for Python.

QuLogicQuLogic
QuLogic
  1. 
      
  2. meson_options.txt (Diff revision 1)
     
     
    Show all issues

    I think the option should be rust; we don't have pl for Perl and py for Python.

    1. rust is reserved, just like vala, which we worked around by using vapi. We could name it cargo? I'm open to ideas here.

      meson_options.txt:61:0: ERROR: Option name rust is reserved.
      
    2. Ah, I see; maybe rs is fine then. Maybe depends on what it produces; if it's a -sys crate, then maybe rust-sys, if just crates in general, then rust-crate?

    3. I've been looking at https://github.com/gtk-rs/gir to get ready for this, I'm not sure if we want to do a sys or api create and would be leaning on people that know more about rust to make that decision. That said, it looks like we might need the -sys package regardless?

  3. 
      
QuLogic
  1. Ship It!
    1. So just going to update it later then if need be?

    2. Yea, seems fine.

    3. okie dokie!

  2. 
      
grim
Review request changed
Status:
Completed