Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mach: Implement LC_NOTE #342

Merged
merged 2 commits into from
Nov 22, 2022
Merged

mach: Implement LC_NOTE #342

merged 2 commits into from
Nov 22, 2022

Conversation

messense
Copy link
Contributor

@messense messense commented Nov 7, 2022

No description provided.

Copy link
Owner

@m4b m4b left a comment

Choose a reason for hiding this comment

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

thank you, this is good stuff! Could you add the enum attribute that makes additions not a breaking change, and then since this is breaking, if it's ok I'd like to wait a bit and roll up other breaking changes.
on that note, it might be prudent to survey other enums in this library to add this attribute to so that we can start thinking about 1.0 release

let comm = bytes.pread_with::<NoteCommand>(0, le)?;
Ok((Note(comm), size))
}
_ => Ok((Unimplemented(lc), size)),
Copy link
Owner

Choose a reason for hiding this comment

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

I don't think load commands are added very often, so maybe this should now become a bad lc command error in future PR?

src/mach/load_command.rs Show resolved Hide resolved
@messense
Copy link
Contributor Author

messense commented Nov 7, 2022

Thanks for the review, added #[non_exhaustive] to CommandVariant.

if it's ok I'd like to wait a bit and roll up other breaking changes.

Sure.

Copy link
Owner

@m4b m4b left a comment

Choose a reason for hiding this comment

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

this is great thanks so much!

@m4b m4b merged commit 5b29292 into m4b:master Nov 22, 2022
@m4b
Copy link
Owner

m4b commented Nov 22, 2022

NB for m4b: breaking change

@messense messense deleted the mach-note branch November 23, 2022 14:22
@m4b
Copy link
Owner

m4b commented Jun 12, 2023

released in 0.7.0, thank you so much for your patience!

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