Skip to content

Not possible to define custom BinarySize #173

Closed

Description

@YulawOne

It's not possible to define custom BinarySize for unsupported types such as u128 because Nat is private object

Activity

  1. enriquerodbe commented on Jul 28, 2025

    @enriquerodbe
    Owner

    Hi @YulawOne! I didn't know someone was using this lib 😄 so it isn't actively maintained. Are you using it in some production environment?

    That said, I can remove the private just to help you if you're using this library. You could also send a PR and add u128 to the already supported types and I'd be happy to merge and release.

  2. added a commit that references this issue on Jul 28, 2025
  3. YulawOne commented on Aug 6, 2025

    @YulawOne
    Author

    Hi @enriquerodbe! Sorry for late response, I came up with a dirty workarounds (asInstanceOf), so missed notification. I think making it public will work well. Thank you! I'm currently using lib with my personal project.

    As for contributing u128 - I'm not sure it will fit well into library as I'm heavily using https://github.com/Iltotore/iron and Java BigInteger (not Scala one due specifics of my project) to represent them.

  4. enriquerodbe commented on Aug 8, 2025

    @enriquerodbe
    Owner

    Hi @YulawOne, letting you know that I just published version 3.1.0 with public Naturals. Please check if this works for you and I'll close this issue. Thanks!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions