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