der 0.8.0

Pure Rust embedded-friendly implementation of the Distinguished Encoding Rules (DER) for Abstract Syntax Notation One (ASN.1) as described in ITU X.690 with full support for heapless `no_std`/`no_alloc` targets
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 = "der"
version = "0.8.0"
authors = ["RustCrypto Developers"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Pure Rust embedded-friendly implementation of the Distinguished Encoding Rules
(DER) for Abstract Syntax Notation One (ASN.1) as described in ITU X.690 with
full support for heapless `no_std`/`no_alloc` targets
"""
homepage = "https://github.com/RustCrypto/formats/tree/master/der"
readme = "README.md"
keywords = [
    "asn1",
    "crypto",
    "no-alloc",
    "itu",
    "pkcs",
]
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 = ["zeroize?/alloc"]
arbitrary = [
    "dep:arbitrary",
    "const-oid?/arbitrary",
    "std",
]
ber = []
bytes = [
    "dep:bytes",
    "alloc",
]
derive = ["dep:der_derive"]
oid = ["dep:const-oid"]
pem = [
    "dep:pem-rfc7468",
    "alloc",
    "zeroize",
]
real = []
std = ["alloc"]

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

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

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

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

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

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

[dependencies.arbitrary]
version = "1.4"
features = ["derive"]
optional = true

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

[dependencies.const-oid]
version = "0.10"
optional = true

[dependencies.der_derive]
version = "0.8"
optional = true

[dependencies.flagset]
version = "0.4.7"
optional = true

[dependencies.heapless]
version = "0.9"
optional = true
default-features = false

[dependencies.pem-rfc7468]
version = "1"
features = ["alloc"]
optional = true

[dependencies.time]
version = "0.3.4"
optional = true
default-features = false

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

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

[target."cfg(any(unix, windows))".dev-dependencies.proptest]
version = "1.10"

[lints.clippy]
borrow_as_ptr = "warn"
cast_lossless = "warn"
cast_possible_truncation = "warn"
cast_possible_wrap = "warn"
cast_precision_loss = "warn"
cast_sign_loss = "warn"
checked_conversions = "warn"
doc_markdown = "warn"
from_iter_instead_of_collect = "warn"
implicit_saturating_sub = "warn"
manual_assert = "warn"
map_unwrap_or = "warn"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
mod_module_files = "warn"
must_use_candidate = "warn"
needless_range_loop = "allow"
ptr_as_ptr = "warn"
redundant_closure_for_method_calls = "warn"
ref_as_ptr = "warn"
return_self_not_must_use = "warn"
semicolon_if_nothing_returned = "warn"
std_instead_of_alloc = "warn"
std_instead_of_core = "warn"
trivially_copy_pass_by_ref = "warn"
undocumented_unsafe_blocks = "warn"
unnecessary_safety_comment = "warn"
unwrap_in_result = "warn"
unwrap_used = "warn"

[lints.rust]
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unused_lifetimes = "warn"
unused_qualifications = "warn"