<div dir="ltr">Maybe you can take a look at <a href="https://crates.io/crates/networkmanager">https://crates.io/crates/networkmanager</a> which uses nm dbus api.<div><br></div><div>You may also want to look at gtk-rs project (<a href="https://gtk-rs.org/">https://gtk-rs.org/</a>) to find inspiration.<br><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 5 Dec 2023 at 17:12, amidamaru rookie <<a href="mailto:ardtimeit@gmail.com">ardtimeit@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">Hi team,</div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">Currently I'm implementing a <a href="https://rosenpass.eu/" target="_blank">Rosenpass</a> NM Plugin in Rust.</div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">I cannot find much information about this except the <a href="https://networkmanager.dev/docs/vpn/" target="_blank">VPN support page</a> - but most of the projects there were written in C.</div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">The only reference I can find is <a href="https://github.com/manuels/wg-p2p-nm-plugin" target="_blank">this repository</a>. </div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">But after all these years, the NetworkManager codebase won't have this <a href="https://github.com/manuels/wg-p2p-nm-plugin/tree/master/src/shared" target="_blank">shared</a> directory anymore.</div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">So now, my question is where can I collect these files from the current NM codebase? Also, </div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">Besides the GUI (editor dialog) part, I want to integrate Rosenpass into nmcli also.<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">For example, after integration, I can do something like this:</div><div class="gmail_default" style="color:rgb(11,83,148)"><font size="4" face="times new roman, serif">nmcli con import type rosenpass file /data/rp.conf</font></div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">Could you please give some advice on this?</div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">Thank you,</div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><font face="verdana, sans-serif">Đinh Thảo_PTIT's student - <i><a href="mailto:ardtimeit@gmail.com" target="_blank"><font color="#009900">ardtimeit@gmail.com</font></a></i></font></div></div>
</blockquote></div>