hatch icon indicating copy to clipboard operation
hatch copied to clipboard

Automatically set up Rust integration

Open orowith2os opened this issue 2 years ago • 4 comments

I've been looking into using hatch while learning to use Python, as it seems to be the closest thing it has to Cargo.

Coming from a Rust background, it's probably a no-brainer that I'll want to use Rust at some point to improve the performance of my software, utilize APIs available in Rust, or other potential use cases for Rust in a Python project.

I'd like to use this issue to see if some easy-to-use Rust integration with Hatch would be possible, or if it's possible as a plugin. Ideally it would be added to Hatch itself, so it's easy to get going.

orowith2os avatar Jun 24 '23 05:06 orowith2os

I'd love to see hatch and the existing rust-python package build tool maturin get together. Maybe hatch's plugin system could host maturin's build scripts? I get the impression that maturin does a lot of complicated stuff under the hood. It wouldn't make sense to start a new implementation from scratch in hatch I think?

thehappycheese avatar Jun 30 '23 07:06 thehappycheese

Yeah, that's what I'm thinking too. Just some basic stuff so that it's all handled for you, and you can get right to writing Rust.

orowith2os avatar Jun 30 '23 08:06 orowith2os

Maybe hatch's plugin system could host maturin's build scripts?

Is there any update/progress regarding this ?

mohammadzainabbas avatar Jan 21 '24 12:01 mohammadzainabbas

https://github.com/PyO3/maturin/issues/1419

ofek avatar Jan 21 '24 15:01 ofek