Skip to content

Conversation

@luizfelmach
Copy link

What kind of change does this PR introduce?

Refactor – code structure improvement; removes the need for manually creating a Tokio runtime.

What is the current behavior?

The CLI currently requires a manually created tokio::runtime::Builder and LocalSet to execute async code.
This is noted in the code with a TODO comment cli/src/main.rs:

// TODO: Tokio runtime shouldn't be needed here (Address later)

What is the new behavior?

The main function now uses #[tokio::main], so async CLI code runs within the runtime automatically.
Manual runtime creation and LocalSet are no longer needed, simplifying the code and reducing overhead.

Additional context

This change is purely structural; no functional behavior of the CLI has been altered.
It prepares the codebase for easier future async improvements and removes a known workaround.

The main function now uses #[tokio::main], eliminating the need to create a local runtime just to run async CLI code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant