walletkit-core 0.18.0

Reference implementation for the World ID Protocol. Core functionality to use a World ID.
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.91"
name = "walletkit-core"
version = "0.18.0"
authors = ["World Contributors"]
build = false
exclude = [
    "tests/",
    "uniffi-bindgen/",
    "walletkit-cli/",
    "/audits",
    "/kotlin",
    "/swift",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Reference implementation for the World ID Protocol. Core functionality to use a World ID."
homepage = "https://docs.world.org"
readme = "README.md"
keywords = [
    "ZKP",
    "WorldID",
    "World",
    "Identity",
    "Semaphore",
]
categories = [
    "api-bindings",
    "cryptography::cryptocurrencies",
]
license = "MIT"
repository = "https://github.com/worldcoin/walletkit"

[package.metadata.docs.rs]
no-default-features = true
features = ["issuers"]

[features]
compress-zkeys = ["world-id-core/compress-zkeys"]
default = ["issuers"]
embed-zkeys = [
    "world-id-core/embed-zkeys",
    "world-id-core/zstd-compress-zkeys",
]
issuers = []
legacy-nullifiers = []
semaphore = [
    "dep:semaphore-rs",
    "semaphore-rs/depth_30",
]
v3 = [
    "semaphore",
    "legacy-nullifiers",
    "ruint/ark-ff-04",
]

[lib]
name = "walletkit_core"
crate-type = [
    "lib",
    "staticlib",
    "cdylib",
]
path = "src/lib.rs"

[dependencies.alloy-core]
version = "1"
features = ["sol-types"]
default-features = false

[dependencies.backon]
version = "1.6"

[dependencies.base64]
version = "0.22"

[dependencies.ciborium]
version = "0.2.2"

[dependencies.hex]
version = "0.4"

[dependencies.hkdf]
version = "0.12"

[dependencies.log]
version = "0.4"

[dependencies.rand]
version = "0.8"

[dependencies.reqwest]
version = "0.12"
features = ["json"]
default-features = false

[dependencies.ruint]
version = "1.17"
features = ["alloc"]
default-features = false

[dependencies.ruint-uniffi]
version = "0.1"
features = ["serde"]

[dependencies.secrecy]
version = "0.10"

[dependencies.semaphore-rs]
version = "0.5.1"
optional = true

[dependencies.serde]
version = "1"

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.strum]
version = "0.27"
features = ["derive"]

[dependencies.subtle]
version = "2"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["sync"]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-log]
version = "0.2"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[dependencies.uniffi]
version = "0.31.0"
features = [
    "tokio",
    "wasm-unstable-single-threaded",
]

[dependencies.uuid]
version = "1.10"
features = ["v4"]

[dependencies.walletkit-db]
version = "0.18.0"

[dependencies.world-id-core]
version = "0.10.2"
features = ["authenticator"]
default-features = false

[dependencies.world-id-proof]
version = "0.10.2"
default-features = false

[dependencies.zeroize]
version = "1"

[dev-dependencies.alloy]
version = "2"
features = [
    "getrandom",
    "json",
    "contract",
    "node-bindings",
    "signer-local",
]
default-features = false

[dev-dependencies.chacha20poly1305]
version = "0.10"

[dev-dependencies.chrono]
version = "0.4.41"

[dev-dependencies.dotenvy]
version = "0.15.7"

[dev-dependencies.eyre]
version = "0.6"

[dev-dependencies.mockito]
version = "1.6"

[dev-dependencies.rand]
version = "0.8"

[dev-dependencies.regex]
version = "1.11"

[dev-dependencies.taceo-oprf]
version = "0.13"
features = ["types"]
default-features = false

[dev-dependencies.test-case]
version = "3.3"

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
]

[dev-dependencies.tokio-test]
version = "0.4"

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "fmt",
]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ctor]
version = "0.2"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.reqwest]
version = "0.12"
features = [
    "brotli",
    "rustls-tls",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rustls]
version = "0.23"
features = ["ring"]

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.3"
features = ["wasm_js"]

[target.'cfg(target_os = "android")'.dependencies.sha2]
version = "0.10"
features = ["force-soft"]

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.nursery]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "deny"
priority = -1

[lints.rust]
dead_code = "deny"
missing_docs = "deny"