[package]
name = "gear-runtime-interface"
description = "Gear Runtime Interface"
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
documentation = "https://docs.rs/gear-runtime-interface"

[dependencies]
gear-core.workspace = true
gear-lazy-pages-common.workspace = true
gear-lazy-pages = { workspace = true, optional = true }
gear-sandbox-host = { workspace = true, optional = true }

sp-io.workspace = true
sp-runtime-interface.version = "18.0.0"
sp-runtime-interface.package = "gp-runtime-interface"
sp-std.workspace = true
sp-wasm-interface.workspace = true

byteorder.workspace = true
codec = { workspace = true }
log = { workspace = true, optional = true }

ark-bls12-381 = { workspace = true, features = ["curve"] }
ark-ec = { workspace = true, optional = true }
ark-ff = { workspace = true, optional = true }
ark-scale = { workspace = true, optional = true }
sha2 = { workspace = true, optional = true }

[target.'cfg(windows)'.dependencies]
winapi = { workspace = true, features = ["memoryapi"] }

[features]
default = ["std"]
std = [
	"gear-core/std",
	"gear-lazy-pages",
	"gear-sandbox-host",

	"sp-io/std",
	"sp-std/std",
	"sp-runtime-interface/std",
	"sp-wasm-interface/std",

	"byteorder/std",
	"codec/std",
	"log",

	"ark-bls12-381/std",
	"ark-ec/std",
	"ark-ff/std",
	"ark-scale/std",
	"sha2/std"
]
