Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Would it be reasonable to change pub(crate) to pub? #6

Open
chotchki opened this issue Sep 27, 2020 · 2 comments
Open

Would it be reasonable to change pub(crate) to pub? #6

chotchki opened this issue Sep 27, 2020 · 2 comments

Comments

@chotchki
Copy link

I'm having an issue where I have the state machine defined in a separate file:

main.rs <--- I want to use it here
protocol/
protocol/client_sm.rs <---- sm! macro here.

However when I attempt to use it I get an error due to the macro's definition of everything as "pub(crate)".

I think this is an example of that:

pub(crate) struct Machines(Vec<Machine>);

Would you be open to a pull request moving it to just "pub"?

I'm also VERY new to rust so if I'm doing something wrong, please tell me!

Thank you!

@sjmackenzie
Copy link

@chotchki did you find a solution to your problem? I'm in a similar position to you.

@chotchki
Copy link
Author

@sjmackenzie my apologies just saw this in my inbox. I ended up not using the library and finding a way to avoid making an explicit state machine.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants