# 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.65" name = "sm2" version = "0.13.3" authors = ["RustCrypto Developers"] description = """ Pure Rust implementation of the SM2 elliptic curve as defined in the Chinese national standard GM/T 0003-2012 as well as ISO/IEC 14888. Includes support for the SM2DSA Digital Signature Algorithm. """ documentation = "https://docs.rs/sm2" readme = "README.md" keywords = [ "crypto", "ecc", "shangmi", "signature", ] categories = [ "cryptography", "no-std", ] license = "Apache-2.0 OR MIT" repository = "https://github.com/RustCrypto/elliptic-curves/tree/master/sm2" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [dependencies.elliptic-curve] version = "0.13" features = [ "hazmat", "sec1", ] default-features = false [dependencies.primeorder] version = "0.13.1" optional = true [dependencies.rfc6979] version = "0.4" optional = true [dependencies.serdect] version = "0.2" optional = true default-features = false [dependencies.signature] version = "2.2" features = ["rand_core"] optional = true [dependencies.sm3] version = "0.4" optional = true default-features = false [dev-dependencies.hex-literal] version = "0.4" [dev-dependencies.proptest] version = "1" [dev-dependencies.rand_core] version = "0.6" features = ["getrandom"] [features] alloc = ["elliptic-curve/alloc"] arithmetic = [ "dep:primeorder", "elliptic-curve/arithmetic", ] default = [ "arithmetic", "dsa", "pem", "std", ] dsa = [ "arithmetic", "dep:rfc6979", "dep:signature", "dep:sm3", ] getrandom = ["rand_core/getrandom"] pem = [ "elliptic-curve/pem", "pkcs8", ] pkcs8 = ["elliptic-curve/pkcs8"] serde = [ "elliptic-curve/serde", "primeorder?/serde", "serdect", ] std = [ "alloc", "elliptic-curve/std", "signature?/std", ]