Skip to content

Commit

Permalink
Deny unused crate dependencies (use-ink#584)
Browse files Browse the repository at this point in the history
* Deny unused crate dependencies

* Deny unused crate dependencies

* Remove ink_lang_codegen
  • Loading branch information
ascjones authored May 26, 2022
1 parent d8e3172 commit 58a5b52
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
3 changes: 0 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,11 @@ sp-core = "6.0.0"
sp-runtime = "6.0.0"
pallet-contracts-primitives = "6.0.0"
subxt = "0.21.0"
futures = "0.3.19"
hex = "0.4.3"
jsonrpsee = { version = "0.13.1", features = ["ws-client"] }
nom = "7.1.1"
nom-supreme = { version = "0.7.0", features = ["error"] }
indexmap = "1.8.1"
thiserror = "1.0.31"
escape8259 = "0.5.1"
itertools = "0.10.3"

Expand All @@ -86,7 +84,6 @@ predicates = "2.1.1"
ink_primitives = "3"
ink_storage = "3"
ink_lang = "3"
ink_lang_codegen = "3"

[features]
# This `std` feature is required for testing using an inline contract's metadata, because `ink!` annotates the metadata
Expand Down
2 changes: 2 additions & 0 deletions metadata/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
//! let json = serde_json::to_value(&metadata).unwrap();
//! ```
#![deny(unused_crate_dependencies)]

mod byte_str;

use semver::Version;
Expand Down
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
// You should have received a copy of the GNU General Public License
// along with cargo-contract. If not, see <http://www.gnu.org/licenses/>.

#![deny(unused_crate_dependencies)]

mod cmd;
mod crate_metadata;
mod util;
Expand Down

0 comments on commit 58a5b52

Please sign in to comment.