This diff introduces a Rust Cargo manifest file for the notification library wrapper in Rust for using it from C++ using corrosion tool.
Linear task: ENG-1330
Differential D4534
[services] Tunnelbroker - Add Cargo manifest file • max on Jul 14 2022, 7:17 AM. Authored by Tags None Referenced Files
Details This diff introduces a Rust Cargo manifest file for the notification library wrapper in Rust for using it from C++ using corrosion tool. Linear task: ENG-1330 No tests, this is a manifest-only file. This file will be updated with the dependencies and built using cargo build in a follow-up diff of the stack.
Diff Detail
Event TimelineComment Actions In the case of Rust to C++ integration, we need a "wrapper" for it, that's why our Rust notification library is a kind of adapter between the C and Rust packages functions. To use any other packages we need to include this adapter library. That's why even if we will add another package to use from Rust we should still import only one Rust adapter library to call Rust API from C++. That's why I think it's better to use something common like rust or rust-lib...
Comment Actions ok, then all of the code pertaining to the rust-notifications package should be in a subdirectory services/tunnelbroker/rust/rust-notifications
Comment Actions We would have only one adapter Rust library and will have an empty folder with a subfolder inside in this case. It doesn't look good to me. I don't mind changing it to the services/tunnelbroker/rust-notifications if it looks much more organic way for you.
Comment Actions The Rust directory was changed to services/tunnelbroker/rust-notifications from services/tunnelbroker/rust.
|