world-id-core 0.6.0

Reference SDK for interacting with the World ID Protocol. For authenticator providers, issuers and RPs.
Documentation
# 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 = "2024"
rust-version = "1.87"
name = "world-id-core"
version = "0.6.0"
authors = [
    "World Foundation",
    "TACEO GmbH <hello@taceo.io>",
    "Tools for Humanity",
]
build = false
include = [
    "src/**/*",
    "bin/**/*",
    "tests/**/*",
    "Cargo.toml",
    "README.md",
]
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Reference SDK for interacting with the World ID Protocol. For authenticator providers, issuers and RPs."
homepage = "https://docs.world.org/world-id"
readme = "README.md"
license = "MIT"
repository = "https://github.com/worldcoin/world-id-protocol"
resolver = "2"

[features]
authenticator = [
    "dep:world-id-proof",
    "dep:world-id-authenticator",
]
compress-zkeys = [
    "authenticator",
    "embed-zkeys",
    "world-id-proof/compress-zkeys",
]
default = [
    "authenticator",
    "embed-zkeys",
]
embed-zkeys = [
    "authenticator",
    "world-id-proof/embed-zkeys",
]
issuer = ["dep:world-id-issuer"]
rp = []
zstd-compress-zkeys = [
    "authenticator",
    "embed-zkeys",
    "world-id-proof/zstd-compress-zkeys",
]

[lib]
name = "world_id_core"
path = "src/lib.rs"

[[test]]
name = "authenticator_registration"
path = "tests/authenticator_registration.rs"

[[test]]
name = "e2e_authenticator_insert_update_remove"
path = "tests/e2e_authenticator_insert_update_remove.rs"

[[test]]
name = "generate_proof"
path = "tests/generate_proof.rs"

[[test]]
name = "issuer_registration"
path = "tests/issuer_registration.rs"

[dependencies.eddsa-babyjubjub]
version = "0.5.4"
package = "taceo-eddsa-babyjubjub"

[dependencies.world-id-authenticator]
version = "0.6.0"
optional = true

[dependencies.world-id-issuer]
version = "0.6.0"
optional = true

[dependencies.world-id-primitives]
version = "0.6.0"
default-features = false

[dependencies.world-id-proof]
version = "0.6.0"
optional = true

[dev-dependencies.alloy]
version = "1.7.3"
default-features = false

[dev-dependencies.ark-babyjubjub]
version = "0.5"
package = "taceo-ark-babyjubjub"

[dev-dependencies.backon]
version = "1"

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

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

[dev-dependencies.hex]
version = "0.4"

[dev-dependencies.poseidon2]
version = "0.2"
package = "taceo-poseidon2"

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

[dev-dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]
default-features = false

[dev-dependencies.rustls]
version = "0.23"
features = ["ring"]

[dev-dependencies.serde_json]
version = "1"

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

[dev-dependencies.taceo-oprf-test-utils]
version = "0.8"
default-features = false

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

[dev-dependencies.tracing]
version = "0.1"

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