Skip to content

[Rust] Misc binary_view module refactoring#8120

Draft
emesare wants to merge 2 commits intodevfrom
test_rust_custom_view_refactor_0
Draft

[Rust] Misc binary_view module refactoring#8120
emesare wants to merge 2 commits intodevfrom
test_rust_custom_view_refactor_0

Conversation

@emesare
Copy link
Copy Markdown
Member

@emesare emesare commented Apr 23, 2026

  • Remove the "viral" BinaryViewExt trait and its blanket impl
  • Split up the binary view type from the custom trait impl
  • Simplify and fix bugs regarding custom binary view initialization
  • Rewrite Minidump binary view example, parses the PE headers to create proper sections now
  • Add some extra documentation
  • Add unit test for custom binary view

This is in preparation for bundling some rust view types such as the aforementioned minidump one, and potential replacements for other existing view types.

The removal of BinaryViewExt also fixes some cases where LSPs will trip up do to its blanket impl and suggest functions from it in completely wrong scenarios, although that itself was not the reasoning behind the change, its more so to do with the fact those functions are invalid in the case of a CustomBinaryView that has yet to have its core object constructed.

Supersedes #8061

@emesare emesare self-assigned this Apr 23, 2026
@emesare emesare added the Component: Rust API Issue needs changes to the Rust API label Apr 23, 2026
@emesare emesare force-pushed the test_rust_custom_view_refactor_0 branch from 4852e30 to 9cecd44 Compare April 23, 2026 23:46
emesare added 2 commits April 23, 2026 16:46
- Remove the "viral" `BinaryViewExt` trait and its blanket impl
- Split up the binary view type from the custom trait impl
- Simplify and fix bugs regarding custom binary view initialization
- Rewrite Minidump binary view example, parses the PE headers to create proper sections now
- Add some extra documentation
- Add unit test for custom binary view
@emesare emesare force-pushed the test_rust_custom_view_refactor_0 branch from 9cecd44 to 330a92c Compare April 23, 2026 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Rust API Issue needs changes to the Rust API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant