|
1 |
| -[package] |
2 |
| -name = "ink_linting" |
3 |
| -version = "5.0.0-rc" |
4 |
| -authors = [ "Parity Technologies <[email protected]>"] |
5 |
| -edition = "2021" |
6 |
| -publish = false |
7 |
| - |
8 |
| -license = "Apache-2.0" |
9 |
| -readme = "README.md" |
10 |
| -repository = "https://github.com/paritytech/ink" |
11 |
| -documentation = "https://docs.rs/ink_linting" |
12 |
| -homepage = "https://github.com/paritytech/ink" |
13 |
| -description = "Linting tool for ink! smart contracts." |
14 |
| -keywords = ["parity", "blockchain", "ink", "smart contracts", "substrate"] |
15 |
| -include = ["Cargo.toml", "*.rs", "LICENSE"] |
16 |
| - |
17 |
| -[lib] |
18 |
| -crate-type = ["cdylib"] |
19 |
| - |
20 |
| -[dependencies] |
21 |
| -clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "1d334696587ac22b3a9e651e7ac684ac9e0697b2" } |
22 |
| -dylint_linting = "2.1.12" |
23 |
| -if_chain = "1.0.2" |
24 |
| -log = "0.4.14" |
25 |
| -regex = "1.5.4" |
26 |
| - |
27 |
| -[dev-dependencies] |
28 |
| -dylint_testing = "2.1.12" |
29 |
| - |
30 |
| -# The following are ink! dependencies, they are only required for the `ui` tests. |
31 |
| -ink_env = { path = "../crates/env", default-features = false } |
32 |
| -ink = { path = "../crates/ink", default-features = false, features = ["std"] } |
33 |
| -ink_metadata = { path = "../crates/metadata", default-features = false } |
34 |
| -ink_primitives = { path = "../crates/primitives", default-features = false } |
35 |
| -ink_storage = { path = "../crates/storage", default-features = false } |
36 |
| -scale = { package = "parity-scale-codec", version = "3.4", default-features = false, features = ["derive"] } |
37 |
| -scale-info = { version = "2.6", default-features = false, features = ["derive"] } |
38 |
| - |
39 |
| -# For the moment we have to include the tests as examples and |
40 |
| -# then use `dylint_testing::ui_test_examples`. |
41 |
| -# |
42 |
| -# The reason is that the `dylint_testing` API currently does not |
43 |
| -# provide any other option to run the tests on those files |
44 |
| -# *while giving us the option to specify the dependencies*. |
45 |
| -# |
46 |
| -# Those files require the ink! dependencies though, by having |
47 |
| -# them as examples here, they inherit the `dev-dependencies`. |
48 |
| -[[example]] |
49 |
| -name = "primitive_topic_pass" |
50 |
| -path = "ui/pass/primitive_topic.rs" |
51 |
| -[[example]] |
52 |
| -name = "primitive_topic_fail" |
53 |
| -path = "ui/fail/primitive_topic.rs" |
54 |
| -[[example]] |
55 |
| -name = "storage_never_freed_pass" |
56 |
| -path = "ui/pass/storage_never_freed.rs" |
57 |
| -[[example]] |
58 |
| -name = "storage_never_freed_fail" |
59 |
| -path = "ui/fail/storage_never_freed.rs" |
60 |
| -[[example]] |
61 |
| -name = "strict_balance_equality_pass" |
62 |
| -path = "ui/pass/strict_balance_equality.rs" |
63 |
| -[[example]] |
64 |
| -name = "strict_balance_equality_fail" |
65 |
| -path = "ui/fail/strict_balance_equality.rs" |
66 |
| -[[example]] |
67 |
| -name = "no_main_pass" |
68 |
| -path = "ui/pass/no_main.rs" |
69 |
| - |
70 |
| -[package.metadata.rust-analyzer] |
71 |
| -rustc_private = true |
72 |
| - |
73 | 1 | [workspace]
|
| 2 | +resolver = "2" |
| 3 | +members = [ |
| 4 | + "mandatory", |
| 5 | + "extra", |
| 6 | +] |
74 | 7 |
|
75 |
| -[features] |
76 |
| -default = ["std"] |
77 |
| -std = [ |
78 |
| - "ink_metadata/std", |
79 |
| - "ink_env/std", |
80 |
| - "ink_storage/std", |
81 |
| - "ink_primitives/std", |
82 |
| - "scale/std", |
83 |
| - "scale-info/std", |
| 8 | +[workspace.metadata.dylint] |
| 9 | +libraries = [ |
| 10 | + { path = "mandatory" }, |
| 11 | + { path = "extra" }, |
84 | 12 | ]
|
85 |
| -ink-as-dependency = [] |
0 commit comments