The current exposed interface is only pub async fn run(args: Cli, shutdown_rx: Receiver<bool>) -> Result<()>, I must specify a configuration file path to start the service. If I could directly pass a Config object, it will be more convenient to use.
By the way, this is also more friendly to the FFI scenario. I am trying to use this crate on Android through JNI, and currently I have to modify the source code to make it work.
Feature Proposed
The current exposed interface is only
pub async fn run(args: Cli, shutdown_rx: Receiver<bool>) -> Result<()>
, I must specify a configuration file path to start the service. If I could directly pass aConfig
object, it will be more convenient to use.By the way, this is also more friendly to the FFI scenario. I am trying to use this crate on Android through JNI, and currently I have to modify the source code to make it work.
Use Case
Maybe you can add an interface like this: