# 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" name = "sui-crypto" version = "0.0.1" authors = ["Brandon Williams "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Defines the interface for signing and verying messages in the Sui ecosystem" readme = "README.md" license = "Apache-2.0" repository = "https://github.com/mystenlabs/sui-rust-sdk/" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg=doc_cfg", "-Zunstable-options", "--generate-link-to-definition", ] [lib] name = "sui_crypto" path = "src/lib.rs" [dependencies.ark-bn254] version = "0.4.0" optional = true [dependencies.ark-ff] version = "0.4.1" features = ["asm"] optional = true [dependencies.ark-groth16] version = "0.4.0" optional = true default-features = false [dependencies.ark-snark] version = "0.4.0" optional = true [dependencies.ark-std] version = "0.4.0" optional = true [dependencies.base64ct] version = "1.6.0" features = ["alloc"] optional = true [dependencies.bnum] version = "0.11.0" optional = true [dependencies.ed25519-dalek] version = "2.1.1" optional = true [dependencies.itertools] version = "0.10.5" optional = true [dependencies.k256] version = "0.13.4" features = ["ecdsa"] optional = true default-features = false [dependencies.p256] version = "0.13.2" features = [ "ecdsa", "std", ] optional = true default-features = false [dependencies.rand_core] version = "0.6.4" optional = true [dependencies.serde] version = "1.0.190" optional = true [dependencies.serde_derive] version = "1.0.190" optional = true [dependencies.serde_json] version = "1.0.114" optional = true [dependencies.signature] version = "2.2" [dependencies.sui-sdk-types] version = "0.0.1" default-features = false [dev-dependencies.bcs] version = "0.1.6" [dev-dependencies.hex] version = "0.4.3" [dev-dependencies.serde_json] version = "1.0.114" [dev-dependencies.test-strategy] version = "0.3.1" [features] default = [] ed25519 = [ "dep:ed25519-dalek", "dep:rand_core", "sui-sdk-types/hash", "sui-sdk-types/serde", ] secp256k1 = [ "dep:k256", "dep:rand_core", "signature/std", "sui-sdk-types/hash", "sui-sdk-types/serde", ] secp256r1 = [ "dep:p256", "dep:rand_core", "sui-sdk-types/hash", "sui-sdk-types/serde", ] zklogin = [ "dep:ark-bn254", "dep:ark-ff", "dep:ark-groth16", "dep:ark-snark", "dep:ark-std", "dep:base64ct", "dep:bnum", "dep:itertools", "dep:serde", "dep:serde_derive", "dep:serde_json", "signature/std", "sui-sdk-types/hash", "sui-sdk-types/serde", ] [target.wasm32-unknown-unknown.dev-dependencies.getrandom] version = "0.2" features = ["js"] [target.wasm32-unknown-unknown.dev-dependencies.wasm-bindgen-test] version = "0.3" [lints.rust.unexpected_cfgs] level = "warn" priority = 0 check-cfg = ["cfg(doc_cfg)"]