Skip to content

chore: make impl_handler macro self-contained#268

Merged
branchseer merged 1 commit intomainfrom
10-28-chore_make_impl_handler_macro_self-contained
Oct 28, 2025
Merged

chore: make impl_handler macro self-contained#268
branchseer merged 1 commit intomainfrom
10-28-chore_make_impl_handler_macro_self-contained

Conversation

@branchseer
Copy link
Copy Markdown
Member

@branchseer branchseer commented Oct 28, 2025

Removed the direct dependency on syscalls crate from fspy and re-exported Sysno from the fspy_seccomp_unotify crate.

Why make this change?

This change improves the crate's dependency structure by removing a direct dependency on syscalls from the fspy crate. Instead, fspy now uses the Sysno type that's re-exported from fspy_seccomp_unotify, which already depends on syscalls. This reduces dependency coupling and makes the API more self-contained.

Copy link
Copy Markdown
Member Author

branchseer commented Oct 28, 2025

@branchseer branchseer marked this pull request as ready for review October 28, 2025 07:30
Copilot AI review requested due to automatic review settings October 28, 2025 07:30
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 PR refactors the impl_handler macro to be self-contained by re-exporting Sysno from fspy_seccomp_unotify instead of requiring direct access to the syscalls crate.

Key Changes:

  • Re-exported Sysno type from fspy_seccomp_unotify::supervisor::handler module
  • Updated impl_handler macro to reference Sysno through $crate path
  • Removed direct syscalls dependency from fspy crate

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
crates/fspy_seccomp_unotify/src/supervisor/handler/mod.rs Added Sysno re-export and updated macro paths to use $crate::supervisor::handler::Sysno
crates/fspy/Cargo.toml Removed direct dependency on syscalls crate

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

@branchseer branchseer force-pushed the 10-28-chore_make_impl_handler_macro_self-contained branch from 664f00c to 4653033 Compare October 28, 2025 07:47
Copy link
Copy Markdown
Member Author

branchseer commented Oct 28, 2025

Merge activity

  • Oct 28, 7:47 AM UTC: Graphite rebased this pull request as part of a merge.
  • Oct 28, 7:53 AM UTC: @branchseer merged this pull request with Graphite.

@branchseer branchseer merged commit 48b72e9 into main Oct 28, 2025
10 checks passed
@branchseer branchseer deleted the 10-28-chore_make_impl_handler_macro_self-contained branch October 28, 2025 07:53
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.

3 participants