diff --git a/age/Cargo.toml b/age/Cargo.toml index e56e16d8..6a4e303c 100644 --- a/age/Cargo.toml +++ b/age/Cargo.toml @@ -111,6 +111,7 @@ default = [] armor = [] async = ["futures", "memchr"] cli-common = ["atty", "console", "pinentry", "rpassword"] +fatfree = [] plugin = ["age-core/plugin", "which", "wsl"] ssh = [ "aes", diff --git a/age/src/protocol.rs b/age/src/protocol.rs index b5229df5..369216dd 100644 --- a/age/src/protocol.rs +++ b/age/src/protocol.rs @@ -1,6 +1,6 @@ //! Encryption and decryption routines for age. -use age_core::{format::grease_the_joint, secrecy::SecretString}; +use age_core::secrecy::SecretString; use rand::{rngs::OsRng, RngCore}; use std::io::{self, Read, Write}; @@ -89,8 +89,10 @@ impl Encryptor { for recipient in recipients { stanzas.append(&mut recipient.wrap_file_key(&file_key)?); } - // Keep the joint well oiled! - stanzas.push(grease_the_joint()); + #[cfg(not(feature = "fatfree"))] { + // Keep the joint well oiled! + stanzas.push(age_core::format::grease_the_joint()); + } stanzas } EncryptorType::Passphrase(passphrase) => {