Cargo - creating tar.gz package

I need a tool for creating a package .tar.gz in my rust project library with bindings to C++.
I need packing executable (bin file) and files bindings.cpp and bindings.h.

What is the best way (tool) for this?

I found the cargo package but it is insufficient.

Cargo can't do it.

It's not for releasing precompiled binaries. It's not for publishing anywhere else than a source-based Rust-only registry like

Write a shell script or a Makefile or use any other tool.


I would use whatever installer technology is natural for your OS. So on Windows you might be using MSI/WIX, Linux might create *.deb/*.rpm files, and so on.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.