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

Fix build with --no-default-features #127

Closed
wants to merge 1 commit into from

Conversation

alexcrichton
Copy link
Contributor

Avoid having a defaulted type parameter with EndianRcSlice when no
features are activated to ensure that the library builds correctly.

Avoid having a defaulted type parameter with `EndianRcSlice` when no
features are activated to ensure that the library builds correctly.
@philipc
Copy link
Contributor

philipc commented Jun 27, 2019

What's the use case for building this without the alloc feature? I don't think it can do anything useful without allocating.

@alexcrichton
Copy link
Contributor Author

Ah I see, I was mostly just poking around at rust-lang/backtrace-rs#189 and trying to slim the dependencies as much as possible (in number and enabled features). I was able to work with this crate with no features enabled, but I didn't realize that it still links to alloc and uses it even if the feature is disabled. I originally wanted to fix this to simply fix the build of cargo build --no-default-features (which is currently broken), but I see what you mean now!

Seems like this is probably not necessary in that case regardless!

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