Rename "everything" feature to "full"

(cherry picked from commit 0cc9c94c43)
This commit is contained in:
Michael Vines
2020-10-24 08:39:28 -07:00
parent eb9cef0cd4
commit 712267bf51
13 changed files with 16 additions and 17 deletions

View File

@@ -1,12 +1,12 @@
pub use solana_program::pubkey::*;
/// New random Pubkey for tests and benchmarks.
#[cfg(feature = "everything")]
#[cfg(feature = "full")]
pub fn new_rand() -> Pubkey {
Pubkey::new(&rand::random::<[u8; 32]>())
}
#[cfg(feature = "everything")]
#[cfg(feature = "full")]
pub fn write_pubkey_file(outfile: &str, pubkey: Pubkey) -> Result<(), Box<dyn std::error::Error>> {
use std::io::Write;
@@ -22,7 +22,7 @@ pub fn write_pubkey_file(outfile: &str, pubkey: Pubkey) -> Result<(), Box<dyn st
Ok(())
}
#[cfg(feature = "everything")]
#[cfg(feature = "full")]
pub fn read_pubkey_file(infile: &str) -> Result<Pubkey, Box<dyn std::error::Error>> {
let f = std::fs::File::open(infile.to_string())?;
let printable: String = serde_json::from_reader(f)?;