I've been pondering ways to reuse the rest_api module in other projects that want to post feedback in a CI workflow.
Abstracting the module into a standalone library would require trait implementations) allocated on the heap with polymorphic pointer (scoped to a wrapping struct) to keep cpp-linter algorithms separate from REST API usage. This mainly includes
Additional ideas
Create bindings for the abstracted library for use in python and/or node.js. Using rust async runtimes (like tokio) in python is not yet officially supported in pyo3 project (see pyo3 docs).
Update
This abstracted library shouldn't be specific to cpp-linter, so I have created the 2bndy5/git-bot-feedback library on my own GitHub account.
I've been pondering ways to reuse the
rest_apimodule in other projects that want to post feedback in a CI workflow.Abstracting the module into a standalone library would require trait implementations) allocated on the heap with polymorphic pointer (scoped to a wrapping struct) to keep cpp-linter algorithms separate from REST API usage. This mainly includes
<!-- cpp linter action -->)Additional ideas
Create bindings for the abstracted library for use in
python and/ornode.js. Using rust async runtimes (liketokio) in python is not yet officially supported in pyo3 project (see pyo3 docs).Update
This abstracted library shouldn't be specific to cpp-linter, so I have created the
2bndy5/git-bot-feedbacklibrary on my own GitHub account.