diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2020-04-24 15:02:12 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2020-04-24 15:02:12 +0300 |
commit | 36f032ef15397f383c49b0e656bb36cd43492a1b (patch) | |
tree | 040ae41a6ddf6ea6151ba0e558ed9047ea565b20 /generic | |
parent | 2019cdb8cb797f3b86c730064748b203654055ad (diff) |
Configure crate-type to cdylib/rlib consistently in Cargo.toml
And not in the source code, it's a build decision.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/file/Cargo.toml | 2 | ||||
-rw-r--r-- | generic/file/src/lib.rs | 2 | ||||
-rw-r--r-- | generic/sodium/src/lib.rs | 2 | ||||
-rw-r--r-- | generic/threadshare/src/lib.rs | 1 |
4 files changed, 1 insertions, 6 deletions
diff --git a/generic/file/Cargo.toml b/generic/file/Cargo.toml index 7cbc5fc59..d811ba52e 100644 --- a/generic/file/Cargo.toml +++ b/generic/file/Cargo.toml @@ -15,7 +15,7 @@ lazy_static = "1.0" [lib] name = "gstrsfile" -crate-type = ["cdylib"] +crate-type = ["cdylib", "rlib"] path = "src/lib.rs" [build-dependencies] diff --git a/generic/file/src/lib.rs b/generic/file/src/lib.rs index 90616e87b..2acde3b9d 100644 --- a/generic/file/src/lib.rs +++ b/generic/file/src/lib.rs @@ -6,8 +6,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![crate_type = "cdylib"] - #[macro_use] extern crate glib; #[macro_use] diff --git a/generic/sodium/src/lib.rs b/generic/sodium/src/lib.rs index 3961ddc7c..5e5470f89 100644 --- a/generic/sodium/src/lib.rs +++ b/generic/sodium/src/lib.rs @@ -20,8 +20,6 @@ // // SPDX-License-Identifier: MIT -#![crate_type = "cdylib"] - #[macro_use] extern crate glib; #[macro_use] diff --git a/generic/threadshare/src/lib.rs b/generic/threadshare/src/lib.rs index 33e369597..af57fffc2 100644 --- a/generic/threadshare/src/lib.rs +++ b/generic/threadshare/src/lib.rs @@ -22,7 +22,6 @@ // Needed for `select!` in `Socket::next` // see https://docs.rs/futures/0.3.1/futures/macro.select.html #![recursion_limit = "1024"] -#![crate_type = "cdylib"] pub use tokio; |