Add a rug feature #3691
Replies: 3 comments 4 replies
-
A pull request is welcome 🙂 . That said I don't know about the licensing. |
Beta Was this translation helpful? Give feedback.
-
Hmm, it appears that the license is an issue: LGPL requires any non (L)GPL calling code to allow for dynamic linking, which isn't ideal. I'm going to try to work out if I can write a package to allow overriding a normal Rust import with a dynamic library, as this should solve the licensing issue without compromising much on usability or performance. Don't know if you want to close this discussion, up to you. |
Beta Was this translation helpful? Give feedback.
-
I was wondering if there has been any progress on this issue. It would be a very useful feature to have. Thank you. |
Beta Was this translation helpful? Give feedback.
-
I wrote some code implementing prime factorisation in Rust interfacing with Python. I initially used the
num-bigint
library supported by PyO3, but later discovered it seems to be fairly slow. I then switched to usingrug
(which uses GMP behind the scenes) which seems to be quite a bit faster. I wrote an additional feature flag for PyO3 to enable conversion, basically copied from the existingbigint
implementation. Should I open a pull request or is this too like something which already exists? One issue to be aware of is that GMP (and thusrug
) is licensed under LGPL, and I'm not sure if this would infect PyO3, or how that would work.Beta Was this translation helpful? Give feedback.
All reactions