It seems that Dima Pasechnik's replies are not displaying here, so I will add them:
*First message:* *Hi,* *pyo3 seems to be for calling Python from Rust. You need the opposite, Rust from Python, e.g. as described in https://bheisler.github.io/post/calling-rust-in-python/ <https://bheisler.github.io/post/calling-rust-in-python/>.* *Making a PyPI (pip) package seems to be the most obvious option.* *With the current (outdated, I think) policies it will not be possible to make such a package standard part of Sage (but I am gathering support for relaxing these policies - see the thread on standard pip packages - that's what would be needed).* *HTH, Dima* *Second message:* *PS. I realised that pyo3 is an option too.* 在2024年6月1日星期六 UTC+2 13:46:14<Jing Guo> 写道: > Dear all, > > Recently we released a library for counting graph homomorphisms [0] in > Sage. Due to performance and parallelism reasons, I was considering the > possibility of re-writing some/all of the algorithms in Rust. I found a > Rust library called `pyo3` [1] seems to be good for Python-Rust interop. > > The latest post I could found is from one year ago [2], so I was wondering > what the current status of possibility of integrating libraries written in > Rust into Sage? Is the recommended approach still to make it an optional > package? For instance, what I have something in mind is like `addcombq` [3] > -- a Rust library which is callable from Sage/Python. > > Many thanks! > > Jing > > [0]: https://github.com/guojing0/count-graph-homs > [1]: https://github.com/PyO3/pyo3 > [2]: https://groups.google.com/g/sage-devel/c/OpBIfmbOlPA/m/hFKTdyE4CgAJ > [3]: https://github.com/Torrencem/addcombq > > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/7a431a60-0d3b-44c9-a7c1-8b2daf63cf20n%40googlegroups.com.