-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix blocking on async thread and add formatting in CI #1
Conversation
WalkthroughThe pull request introduces several modifications across multiple files in a Rust project. The primary changes include adding a new GitHub Actions workflow job for Rust code checks, updating the README with minor grammatical corrections, and converting several functions from synchronous to asynchronous implementations. The modifications focus on improving code quality, readability, and workflow automation. Changes
Sequence DiagramsequenceDiagram
participant CLI as CLI
participant Core as Core Module
participant Simnet as Simnet
CLI->>Core: start_simnet() [async]
Core->>Simnet: start()
Simnet-->>Core: Complete
Core-->>CLI: Return Result
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
🔇 Additional comments (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
🧹 Nitpick comments (1)
.github/workflows/rust.yml (1)
24-25
: Configure Clippy with specific lints and treat warnings as errors.Consider configuring Clippy with specific lints and treating warnings as errors to maintain high code quality standards.
Apply this diff to enhance the Clippy configuration:
- - name: Run Cargo clippy - run: cargo clippy --all-targets --all-features + - name: Run Cargo clippy + run: | + cargo clippy --all-targets --all-features -- \ + -D warnings \ + -W clippy::all \ + -W clippy::pedantic \ + -W clippy::nursery \ + -W clippy::cargo
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (7)
.github/workflows/rust.yml
(1 hunks)README.md
(1 hunks)crates/cli/src/cli/mod.rs
(3 hunks)crates/cli/src/cli/simnet/mod.rs
(1 hunks)crates/cli/src/main.rs
(1 hunks)crates/core/src/lib.rs
(1 hunks)crates/core/src/rpc/mod.rs
(1 hunks)
✅ Files skipped from review due to trivial changes (4)
- crates/cli/src/main.rs
- README.md
- crates/cli/src/cli/mod.rs
- crates/core/src/rpc/mod.rs
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking sharp, thanks @Dodecahedr0x!
Summary by CodeRabbit
CI/CD
run_cargo_checks
to perform code formatting and linting checks.rustfmt
andcargo clippy
validations.Documentation
Code Improvements
start_simnet
function to asynchronous implementation.Chores
GlobalState
in RPC module.