[package] name = "pallet-revive" version = "0.2.0" authors.workspace = true edition.workspace = true build = "build.rs" license = "Apache-2.0" homepage.workspace = true repository.workspace = true description = "FRAME pallet for PolkaVM contracts." readme = "README.md" include = ["CHANGELOG.md", "README.md", "build.rs", "src/**/*"] [lints] workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] paste = { workspace = true } polkavm = { version = "0.10.0", default-features = false } bitflags = { workspace = true } codec = { features = [ "derive", "max-encoded-len", ], workspace = true } scale-info = { features = ["derive"], workspace = true } log = { workspace = true } serde = { optional = true, features = ["derive"], workspace = true, default-features = true } impl-trait-for-tuples = { workspace = true } # Substrate Dependencies environmental = { workspace = true } frame-benchmarking = { optional = true, workspace = true } frame-support.workspace = true frame-system.workspace = true pallet-balances = { optional = true, workspace = true } pallet-revive-fixtures.workspace = true pallet-revive-fixtures.default-features = false pallet-revive-uapi.workspace = true pallet-revive-uapi.default-features = true pallet-revive-proc-macro.workspace = true pallet-revive-proc-macro.default-features = true sp-api.workspace = true sp-core.workspace = true sp-io.workspace = true sp-runtime.workspace = true sp-std.workspace = true xcm.workspace = true xcm-builder.workspace = true [dev-dependencies] array-bytes = { workspace = true, default-features = true } assert_matches = { workspace = true } pretty_assertions = { workspace = true } wat = { workspace = true } pallet-revive-fixtures = { default-features = true, path = "fixtures" } # Polkadot Dependencies xcm-builder = { default-features = true, path = "../../../polkadot/xcm/xcm-builder", package = "staging-xcm-builder" } # Substrate Dependencies pallet-balances = { default-features = true, path = "../balances" } pallet-timestamp = { default-features = true, path = "../timestamp" } pallet-message-queue = { default-features = true, path = "../message-queue" } pallet-utility = { default-features = true, path = "../utility" } pallet-assets = { default-features = true, path = "../assets" } pallet-proxy = { default-features = true, path = "../proxy" } sp-keystore = { default-features = true, path = "../../primitives/keystore" } sp-tracing = { default-features = true, path = "../../primitives/tracing" } [features] default = ["std"] # enabling this feature will require having a riscv toolchain installed # if no tests are ran and runtime benchmarks will not work # apart from this the pallet will stay functional riscv = ["pallet-revive-fixtures/riscv"] std = [ "codec/std", "environmental/std", "frame-benchmarking?/std", "frame-support/std", "frame-system/std", "log/std", "pallet-balances?/std", "pallet-revive-fixtures/std", "polkavm/std", "scale-info/std", "serde", "sp-api/std", "sp-core/std", "sp-io/std", "sp-runtime/std", "sp-std/std", "xcm-builder/std", "xcm/std", ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", "sp-runtime/runtime-benchmarks", "xcm-builder/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", "sp-runtime/try-runtime", ]