Rename "everything" feature to "full"
This commit is contained in:
parent
a4956844bd
commit
0cc9c94c43
|
@ -14,11 +14,10 @@ edition = "2018"
|
|||
# solana-program crate
|
||||
program = []
|
||||
|
||||
# "everything" includes functionality that is not compatible or needed for on-chain programs
|
||||
default = [
|
||||
"everything"
|
||||
"full" # functionality that is not compatible or needed for on-chain programs
|
||||
]
|
||||
everything = [
|
||||
full = [
|
||||
"assert_matches",
|
||||
"byteorder",
|
||||
"chrono",
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
//! Asynchronous implementations are expected to create transactions, sign them, and send
|
||||
//! them but without waiting to see if the server accepted it.
|
||||
|
||||
#![cfg(feature = "everything")]
|
||||
#![cfg(feature = "full")]
|
||||
|
||||
use crate::{
|
||||
account::Account,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
//! The `genesis_config` module is a library for generating the chain's genesis config.
|
||||
|
||||
#![cfg(feature = "everything")]
|
||||
#![cfg(feature = "full")]
|
||||
|
||||
use crate::{
|
||||
account::Account,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
//! The `hard_forks` module is used to maintain the list of slot boundaries for when a hard fork
|
||||
//! should occur.
|
||||
|
||||
#![cfg(feature = "everything")]
|
||||
#![cfg(feature = "full")]
|
||||
|
||||
use byteorder::{ByteOrder, LittleEndian};
|
||||
use solana_sdk::clock::Slot;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
pub use solana_program::hash::*;
|
||||
|
||||
/// random hash value for tests and benchmarks.
|
||||
#[cfg(feature = "everything")]
|
||||
#[cfg(feature = "full")]
|
||||
pub fn new_rand<R: ?Sized>(rng: &mut R) -> Hash
|
||||
where
|
||||
R: rand::Rng,
|
||||
|
|
|
@ -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)?;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#![cfg(feature = "everything")]
|
||||
#![cfg(feature = "full")]
|
||||
|
||||
use digest::Digest;
|
||||
use serde_derive::{Deserialize, Serialize};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#![cfg(feature = "everything")]
|
||||
#![cfg(feature = "full")]
|
||||
|
||||
use solana_sdk::{
|
||||
hard_forks::HardForks,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
//! The `signature` module provides functionality for public, and private keys.
|
||||
#![cfg(feature = "everything")]
|
||||
#![cfg(feature = "full")]
|
||||
|
||||
use crate::{pubkey::Pubkey, transaction::TransactionError};
|
||||
use ed25519_dalek::Signer as DalekSigner;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#![cfg(feature = "everything")]
|
||||
#![cfg(feature = "full")]
|
||||
use crate::{
|
||||
pubkey::Pubkey,
|
||||
signature::{Signature, Signer, SignerError},
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
//! The `system_transaction` module provides functionality for creating system transactions.
|
||||
#![cfg(feature = "everything")]
|
||||
#![cfg(feature = "full")]
|
||||
|
||||
use crate::{
|
||||
hash::Hash,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
//! Defines a Transaction type to package an atomic sequence of instructions.
|
||||
|
||||
#![cfg(feature = "everything")]
|
||||
#![cfg(feature = "full")]
|
||||
|
||||
use crate::sanitize::{Sanitize, SanitizeError};
|
||||
use crate::secp256k1::verify_eth_addresses;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#![cfg(feature = "everything")]
|
||||
#![cfg(feature = "full")]
|
||||
|
||||
use crate::transaction::TransactionError;
|
||||
use std::io;
|
||||
|
|
Loading…
Reference in New Issue