Rename "everything" feature to "full"
This commit is contained in:
committed by
mergify[bot]
parent
a4956844bd
commit
0cc9c94c43
@@ -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)?;
|
||||
|
Reference in New Issue
Block a user