Repository navigation
[Code refactoring]: move shared structures/functions to cortexbrain-common crate #158
Copy link
Copy link
Labels
code refactoringCode refactoringCode refactoringgood first issueGood for newcomersGood for newcomerspermanent issuePermanent issues to avoid duplicatesPermanent issues to avoid duplicatesrustPull requests that update Rust codePull requests that update Rust codev0.1.5Version 0.1.5 issues trackerVersion 0.1.5 issues tracker
Milestone
Description
Activity
- addedgood first issueGood for newcomersGood for newcomerscode refactoringCode refactoringCode refactoringrustPull requests that update Rust codePull requests that update Rust code
on Nov 11, 2025 - added a parent issue
on Nov 11, 2025 - addedv0.1.5Version 0.1.5 issues trackerVersion 0.1.5 issues tracker
on Nov 11, 2025 - added 4 commits that reference this issue
on Jan 16, 2026 17 remaining items
- linked a pull request that will close this issueCode refactoring & OTLP integration (pt.1) #187
on Feb 12, 2026 - added 9 commits that reference this issue
on Mar 2, 2026 - addedpermanent issuePermanent issues to avoid duplicatesPermanent issues to avoid duplicates
on Aug 10, 2026
Metadata
Metadata
Assignees
Labels
code refactoringCode refactoringCode refactoringgood first issueGood for newcomersGood for newcomerspermanent issuePermanent issues to avoid duplicatesPermanent issues to avoid duplicatesrustPull requests that update Rust codePull requests that update Rust codev0.1.5Version 0.1.5 issues trackerVersion 0.1.5 issues tracker
Type
Projects
- StatusShow more project fieldsIn Progress
Is your feature request related to a problem?
Problem Description:
Some user space structures (e.g. PacketLog) are initialized multiple times increasing the percentage of errors or potential bugs in the codebase.
Solution:
move the duplicated structures and functions to the cortexbrain-common crate under a dedicated feature flag. For example the structures needs to be organized using a #[cfg(feature="structs")] and the map handlers functions under a #[cfg(feature="map-handlers")]
Additional info
Check this files for duplicated structures or functions:
api.rs
map-handlers.rs
program-handlers.rs