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
Not sure if this is an issue with rustc/cargo or if there's a way for fixed_map to solve it, but I'm writing a library that uses a fixed map as input. So I want to re-export the Key derive macro for users of my library to use on their own types:
pubuse fixed_map::Key;
This works fine and compiles in the library, however, when trying to use the Key derive type in a crate using my library:
63 | #[derive(Clone,Copy,Debug,Eq,Hash,Ord,PartialEq,PartialOrd,Key)]
| ^^^ could not find `fixed_map` in the list of imported crates
51 | #[derive(Clone,Copy,Debug,Eq,Hash,Ord,PartialEq,PartialOrd,Key)]
| ^^^ not found in `fixed_map::map`
From the sound of it, the error is because the crate using my library doesn't directly use fixed_map as one of it's dependencies? But it seems kinda unfortunate that to use my lib, they also have to explicitly add fixed_map as a dep...
Any ideas if it's possible to get this to work?
The text was updated successfully, but these errors were encountered:
Not sure if this is an issue with rustc/cargo or if there's a way for fixed_map to solve it, but I'm writing a library that uses a fixed map as input. So I want to re-export the Key derive macro for users of my library to use on their own types:
This works fine and compiles in the library, however, when trying to use the Key derive type in a crate using my library:
From the sound of it, the error is because the crate using my library doesn't directly use fixed_map as one of it's dependencies? But it seems kinda unfortunate that to use my lib, they also have to explicitly add fixed_map as a dep...
Any ideas if it's possible to get this to work?
The text was updated successfully, but these errors were encountered: