Skip to content

Refactor to use minidump-common types#15

Merged
msirringhaus merged 4 commits intorust-minidump:mainfrom
EmbarkStudios:use-minidump-types
Mar 16, 2022
Merged

Refactor to use minidump-common types#15
msirringhaus merged 4 commits intorust-minidump:mainfrom
EmbarkStudios:use-minidump-types

Conversation

@Jake-Shadle
Copy link
Copy Markdown
Collaborator

This builds off #14.

This makes minidump-common a regular dependency and removes all of the types declared in minidump_format in favor of the types in minidump-common. This changes the MemoryWriter and MemoryArrayWriter structs to instead use scroll for writing the content into the buffer which (IMO) simplifies the internals, and changes the type restrictions. Some types in minidump-common have already had Pwrite derived for them, the remaining ones will be added in a future PR.

@Jake-Shadle Jake-Shadle mentioned this pull request Mar 14, 2022
Copy link
Copy Markdown
Collaborator

@msirringhaus msirringhaus left a comment

Choose a reason for hiding this comment

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

Got a few nitpicks ;-)

Comment thread Cargo.toml Outdated
Comment thread src/linux/crash_context/x86_64.rs Outdated
Comment thread src/linux/crash_context/x86_64.rs Outdated
Comment thread src/linux/dumper_cpu_info.rs Outdated
Comment thread src/linux/minidump_writer.rs Outdated
Comment thread src/linux/thread_info/x86.rs
Comment thread src/linux/thread_info/x86.rs Outdated
Comment thread src/minidump_cpu.rs
Comment thread src/linux/sections.rs
Comment thread src/linux/crash_context/x86.rs Outdated
@msirringhaus
Copy link
Copy Markdown
Collaborator

Thank you very much!

@msirringhaus msirringhaus merged commit 580ba60 into rust-minidump:main Mar 16, 2022
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.

2 participants