0

TIL a single rust crate is truly a single rust crate in the crates repository as well.

preview

The title seems obvious. I’ve been developing a tool that I intended to publish as a single crate at crates.io. Internally, the repository had a few crates and I had assumed this is just an implementation detail, and that I would still be able to deploy it as a single crate, where the internal dependencies are bundled.

When I had trouble packaging the thing, I asked someone on discord and they explained to me (thanks!) that actually I needed to merge my crates into one 💀

I wish I knew this earlier, now I think that adding cargo package to Ci in early stages of development really is a good idea.

The title seems obvious. I’ve been developing a tool that I intended to publish as a single crate at crates.io. Internally, the repository had a few crates and I had assumed this is just an implementation detail, and that I would still be able to deploy it as a single crate, where the internal dependencies are bundled.

When I had trouble packaging the thing, I asked someone on discord and they explained to me (thanks!) that actually I needed to merge my crates into one 💀

I wish I knew this earlier, now I think that adding cargo package to Ci in early stages of development really is a good idea.