timrogers / litra-rs

💡 Control your Logitech Litra light from the command line
MIT License
35 stars 4 forks source link

Publish as a Cargo package with explicit binary and library targets #19

Closed timrogers closed 8 months ago

timrogers commented 8 months ago

Following @Holzhaus's great feedback in https://github.com/timrogers/litra-rs/issues/16 and initial implementation in https://github.com/timrogers/litra-rs/pull/17, this configures the project so that it can be published as a Cargo package on Crates.io.

The Cargo package exposes a binary target, which can be easily installed with cargo install litra, plus a library target which can be used to integrate Litra control into other Rust applications.

The package will be automatically published to Crates.io when a release is created.