replit/upm

Support for Rust Crates via Cargo

syrusakbary opened this issue · 4 comments

After the announcement, I started researching how easy could be to support Rust packages (with Crates.io/cargo) in this project.

I think the integration should be in general trivial, but cargo requires to manually modify Cargo.toml in order to add or remove packages (as opposed to doing it via a specific CLI subcommand like in npm, poetry, ...).

Is there any good way to support this? Have someone else thought about this?

We typically fall back on pragmatic regexp find-and-replace in the case of tools that really should be scriptable but aren't.

cargo-edit exists to solve this problem, and it does so very well.

Is anyone working on this right now? I'm down to work on an initial version.

Closed in #77! Thanks for the report!