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

Adjust re-exports #75

Merged
merged 3 commits into from
Nov 19, 2024
Merged

Adjust re-exports #75

merged 3 commits into from
Nov 19, 2024

Conversation

fjarri
Copy link
Member

@fjarri fjarri commented Nov 19, 2024

  • Remove protocol::digest re-export.
  • digest and signature are now re-exported from the top level instead of session.

@coveralls
Copy link

coveralls commented Nov 19, 2024

Pull Request Test Coverage Report for Build 11921849434

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.3%) to 69.362%

Totals Coverage Status
Change from base Build 11920827890: 0.3%
Covered Lines: 1793
Relevant Lines: 2585

💛 - Coveralls

Copy link
Contributor

@dvdplm dvdplm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Comment on lines +8 to +12
use manul::protocol::{
Artifact, BoxedRound, Deserializer, DirectMessage, EchoBroadcast, EntryPoint, FinalizeOutcome, LocalError,
MessageValidationError, NormalBroadcast, PartyId, Payload, Protocol, ProtocolError, ProtocolMessagePart,
ProtocolValidationError, ReceiveError, Round, RoundId, Serializer,
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about having a prelude when the code stabilizes a bit that users can *-import, giving them most of the basic types?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically protocol and session are such preludes already, for two different types of users.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a slight problem if you try to glob-import both, because they share LocalError and RemoteError. But a) perhaps they shouldn't (see #25), and b) I can't imagine a case where it would be necessary.

@fjarri fjarri merged commit b3276cb into entropyxyz:master Nov 19, 2024
8 checks passed
@fjarri fjarri deleted the reexports branch November 19, 2024 22:32
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.

3 participants