[package] name = "pezsp-api" version = "26.0.0" authors.workspace = true edition.workspace = true license = "Apache-2.0" homepage.workspace = true repository.workspace = true description = "Bizinikiwi runtime api primitives" readme = "README.md" documentation.workspace = true [lints] workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] codec = { workspace = true } docify = { workspace = true } hash-db = { optional = true, workspace = true, default-features = true } log = { workspace = true } pezsp-api-proc-macro = { workspace = true } pezsp-core = { workspace = true } pezsp-externalities = { optional = true, workspace = true } pezsp-metadata-ir = { optional = true, workspace = true } pezsp-runtime = { workspace = true } pezsp-runtime-interface = { workspace = true } pezsp-state-machine = { optional = true, workspace = true } pezsp-trie = { optional = true, workspace = true } pezsp-version = { workspace = true } scale-info = { features = ["derive"], workspace = true } thiserror = { optional = true, workspace = true } [features] default = ["std"] std = [ "codec/std", "hash-db", "log/std", "pezsp-api-proc-macro/std", "pezsp-core/std", "pezsp-externalities", "pezsp-externalities?/std", "pezsp-metadata-ir?/std", "pezsp-runtime-interface/std", "pezsp-runtime/std", "pezsp-state-machine/std", "pezsp-trie/std", "pezsp-version/std", "scale-info/std", "thiserror", ] # Special feature to disable logging completely. # # By default `pezsp-api` initializes the `RuntimeLogger` for each runtime api function. However, # logging functionality increases the code size. It is recommended to enable this feature when # building a runtime for registering it on chain. # # This sets the max logging level to `off` for `log`. disable-logging = ["log/max_level_off"] # Do not report the documentation in the metadata. no-metadata-docs = ["pezsp-api-proc-macro/no-metadata-docs"] frame-metadata = ["pezsp-metadata-ir"] runtime-benchmarks = [ "pezsp-runtime-interface/runtime-benchmarks", "pezsp-runtime/runtime-benchmarks", "pezsp-state-machine?/runtime-benchmarks", "pezsp-trie?/runtime-benchmarks", "pezsp-version/runtime-benchmarks", ] try-runtime = ["pezsp-runtime/try-runtime", "pezsp-version/try-runtime"] serde = []