Skip to content

Replace goblin crate with object #6817

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

Merged
merged 1 commit into from
Dec 14, 2020
Merged

Conversation

lnicola
Copy link
Member

@lnicola lnicola commented Dec 11, 2020

Continuation of #4385.

@lnicola lnicola marked this pull request as draft December 11, 2020 12:54
libloading = "0.6.0"
memmap = "0.7"
object = { version = "0.22", git = "https://github.com/gimli-rs/object/" }
Copy link
Member

Choose a reason for hiding this comment

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

Why use a git dependency?

Copy link
Member Author

Choose a reason for hiding this comment

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

@matklad
Copy link
Member

matklad commented Dec 14, 2020

bors try

bors bot added a commit that referenced this pull request Dec 14, 2020
@lnicola
Copy link
Member Author

lnicola commented Dec 14, 2020

Hmm, we can merge it like this or wait until a new object is released.

@matklad
Copy link
Member

matklad commented Dec 14, 2020

Why is the current (0.23) not good enough?

@lnicola
Copy link
Member Author

lnicola commented Dec 14, 2020

It is, but with the fix in gimli-rs/object#261 we could probably disable the unaligned feature.

And maybe I should also replace the per-symbol string conversion with the memmem crate or some other way of searching for a sub-slice in a byte slice.

@bors
Copy link
Contributor

bors bot commented Dec 14, 2020

@matklad
Copy link
Member

matklad commented Dec 14, 2020

I'd default to merging earlier and seding a followup, but you obv have more context here :)

@lnicola lnicola marked this pull request as ready for review December 14, 2020 15:04
@lnicola
Copy link
Member Author

lnicola commented Dec 14, 2020

bors r=matklad

@bors
Copy link
Contributor

bors bot commented Dec 14, 2020

@bors bors bot merged commit 134c756 into rust-lang:master Dec 14, 2020
@lnicola lnicola deleted the shoo-goblin branch December 14, 2020 15:26
@philipc
Copy link

philipc commented Dec 15, 2020

It is, but with the fix in gimli-rs/object#261 we could probably disable the unaligned feature.

That fix made it into the 0.23 release.

bors bot added a commit that referenced this pull request Dec 23, 2020
7015: Disable the unaligned feature of the object crate r=lnicola a=lnicola

We `mmap` the files so they should be reasonably aligned.

Let's see what #6817 (comment) is about.

Co-authored-by: Laurențiu Nicola <[email protected]>
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.

4 participants