1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
[package]
name = "glome"
version = "0.3.0"
edition = "2021"
description = "Generic low-overhead message exchange with cryptographic integrity protection"
repository = "https://github.com/google/glome"
license = "Apache-2.0"
categories = ["authentication", "cryptography", "no-std"]
[features]
default = [ "dalek" ]
dalek = [ "dep:x25519-dalek" ]
openssl = [ "dep:openssl" ]
cli = [ "dep:base64", "dep:clap" ]
[dependencies]
# lib
sha2 = "0.10"
hmac = "0.12"
x25519-dalek = { version = "2.0", features = ["getrandom", "static_secrets"], optional = true }
openssl = { version = "0.10", optional = true }
# cli
base64 = { version = "0.22", optional = true }
clap = { version = "4", features = ["derive"], optional = true}
[dev-dependencies]
# test
hex = "0.4"
hex-literal = "0.3"
tempfile = "3.14.0"
yaml-rust2 = "0.9"
[lib]
name = "glome"
path = "rust/src/lib.rs"
[[bin]]
name = "glome"
path = "rust/src/cli/bin.rs"
# The binary has more dependencies than the library. We allow skipping the binary and its
# dependencies by hiding it behind a feature.
required-features = ["cli"]
|