Hi Darren, Thanks for the link! I actually have already done so, but for a few reasons (I believe it is slower than a hook, and it's limited<https://gitlab.isc.org/isc-projects/kea/-/issues/2622>) I would prefer to write a "native" one.
I sure wish it would have been implemented differently<https://github.com/mozilla/application-services/issues/612>, as something like gRPC + protobuf! ________________________________ From: Darren Ankney <[email protected]> Sent: Thursday, December 8, 2022 7:34 PM To: [email protected] <[email protected]> Subject: Re: [Kea-users] Hook Development - Rust If nothing else, perhaps you could make use of the run_script hook: https://kea.readthedocs.io/en/kea-2.2.0/arm/hooks.html#run-script-run-script-support-for-external-hook-scripts You could probably write the "script" in whatever language you want, including rust, or at least that's the way I interpret it. On Thu, Dec 8, 2022 at 2:16 PM Eric Graham <[email protected]> wrote: > > Hello! First time using this / any mailing list, so critiques welcome. > > I am looking into the possibility of writing a Rust hook. I understand that > using C++ is likely the simplest alternative, but Rust is attractive for its > memory safety and speed. I have not had luck finding any Kea hook in Rust to > use as a starting point. The C FFI is a complicating factor. In fact, I have > not had luck getting a very basic PoC to register with Kea, just implementing > version(). Does anyone know of a hook even partially implemented in Rust, or > have interest in doing so? > > Thank you, > Eric > > If this email belongs in the dev list, please correct me. Thanks. > This message is intended solely for the use of the individual and entity to > whom it is addressed and may contain information that is privileged, > confidential, and exempt from disclosure under applicable state and federal > laws. If you are not the addressee or are not authorized to receive for the > intended addressee you are hereby notified that you may not use, copy, > distribute, or disclose to anyone this message or the information contained > herein. If you have received this message in error, immediately advise the > sender by reply email and destroy this message. > -- > ISC funds the development of this software with paid support subscriptions. > Contact us at https://www.isc.org/contact/ for more information. > > To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users. > > Kea-users mailing list > [email protected] > https://lists.isc.org/mailman/listinfo/kea-users
-- ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information. To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users. Kea-users mailing list [email protected] https://lists.isc.org/mailman/listinfo/kea-users
