Skip to content

Dev - #1

Open
Zaptoss wants to merge 4 commits into
mainfrom
dev
Open

Dev#1
Zaptoss wants to merge 4 commits into
mainfrom
dev

Conversation

@Zaptoss

@Zaptoss Zaptoss commented Oct 31, 2025

Copy link
Copy Markdown
Owner

No description provided.

@pmikh pmikh left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really nice use of conditional compilation here — super clean way to handle platform-specific logic without cluttering the main code.

Might be worth breaking some of the longer sections (like transport setup or server startup) into smaller helper functions — would make the flow in main() a bit easier to follow.

Overall, very good job!

@mhnap mhnap left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here are a couple of comments:

  1. I see that you have this on your TODO list, but please add more unit and integration tests.
  2. Run cargo fmt and cargo clippy.
  3. Add simple CI. There you can actually run tests, check whether your code compiles for all platforms and run fmt and clippy checks.

Actually, nothing more to say, good job!

Comment thread examples/basic/README.md
@@ -0,0 +1,52 @@
# Basic Example

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<3

Comment thread ciron.toml Outdated
Comment thread ciron-common/src/config.rs Outdated
pub vsock_port: u32,
}

impl Default for TransportConfig {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: You can use serde_default::DefaultFromSerde to definetly have same the same defaults.

}

fn default_true() -> bool {
true

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: And also serde_inline_default if you want to remove clutter a bit.

Comment thread cirond/src/process.rs

impl ProcessManager {
pub fn new() -> Self {
let (event_tx, event_rx) = mpsc::unbounded_channel();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say that an unbounded channel is an anti-pattern. It's better to tune the right capacity for a bounded channel.

@ikripaka ikripaka left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥 , nice!

ps
don't have any comments about implementation, all seems to be ok

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.

4 participants