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

Bug: compilation failed when I don't have frunk-core as dependency #239

Open
juchiast opened this issue Nov 28, 2024 · 1 comment
Open

Comments

@juchiast
Copy link

juchiast commented Nov 28, 2024

error[E0433]: failed to resolve: could not find `frunk_core` in the list of imported crates
  --> crates/flow/src/flow_set.rs:21:10
   |
21 | #[derive(frunk::LabelledGeneric)]
   |          ^^^^^^^^^^^^^^^^^^^^^^ could not find `frunk_core` in the list of imported crates
   |
   = note: this error originates in the derive macro `frunk::LabelledGeneric` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this module
   |
1  + use frunk::labelled;
   |

error[E0433]: failed to resolve: could not find `frunk_core` in the list of imported crates
  --> crates/flow/src/flow_set.rs:21:10
   |
21 | #[derive(frunk::LabelledGeneric)]
   |          ^^^^^^^^^^^^^^^^^^^^^^ could not find `frunk_core` in the list of imported crates
   |
   = note: this error originates in the derive macro `frunk::LabelledGeneric` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this module
   |
1  + use frunk::hlist;
   |

error[E0433]: failed to resolve: could not find `frunk_core` in the list of imported crates
  --> crates/flow/src/flow_set.rs:21:10
   |
21 | #[derive(frunk::LabelledGeneric)]
   |          ^^^^^^^^^^^^^^^^^^^^^^ could not find `frunk_core` in the list of imported crates
   |
   = note: this error originates in the derive macro `frunk::LabelledGeneric` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this module
   |
1  + use frunk::labelled::chars;

frunk should be able to work on its own.

@lloydmeta
Copy link
Owner

Oof yeah, this is one of those annoying/tough nuts to crack

Likely comes from this kind of thing in the macro:

impl #impl_generics ::frunk_core::labelled::LabelledGeneric for #name #ty_generics #where_clause {

I'm not sure how best we can solve this so that it works when using just frunk while allowing it to work with piecemeal dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants