Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(driver,stub): allow creation#705

Merged
George-Miao merged 1 commit into
compio-rs:masterfrom
George-Miao:fix/stub-create
Feb 22, 2026
Merged

fix(driver,stub): allow creation#705
George-Miao merged 1 commit into
compio-rs:masterfrom
George-Miao:fix/stub-create

Conversation

@George-Miao
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings February 22, 2026 15:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request modifies the stub driver implementation in compio-driver to allow driver creation and no-op operation execution instead of immediately failing. The stub driver is used on Linux systems when neither the io-uring nor polling features are enabled, which is an unusual configuration that triggers compile warnings.

Changes:

  • Modified Driver::new() to return Ok(Self(())) instead of an error
  • Changed multiple driver methods (attach, cancel, push, poll, release_buffer_pool) to return success or no-op instead of errors/panics
  • Simplified the cancel method to do nothing instead of calling stub_unimpl()

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread compio-driver/src/sys/stub/mod.rs
Comment thread compio-driver/src/sys/stub/mod.rs
Comment thread compio-driver/src/sys/stub/mod.rs
Comment thread compio-driver/src/sys/stub/mod.rs Outdated
Comment thread compio-driver/src/sys/stub/mod.rs Outdated
@George-Miao George-Miao self-assigned this Feb 22, 2026
@George-Miao George-Miao added bug Something isn't working package: driver Related to compio-driver driver: stub labels Feb 22, 2026
Copy link
Copy Markdown
Member

@Berrysoft Berrysoft left a comment

Choose a reason for hiding this comment

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

Sorry, but after a rethinking, I prefer Err for push().

@George-Miao
Copy link
Copy Markdown
Member Author

Sorry, but after a rethinking, I prefer Err for push().

Done

@George-Miao George-Miao merged commit 55be0e0 into compio-rs:master Feb 22, 2026
54 checks passed
@github-actions github-actions Bot mentioned this pull request Feb 22, 2026
This was referenced Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working driver: stub package: driver Related to compio-driver

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants