Configure crate-type to cdylib/rlib consistently in Cargo.toml

And not in the source code, it's a build decision.
This commit is contained in:
Sebastian Dröge 2020-04-24 15:02:12 +03:00
parent 2019cdb8cb
commit 36f032ef15
19 changed files with 3 additions and 33 deletions

View file

@ -6,8 +6,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![crate_type = "cdylib"]
extern crate byte_slice_cast; extern crate byte_slice_cast;
#[macro_use] #[macro_use]
extern crate glib; extern crate glib;

View file

@ -6,8 +6,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![crate_type = "cdylib"]
#[macro_use] #[macro_use]
extern crate glib; extern crate glib;
#[macro_use] #[macro_use]

View file

@ -15,8 +15,6 @@
// Free Software Foundation, Inc., 51 Franklin Street, Suite 500, // Free Software Foundation, Inc., 51 Franklin Street, Suite 500,
// Boston, MA 02110-1335, USA. // Boston, MA 02110-1335, USA.
#![crate_type = "cdylib"]
use gst::gst_plugin_define; use gst::gst_plugin_define;
mod filter; mod filter;

View file

@ -6,8 +6,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![crate_type = "cdylib"]
#[macro_use] #[macro_use]
extern crate glib; extern crate glib;
#[macro_use] #[macro_use]

View file

@ -15,8 +15,6 @@
// Free Software Foundation, Inc., 51 Franklin Street, Suite 500, // Free Software Foundation, Inc., 51 Franklin Street, Suite 500,
// Boston, MA 02110-1335, USA. // Boston, MA 02110-1335, USA.
#![crate_type = "cdylib"]
#[macro_use] #[macro_use]
extern crate glib; extern crate glib;
#[macro_use] #[macro_use]

View file

@ -15,7 +15,7 @@ lazy_static = "1.0"
[lib] [lib]
name = "gstrsfile" name = "gstrsfile"
crate-type = ["cdylib"] crate-type = ["cdylib", "rlib"]
path = "src/lib.rs" path = "src/lib.rs"
[build-dependencies] [build-dependencies]

View file

@ -6,8 +6,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![crate_type = "cdylib"]
#[macro_use] #[macro_use]
extern crate glib; extern crate glib;
#[macro_use] #[macro_use]

View file

@ -20,8 +20,6 @@
// //
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
#![crate_type = "cdylib"]
#[macro_use] #[macro_use]
extern crate glib; extern crate glib;
#[macro_use] #[macro_use]

View file

@ -22,7 +22,6 @@
// Needed for `select!` in `Socket::next` // Needed for `select!` in `Socket::next`
// see https://docs.rs/futures/0.3.1/futures/macro.select.html // see https://docs.rs/futures/0.3.1/futures/macro.select.html
#![recursion_limit = "1024"] #![recursion_limit = "1024"]
#![crate_type = "cdylib"]
pub use tokio; pub use tokio;

View file

@ -6,8 +6,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![crate_type = "cdylib"]
#[macro_use] #[macro_use]
extern crate glib; extern crate glib;
#[macro_use] #[macro_use]

View file

@ -6,8 +6,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![crate_type = "cdylib"]
#[macro_use] #[macro_use]
extern crate glib; extern crate glib;
#[macro_use] #[macro_use]

View file

@ -19,7 +19,7 @@ once_cell = "1.0"
[lib] [lib]
name = "gstrstutorial" name = "gstrstutorial"
crate-type = ["cdylib"] crate-type = ["cdylib", "rlib"]
path = "src/lib.rs" path = "src/lib.rs"
[build-dependencies] [build-dependencies]

View file

@ -15,8 +15,6 @@
// Free Software Foundation, Inc., 51 Franklin Street, Suite 500, // Free Software Foundation, Inc., 51 Franklin Street, Suite 500,
// Boston, MA 02110-1335, USA. // Boston, MA 02110-1335, USA.
#![crate_type = "cdylib"]
#[macro_use] #[macro_use]
extern crate glib; extern crate glib;
#[macro_use] #[macro_use]

View file

@ -6,8 +6,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![crate_type = "cdylib"]
#[macro_use] #[macro_use]
extern crate glib; extern crate glib;
#[macro_use] #[macro_use]

View file

@ -15,7 +15,6 @@
// Free Software Foundation, Inc., 51 Franklin Street, Suite 500, // Free Software Foundation, Inc., 51 Franklin Street, Suite 500,
// Boston, MA 02110-1335, USA. // Boston, MA 02110-1335, USA.
#![crate_type = "cdylib"]
#![recursion_limit = "128"] #![recursion_limit = "128"]
// These macros are in weird paths currently, // These macros are in weird paths currently,

View file

@ -6,8 +6,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![crate_type = "cdylib"]
#[macro_use] #[macro_use]
extern crate glib; extern crate glib;
#[macro_use] #[macro_use]

View file

@ -22,7 +22,7 @@ smallvec = "1.0"
[lib] [lib]
name = "gstrsflv" name = "gstrsflv"
crate-type = ["cdylib"] crate-type = ["cdylib", "rlib"]
path = "src/lib.rs" path = "src/lib.rs"
[build-dependencies] [build-dependencies]

View file

@ -6,8 +6,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![crate_type = "cdylib"]
#[macro_use] #[macro_use]
extern crate glib; extern crate glib;
#[macro_use] #[macro_use]

View file

@ -6,8 +6,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![crate_type = "cdylib"]
#[macro_use] #[macro_use]
extern crate glib; extern crate glib;
#[macro_use] #[macro_use]