# cec-rs
[](https://crates.io/crates/cec-rs)
[](https://docs.rs/cec-rs)
[](https://github.com/ssalonen/cec-rs/actions)
[](https://coveralls.io/github/ssalonen/cec-rs?branch=master)
> [!WARNING]
> ## Deprecated
> `cec-rs` is no longer maintained. New applications should use Pulse-Eight's official [`libcec` crate](https://crates.io/crates/libcec), whose [Rust bindings](https://github.com/Pulse-Eight/libcec/tree/master/src/rust) replace this crate's safe wrapper for libCEC 8 and later. Please direct Rust-binding bug reports, feature requests, and contributions to the [Pulse-Eight/libcec repository](https://github.com/Pulse-Eight/libcec).
Thin but safe wrappers for libcec. This crate historically supports libcec 4.x, 5.x, and 6.x with a unified API.
## Installation
This library uses `libcec-sys` to link against `libcec` library. For installation instructions, refer to [`libcec-sys`](https://crates.io/crates/libcec-sys) README.
## Example CLI application
See `examples` directory
## License
Licensed under GNU General Public License version 2, ([LICENSE](LICENSE) or [https://opensource.org/licenses/GPL-2.0](https://opensource.org/licenses/GPL-2.0))
The CI/CD setup in `.github/` is based on [rust-github/template](https://github.com/rust-github/template), and therefore licensed under either of
* Apache License, Version 2.0
([LICENSE-CI-APACHE](LICENSE-APACHE) or [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0))
* MIT license
([LICENSE-CI-MIT](LICENSE-MIT) or [http://opensource.org/licenses/MIT](http://opensource.org/licenses/MIT))
at your option.
## Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.
See [CONTRIBUTING.md](CONTRIBUTING.md).
## Releasing
```cargo release --no-publish --dev-version --execute``` and let the github CD pipeline do the rest.