Skip to content

[Issue #57] Thorough cleanup of unused dependencies#132

Merged
LorenzoTettamanti merged 5 commits intoCortexFlow:PreReleaseMainfrom
AndreaBozzo:chore-depscleanup
Aug 25, 2025
Merged

[Issue #57] Thorough cleanup of unused dependencies#132
LorenzoTettamanti merged 5 commits intoCortexFlow:PreReleaseMainfrom
AndreaBozzo:chore-depscleanup

Conversation

@AndreaBozzo
Copy link
Contributor

@AndreaBozzo AndreaBozzo commented Aug 24, 2025

Summary

This PR addresses issue #57 by removing unused dependencies and cleaning up the codebase after the transition from monolithic to containerized core architecture.

Changes Made

  • ✅ Removed unused crates and dependencies from Cargo.toml files
  • ✅ Updated .gitignore to remove obsolete entries as requested in PR feedback
  • ✅ Updated core/Readme.md to reflect only existing components (removed references to non-implemented Loadbalancer, Maps, and XDP components)

Components Verified

The following components are currently active and documented:

  • Conntracker: Kernel space connection tracking
  • Identity: User space connection display
  • Metrics_tracer: Kernel space metrics collection
  • Metrics: User space metrics processing

Testing Status

Ready for testing on Linux systems with eBPF support. Windows testing limitations noted due to eBPF unavailability.

🤖 Generated with Claude Code

AndreaBozzo and others added 2 commits August 24, 2025 19:17
- Removed serde_yaml: not used in codebase
- Removed tokio: not directly used in CLI code
- Removed tokio-stream: not used in CLI

This cleanup reduces build times and dependency bloat as part of issue CortexFlow#57.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Removed serde_yaml: not used in codebase

Removed tokio: not directly used in CLI code

Removed tokio-stream: not used in CLI

This cleanup reduces build times and dependency bloat as part of issue CortexFlow#57.
@AndreaBozzo
Copy link
Contributor Author

AndreaBozzo commented Aug 24, 2025

Leaving this here until further testing, any feedback is appreciated.

First EDIT: I planned my os switch in the next 2/3 weeks to Linux couse of EOS of win10, but until then i can't fully check the compiling, aya/eBPF is obviously not available on WinOS, until then this might have to wait or be manually tested by maintainers.

Andrea

AndreaBozzo and others added 2 commits August 24, 2025 20:06
- Restored serde_yaml: used in essential.rs for config handling
- Restored tokio: required for async functionality
- Removed only tokio-stream: actually unused in CLI code
- Updated Cargo.lock with correct dependencies

This corrects the previous overly aggressive dependency removal.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- network-types dependency was not used in any source files
- Only found in auto-generated bindings.rs as field names, not imports
- This completes the thorough dependency cleanup across all components

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@AndreaBozzo AndreaBozzo changed the title [Issue #57] Remove unused dependencies and components [Issue #57] Thorough cleanup of unused dependencies Aug 24, 2025
@LorenzoTettamanti LorenzoTettamanti self-requested a review August 25, 2025 09:13
Copy link
Member

@LorenzoTettamanti LorenzoTettamanti left a comment

Choose a reason for hiding this comment

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

Hi Andrea, thanks for your project review. You did a great job removing all the unused/old crates and dependencies. Can you also modify this file?

https://github.com/CortexFlow/CortexBrain/blob/PreReleaseMain/core%2FReadme.md

Thanks 🙏🏻,

Lorenzo

- Remove unused entries from .gitignore as requested
- Update core/Readme.md to reflect only existing components
- Remove references to non-implemented Loadbalancer, Maps, and XDP components

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@AndreaBozzo AndreaBozzo marked this pull request as ready for review August 25, 2025 09:38
@AndreaBozzo AndreaBozzo requested a review from lorebrada as a code owner August 25, 2025 09:38
@AndreaBozzo
Copy link
Contributor Author

.gitignore and README briefly updated as requested by Lorenzo

I'll be around if you need.

@LorenzoTettamanti
Copy link
Member

Thanks @AndreaBozzo , unfortunately right now I can't test the building process because i'm experiencing some network issues. Maybe @siddh34 is available to test the pr in the next few days.

Leaving this here until further testing, any feedback is appreciated.

First EDIT: I planned my os switch in the next 2/3 weeks to Linux couse of EOS of win10, but until then i can't fully check the compiling, aya/eBPF is obviously not available on WinOS, until then this might have to wait or be manually tested by maintainers.

Andrea

@LorenzoTettamanti LorenzoTettamanti added code refactoring Code refactoring dependencies Pull requests that update a dependency file labels Aug 25, 2025
@LorenzoTettamanti LorenzoTettamanti moved this to In Progress in CortexFlow v0.1 Aug 25, 2025
@LorenzoTettamanti LorenzoTettamanti self-assigned this Aug 25, 2025
@LorenzoTettamanti
Copy link
Member

@AndreaBozzo It's working as expected. I'm merging the changes

@LorenzoTettamanti LorenzoTettamanti moved this from In Progress to Done in CortexFlow v0.1 Aug 25, 2025
@LorenzoTettamanti LorenzoTettamanti merged commit c08d6c3 into CortexFlow:PreReleaseMain Aug 25, 2025
2 checks passed
@AndreaBozzo
Copy link
Contributor Author

Thanks @LorenzoTettamanti for the super quick review and merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code refactoring Code refactoring dependencies Pull requests that update a dependency file

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants