kornelski / cargo-deb

Make Debian packages directly from Rust/Cargo projects
https://lib.rs/cargo-deb
MIT License
431 stars 52 forks source link

Why is warning: This command is for Linux only, and will not make sense when run on other systems #33

Closed John15321 closed 2 years ago

John15321 commented 2 years ago

Why is this cargo plugin only supposed to work on Linux? I am not familiar with how the Debian packaging system works, but cant it be made cross-platform? Ofc I mean being able to generate a Debian package on any platform to be clear.

Is there even a way to make that happen? If so I would be happy to help

warning: This command is for Linux only, and will not make sense when run on other systems
John15321 commented 2 years ago

Also I cannot seem to find information about it in the readme (although I just might be blind), so it should be added

kornelski commented 2 years ago

You got this error message, because you've created a package without cross-compilation, so your package theoretically works on your non-Linux system, but is incompatible with Linux.

kornelski commented 2 years ago

Use --target.

John15321 commented 2 years ago

You got this error message, because you've created a package without cross-compilation, so your package theoretically works on your non-Linux system, but is incompatible with Linux.

That makes sense finally, 🙏😅