sec1 0.8.0

Pure Rust implementation of SEC1: Elliptic Curve Cryptography encoding formats including ASN.1 DER-serialized private keys as well as the Elliptic-Curve-Point-to-Octet-String encoding
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.85"
name = "sec1"
version = "0.8.0"
authors = ["RustCrypto Developers"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Pure Rust implementation of SEC1: Elliptic Curve Cryptography encoding formats
including ASN.1 DER-serialized private keys as well as the
Elliptic-Curve-Point-to-Octet-String encoding
"""
homepage = "https://github.com/RustCrypto/formats/tree/master/sec1"
readme = "README.md"
keywords = [
    "crypto",
    "key",
    "elliptic-curve",
    "secg",
]
categories = [
    "cryptography",
    "data-structures",
    "encoding",
    "no-std",
    "parser-implementations",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/RustCrypto/formats"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
alloc = [
    "der?/alloc",
    "zeroize?/alloc",
]
default = [
    "der",
    "point",
]
der = [
    "dep:der",
    "zeroize",
]
pem = [
    "alloc",
    "der/pem",
]
point = [
    "dep:base16ct",
    "dep:hybrid-array",
]
serde = ["dep:serdect"]
std = [
    "alloc",
    "der?/std",
]
zeroize = [
    "dep:zeroize",
    "der?/zeroize",
]

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

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

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

[dependencies.base16ct]
version = "1"
optional = true
default-features = false

[dependencies.ctutils]
version = "0.4"
optional = true

[dependencies.der]
version = "0.8"
features = ["oid"]
optional = true

[dependencies.hybrid-array]
version = "0.4.6"
optional = true
default-features = false

[dependencies.serdect]
version = "0.4"
features = ["alloc"]
optional = true
default-features = false

[dependencies.subtle]
version = "2"
optional = true
default-features = false

[dependencies.zeroize]
version = "1"
optional = true
default-features = false

[dev-dependencies.hex-literal]
version = "1"

[dev-dependencies.tempfile]
version = "3"