IssueRaiser

He's saying that Cargo doesn't really help at all with that mixing.

He's saying that Cargo doesn't really help at all with that mixing. Integrating Rust into a multi-language build system is indeed quite a pain. You have a few bad options: * Drive everything with Cargo using `build.rs`. This sort of works but it's pretty horrible. * Give up and just have your main build system run `cargo build`. This is what I normally do but again it's not ideal because it doesn't really integrate properly with your main build system. * Give up on Cargo entirely. This is what Bazel does, and it's probably the most robust solution but it's still not ideal because most of the Rust ecosystem expects you to use Cargo (e.g. rust-analyzer). I don't think any other languages have really solved this problem either but it is still an annoying problem.

Posted by IshKebab on Jan 20, 2023, 3:50 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.2,500 issues0 comments

hackernews (Other)

He's saying that Cargo doesn't really help at all with that mixing.

IshKebabJan 20, 2023, 3:50 PM

He's saying that Cargo doesn't really help at all with that mixing. Integrating Rust into a multi-language build system is indeed quite a pain. You have a few bad options: * Drive everything with Cargo using `build.rs`. This sort of works but it's pretty horrible. * Give up and just have your main build system run `cargo build`. This is what I normally do but again it's not ideal because it doesn't really integrate properly with your main build system. * Give up on Cargo entirely. This is what Bazel does, and it's probably the most robust solution but it's still not ideal because most of the Rust ecosystem expects you to use Cargo (e.g. rust-analyzer). I don't think any other languages have really solved this problem either but it is still an annoying problem.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue