timrogers / litra-rs

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

Crates.io Availability / Library Usage #16

Closed Holzhaus closed 8 months ago

Holzhaus commented 8 months ago

Is there a specific reason why the project is not available on crates.io? That would make it easy to install using cargo install.

It might also be useful to move everything except the CLI handling from main.rs into a separate lib.rs file, so that this can be used as a library.

Thanks for your effort!

timrogers commented 8 months ago

No reason! I'd welcome a PR to make it publishable on crates.io and to refactor the reusable code into lib.rs 😊

Holzhaus commented 8 months ago

The former is done here: https://github.com/timrogers/litra-rs/pull/17

Not sure if I find the time for the latter. I'll first check if I can somehow configure udev to automatically run litra on when the camera is accessed and litra off after the video call ends. :-)

timrogers commented 8 months ago

Fixed in #19 ✅

Holzhaus commented 8 months ago

FYI i just created an AUR package for it: https://aur.archlinux.org/packages/litra

timrogers commented 8 months ago

@Holzhaus Nice! What do you think of giving me admin rights? We can then integrate it into the CI/CD flow perhaps.

Holzhaus commented 8 months ago

The Arch User Repository only contains package build scripts and users will always compile a package locally. Hence, building on CI is not possible in this case.

What we could do it automatically bump the package version when a tag is pushed. I could disown the package and give you ownership if you want.

timrogers commented 8 months ago

Ah, that makes sense! I'm happy to do that if you can give me access - my username is the same as my GitHub username.

Holzhaus commented 8 months ago

Not sure if you got a notification, but I added you as a contributor on the package.