[package]
edition = "2024"
rust-version = "1.85"
name = "ssh-encoding"
version = "0.3.0-rc.6"
authors = ["RustCrypto Developers"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Pure Rust implementation of SSH data type decoders/encoders as described
in RFC4251
"""
homepage = "https://github.com/RustCrypto/SSH/tree/master/ssh-encoding"
readme = "README.md"
keywords = [
"crypto",
"certificate",
"key",
"openssh",
"ssh",
]
categories = [
"authentication",
"cryptography",
"encoding",
"no-std",
"parser-implementations",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/RustCrypto/SSH"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
alloc = [
"base64ct?/alloc",
"pem-rfc7468?/alloc",
"zeroize?/alloc",
]
base64 = ["dep:base64ct"]
bigint = [
"alloc",
"zeroize",
"dep:bigint",
]
bytes = [
"alloc",
"dep:bytes",
]
derive = ["ssh-derive"]
pem = [
"base64",
"dep:pem-rfc7468",
]
[lib]
name = "ssh_encoding"
path = "src/lib.rs"
[[test]]
name = "decode"
path = "tests/decode.rs"
[[test]]
name = "derive"
path = "tests/derive.rs"
[[test]]
name = "encode"
path = "tests/encode.rs"
[dependencies.base64ct]
version = "1.8"
optional = true
[dependencies.bigint]
version = "0.7.0-rc.22"
features = ["alloc"]
optional = true
default-features = false
package = "crypto-bigint"
[dependencies.bytes]
version = "1"
optional = true
default-features = false
[dependencies.digest]
version = "0.11.0-rc.9"
optional = true
default-features = false
[dependencies.pem-rfc7468]
version = "1"
optional = true
[dependencies.ssh-derive]
version = "0.3.0-rc.0"
optional = true
[dependencies.subtle]
version = "2"
optional = true
default-features = false
[dependencies.zeroize]
version = "1"
optional = true
default-features = false
[dev-dependencies.hex-literal]
version = "1"