[package]
edition = "2024"
rust-version = "1.85"
name = "ssh-encoding"
version = "0.3.0-rc.9"
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
[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"
features = ["alloc"]
optional = true
default-features = false
package = "crypto-bigint"
[dependencies.bytes]
version = "1.11"
optional = true
default-features = false
[dependencies.ctutils]
version = "0.4"
optional = true
default-features = false
[dependencies.digest]
version = "0.11"
optional = true
default-features = false
[dependencies.pem-rfc7468]
version = "1"
optional = true
[dependencies.ssh-derive]
version = "0.3"
optional = true
[dependencies.zeroize]
version = "1"
optional = true
default-features = false
[dev-dependencies.hex-literal]
version = "1"
[lints.clippy]
as_conversions = "warn"
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"
from_iter_instead_of_collect = "warn"
implicit_saturating_sub = "warn"
integer_division_remainder_used = "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_used = "warn"
[lints.rust]
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
unused_lifetimes = "warn"
unused_qualifications = "warn"