[package]
edition = "2021"
name = "ziskos"
version = "1.1.0-alpha"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Guest runtime and entrypoint for programs targeting the ZisK zkVM"
homepage = "https://github.com/0xPolygonHermez/zisk"
documentation = "https://0xpolygonhermez.github.io/zisk-docs/"
readme = false
keywords = [
"zisk",
"zkvm",
"zero-knowledge",
]
categories = ["cryptography"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/0xPolygonHermez/zisk"
[features]
alloc-stats = ["staticlib"]
default = [
"user-hints",
"inputcpy",
]
inputcpy = []
staticlib = []
user-hints = [
"dep:zisk-stream",
"dep:bytes",
"dep:paste",
"dep:once_cell",
"dep:ctor",
"dep:anyhow",
"dep:tokio",
]
zisk-custom-alloc = []
zisk-embedded-alloc = ["zisk-embedded-dlmalloc-alloc"]
zisk-embedded-dlmalloc-alloc = [
"dep:embedded-alloc",
"dep:critical-section",
"dep:dlmalloc",
]
zisk-embedded-talc-alloc = [
"dep:embedded-alloc",
"dep:critical-section",
"dep:talc",
]
zisk-embedded-tlfs-alloc = [
"dep:embedded-alloc",
"dep:critical-section",
]
[lib]
name = "ziskos"
crate-type = ["rlib"]
path = "src/lib.rs"
[dependencies.cfg-if]
version = "1.0"
[dependencies.critical-section]
version = "1.2.0"
optional = true
[dependencies.dlmalloc]
version = "0.2"
optional = true
default-features = false
[dependencies.embedded-alloc]
version = "0.6.0"
optional = true
[dependencies.getrandom]
version = "0.2"
features = [
"custom",
"custom",
]
[dependencies.ripemd]
version = "0.1.3"
default-features = false
[dependencies.talc]
version = "4.4.3"
features = ["lock_api"]
optional = true
default-features = false
[dependencies.zisk-definitions]
version = "1.1.0-alpha"
[dependencies.zisk-verifier]
version = "1.1.0-alpha"
[dependencies.zisk-zkvm-interface]
version = "1.1.0-alpha"
[dev-dependencies.serial_test]
version = "3.4"
[target.'cfg(all(not(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none"))), any(zisk_hints, zisk_hints_debug)))'.dependencies.anyhow]
version = "1.0"
optional = true
[target.'cfg(all(not(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none"))), any(zisk_hints, zisk_hints_debug)))'.dependencies.bytes]
version = "1.11.0"
optional = true
[target.'cfg(all(not(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none"))), any(zisk_hints, zisk_hints_debug)))'.dependencies.once_cell]
version = "1.21.3"
optional = true
[target.'cfg(all(not(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none"))), any(zisk_hints, zisk_hints_debug)))'.dependencies.paste]
version = "1.0"
optional = true
[target.'cfg(all(not(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none"))), any(zisk_hints, zisk_hints_debug)))'.dependencies.tokio]
version = "1"
features = ["full"]
optional = true
[target.'cfg(all(not(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none"))), any(zisk_hints, zisk_hints_debug)))'.dependencies.zisk-stream]
version = "1.1.0-alpha"
optional = true
[target.'cfg(all(not(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none"))), zisk_hints_metrics))'.dependencies.ctor]
version = "0.2"
optional = true
[target.'cfg(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none")))'.dependencies.bincode]
version = "2"
features = [
"alloc",
"serde",
]
default-features = false
[target.'cfg(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none")))'.dependencies.rand]
version = "0.8.5"
features = ["small_rng"]
default-features = false
[target.'cfg(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none")))'.dependencies.serde]
version = "1"
features = ["derive"]
default-features = false
[target.'cfg(not(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none"))))'.dependencies.ark-bn254]
version = "0.5.0"
[target.'cfg(not(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none"))))'.dependencies.ark-ec]
version = "0.5"
default-features = false
[target.'cfg(not(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none"))))'.dependencies.ark-ff]
version = "0.5.0"
[target.'cfg(not(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none"))))'.dependencies.ark-serialize]
version = "0.5"
default-features = false
[target.'cfg(not(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none"))))'.dependencies.aurora-engine-modexp]
version = "1.2"
default-features = false
[target.'cfg(not(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none"))))'.dependencies.bincode]
version = "2.0"
features = [
"serde",
"std",
]
default-features = false
[target.'cfg(not(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none"))))'.dependencies.blst]
version = "0.3.16"
[target.'cfg(not(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none"))))'.dependencies.lazy_static]
version = "1.5.0"
[target.'cfg(not(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none"))))'.dependencies.libc]
version = "0.2"
[target.'cfg(not(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none"))))'.dependencies.num-bigint]
version = "0.4"
[target.'cfg(not(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none"))))'.dependencies.num-integer]
version = "0.1"
[target.'cfg(not(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none"))))'.dependencies.num-traits]
version = "0.2"
[target.'cfg(not(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none"))))'.dependencies.proofman-fields]
version = "1.1.0-alpha"
features = ["verify"]
[target.'cfg(not(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none"))))'.dependencies.rand]
version = "0.8.5"
[target.'cfg(not(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none"))))'.dependencies.secp256k1]
version = "0.31"
features = ["recovery"]
[target.'cfg(not(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none"))))'.dependencies.serde]
version = "1.0"
features = [
"derive",
"derive",
]
[target.'cfg(not(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none"))))'.dependencies.sha2]
version = "0.10.9"
features = ["compress"]
[target.'cfg(not(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none"))))'.dependencies.tiny-keccak]
version = "2.0.2"
features = [
"keccak",
"keccak",
]
[target.'cfg(not(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none"))))'.dependencies.zisk-lib-c]
version = "1.1.0-alpha"
[target.'cfg(not(any(all(target_os = "zkvm", target_vendor = "zisk"), all(target_arch = "riscv64", target_os = "none"))))'.dependencies.zisk-precomp-helpers]
version = "1.1.0-alpha"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(zisk_staticlib)",
"cfg(zisk_hints)",
"cfg(zisk_hints_metrics)",
"cfg(zisk_hints_debug)",
"cfg(zisk_hints_single_thread)",
]