Browse Source

Add deprecation notices to `gcc 0.3.*`

Alex Crichton 7 years ago
parent
commit
c5a097ea2f
  1. 2
      Cargo.toml
  2. 3
      README.md
  3. 4
      src/lib.rs

2
Cargo.toml

@ -7,6 +7,8 @@ license = "MIT/Apache-2.0"
repository = "https://github.com/alexcrichton/gcc-rs" repository = "https://github.com/alexcrichton/gcc-rs"
documentation = "https://docs.rs/gcc" documentation = "https://docs.rs/gcc"
description = """ description = """
**Deprecated** crate, renamed to `cc`
A build-time dependency for Cargo build scripts to assist in invoking the native A build-time dependency for Cargo build scripts to assist in invoking the native
C compiler to compile native C code into a static archive to be linked into Rust C compiler to compile native C code into a static archive to be linked into Rust
code. code.

3
README.md

@ -1,5 +1,8 @@
# gcc-rs # gcc-rs
> **NOTE**: This crate has been deprecated and is renamed to `cc`. It's
> recommended to not use this crate and instead use `cc`
A library to compile C/C++ code into a Rust library/application. A library to compile C/C++ code into a Rust library/application.
[![Build Status](https://travis-ci.org/alexcrichton/gcc-rs.svg?branch=master)](https://travis-ci.org/alexcrichton/gcc-rs) [![Build Status](https://travis-ci.org/alexcrichton/gcc-rs.svg?branch=master)](https://travis-ci.org/alexcrichton/gcc-rs)

4
src/lib.rs

@ -75,6 +75,7 @@ pub mod windows_registry;
/// Extra configuration to pass to gcc. /// Extra configuration to pass to gcc.
#[derive(Clone, Debug)] #[derive(Clone, Debug)]
#[deprecated(note = "crate has been renamed to `cc`, the `gcc` name is not maintained")]
pub struct Build { pub struct Build {
include_directories: Vec<PathBuf>, include_directories: Vec<PathBuf>,
definitions: Vec<(String, Option<String>)>, definitions: Vec<(String, Option<String>)>,
@ -232,8 +233,8 @@ impl ToolFamily {
/// ```no_run /// ```no_run
/// gcc::compile_library("foo", &["foo.c", "bar.c"]); /// gcc::compile_library("foo", &["foo.c", "bar.c"]);
/// ``` /// ```
#[deprecated]
#[doc(hidden)] #[doc(hidden)]
#[deprecated(note = "crate has been renamed to `cc`, the `gcc` name is not maintained")]
pub fn compile_library(output: &str, files: &[&str]) { pub fn compile_library(output: &str, files: &[&str]) {
let mut c = Build::new(); let mut c = Build::new();
for f in files.iter() { for f in files.iter() {
@ -248,6 +249,7 @@ impl Build {
/// This builder is finished with the [`compile`] function. /// This builder is finished with the [`compile`] function.
/// ///
/// [`compile`]: struct.Build.html#method.compile /// [`compile`]: struct.Build.html#method.compile
#[deprecated(note = "crate has been renamed to `cc`, the `gcc` name is not maintained")]
pub fn new() -> Build { pub fn new() -> Build {
Build { Build {
include_directories: Vec::new(), include_directories: Vec::new(),

Loading…
Cancel
Save