Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
# Contribution guidelines

First off, thank you for considering contributing to libcec-sys.
> **This repository is deprecated.** New applications should use the official
> [Pulse-Eight `libcec` crate](https://crates.io/crates/libcec), with Rust
> sources in [Pulse-Eight/libcec](https://github.com/Pulse-Eight/libcec/tree/master/src/rust).
> It replaces both the safe wrapper and raw FFI needs for libCEC 8+.
> Please direct Rust binding contributions and issues upstream to
> [Pulse-Eight/libcec](https://github.com/Pulse-Eight/libcec).

If your contribution is not straightforward, please first discuss the change you
wish to make by creating a new issue before making the change.
This document is retained for historical releases of `libcec-sys`.

## Reporting issues

Before reporting an issue on the
[issue tracker](https://github.com/ssalonen/libcec-sys/issues),
please check that it has not already been reported by searching for some related
keywords.
Please report Rust binding issues upstream at
[Pulse-Eight/libcec issues](https://github.com/Pulse-Eight/libcec/issues).

## Pull requests

Try to do one pull request per change.
Please contribute Rust binding changes upstream to
[Pulse-Eight/libcec](https://github.com/Pulse-Eight/libcec).

### Updating the changelog

Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ version = "9.0.4-dev"
authors = ['Sami Salonen']
edition = '2021'
license = 'GPL-2.0'
description = 'FFI bindings to libcec'
description = 'Deprecated FFI bindings to libcec; use the official libcec crate for libCEC 8+'
documentation = 'https://docs.rs/libcec-sys'
readme = 'README.md'
include = [
Expand Down Expand Up @@ -45,7 +45,7 @@ vendored = []
static = []

[badges.maintenance]
status = 'passively-maintained'
status = 'deprecated'

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(abi4)', 'cfg(abi5)', 'cfg(abi6)', 'cfg(abi7)'] }
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
[![Docs.rs](https://docs.rs/libcec-sys/badge.svg)](https://docs.rs/libcec-sys)
[![CI](https://github.com/ssalonen/libcec-sys/workflows/Continuous%20Integration/badge.svg)](https://github.com/ssalonen/libcec-sys/actions)

> [!WARNING]
> **This crate is deprecated.** New applications should use the official
> [Pulse-Eight `libcec` crate](https://crates.io/crates/libcec), whose Rust
> sources live in [Pulse-Eight/libcec](https://github.com/Pulse-Eight/libcec/tree/master/src/rust).
> It replaces both the safe wrapper and raw FFI needs for libCEC 8+.
> Please direct Rust binding contributions and issues upstream to
> [Pulse-Eight/libcec](https://github.com/Pulse-Eight/libcec).

FFI bindings for the libcec

## Finding libcec
Expand All @@ -14,7 +22,7 @@ As a fallback, static pre-built `libcec` (v7.1.1) is downloaded from [ssalonen/l

There are `vendored` and `static` feature to allow more explicit control. There are also `LIBCEC_VENDORED` and `LIBCEC_STATIC` environment variables, just set them to value `1`.

The crate is tested mainly with Linux and Windows but could work with other platforms as well. PRs welcome.
The crate is tested mainly with Linux and Windows but could work with other platforms as well.

### Linux (general)

Expand Down Expand Up @@ -77,6 +85,10 @@ This repo contains content distributed under three different licenses.

## Contribution

This repository is deprecated. Please file Rust binding issues and contribute
to the official [Pulse-Eight/libcec](https://github.com/Pulse-Eight/libcec)
repository instead.

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.
Expand Down
6 changes: 3 additions & 3 deletions build/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ fn prepare_vendored_build(dst: &Path) {
let mut build_info_file = OpenOptions::new()
.write(true)
.open(&set_build_info_path)
.unwrap_or_else(|_| panic!("Error opening {}", &set_build_info_path.to_string_lossy()));
.unwrap_or_else(|_| panic!("Error opening {}", set_build_info_path.to_string_lossy()));
build_info_file
.set_len(0)
.expect("Error truncacting SetBuildInfo.cmake");
Expand All @@ -89,7 +89,7 @@ fn prepare_vendored_build(dst: &Path) {
b"
set(LIB_INFO \"\")",
)
.unwrap_or_else(|_| panic!("Error writing {}", &set_build_info_path.to_string_lossy()));
.unwrap_or_else(|_| panic!("Error writing {}", set_build_info_path.to_string_lossy()));

#[cfg(target_os = "windows")]
prepare_windows_libcec_cmake_opts(&dst_src);
Expand Down Expand Up @@ -404,7 +404,7 @@ pub fn fetch_static_libcec<P: AsRef<Path>>(path: P, debug_build: bool) {
let response = reqwest::blocking::get(&url)
.unwrap_or_else(|_| panic!("failed to download libcec from {url}"));
if response.status() == StatusCode::NOT_FOUND {
panic!("Could not find pre-built static libcec for {}", &target);
panic!("Could not find pre-built static libcec for {}", target);
}
response
.error_for_status_ref()
Expand Down
Loading