You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmm ok filing an issue since I don't quite understand the interaction here...
If I compile goblin 8bbbcf5 directly with cargo +nightly build --no-default-features --features alloc it works fine.
If I try to compile the object crate with the goblin dependency declared as follows:
Using cargo +nightly build --no-default-features or cargo +nightly build -v --no-default-features --features goblin/alloc, I get:
Compiling goblin v0.0.16 (https://github.com/m4b/goblin#8bbbcf5d)
error[E0432]: unresolved import `alloc::btree_map`==========> ] 10/12: goblin
--> /Users/gz/.cargo/git/checkouts/goblin-d0c041c0a85ca4ca/8bbbcf5/src/archive/mod.rs:15:12
|
15 | use alloc::btree_map::BTreeMap;
| ^^^^^^^^^ Could not find `btree_map` in `alloc`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0432`.
error: Could not compile `goblin`.
To learn more, run the command again with --verbose.
You need to enable more features when building goblin to trigger the error, since there's individual features for the various file formats too, ie you need the archive feature in particular for this error. See the nightly_api target in the top level Makefile for a convenient way to test all the feature combinations.
@gz 0.0.17 should be available for your no-std pleasure; i'm not sure if object has to update its goblin dep explicitly (probably). Please raise another issue if you encounter any other errors! Thanks for your help here :)
Hmm ok filing an issue since I don't quite understand the interaction here...
If I compile goblin 8bbbcf5 directly with
cargo +nightly build --no-default-features --features alloc
it works fine.If I try to compile the object crate with the goblin dependency declared as follows:
Using
cargo +nightly build --no-default-features
orcargo +nightly build -v --no-default-features --features goblin/alloc
, I get:The following diff gz@a6369ac fixes the problem.
The text was updated successfully, but these errors were encountered: