[package] name = "ink_linting_mandatory" version.workspace = true authors.workspace = true edition.workspace = true license.workspace = true readme = "README.md" repository.workspace = true documentation = "https://docs.rs/ink_linting_mandatory" homepage.workspace = true description = "Mandatory ink! linting rules" keywords.workspace = true include = ["Cargo.toml", "*.rs", "LICENSE"] [lib] crate-type = ["cdylib"] [dependencies] dylint_linting = "2.1.12" if_chain = "1.0.2" log = "0.4.14" regex = "1.5.4" ink_linting_utils = { workspace = true } [dev-dependencies] dylint_testing = "2.1.12" # The ink! dependencies used to build the `ui` tests and to compile the linting # library with `--default-features=std` (see the `features` section bellow). # # These cannot be moved to the workspace level because `cargo` does not provide # the `[[workspace.dev-dependencies]]` directive. ink = { version = "=5.0.0-rc", path = "../../crates/ink", default-features = false, features = ["std"] } ink_env = { version = "=5.0.0-rc", path = "../../crates/env", default-features = false } ink_metadata = { version = "=5.0.0-rc", path = "../../crates/metadata", default-features = false } ink_primitives = { version = "=5.0.0-rc", path = "../../crates/primitives", default-features = false } ink_storage = { version = "=5.0.0-rc", path = "../../crates/storage", default-features = false } scale = { package = "parity-scale-codec", version = "3.4", default-features = false, features = ["derive"] } scale-info = { version = "2.6", default-features = false, features = ["derive"] } # For the moment we have to include the tests as examples and # then use `dylint_testing::ui_test_examples`. # # The reason is that the `dylint_testing` API currently does not # provide any other option to run the tests on those files # *while giving us the option to specify the dependencies*. # # Those files require the ink! dependencies though, by having # them as examples here, they inherit the `dev-dependencies`. [[example]] name = "no_main_pass" path = "ui/pass/no_main.rs" [package.metadata.rust-analyzer] rustc_private = true [features] default = ["std"] std = [ "ink_metadata/std", "ink_env/std", "ink_storage/std", "ink_primitives/std", "scale/std", "scale-info/std", ] ink-as-dependency = []