Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion account-info/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Account information.
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
use {
solana_address::Address,
solana_program_error::ProgramError,
Expand Down
2 changes: 1 addition & 1 deletion account-view/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Data structures to represent account information.

#![no_std]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![allow(clippy::arithmetic_side_effects)]

use {
Expand Down
2 changes: 1 addition & 1 deletion account/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
//! The Solana [`Account`] type.

#[cfg(feature = "dev-context-only-utils")]
Expand Down
2 changes: 1 addition & 1 deletion address-lookup-table-interface/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
//! The [address lookup table program][np].
//!
//! [np]: https://docs.solanalabs.com/runtime/programs#address-lookup-table-program
Expand Down
2 changes: 1 addition & 1 deletion address/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//! (e.g. 14grJpemFaf88c8tiVb77W7TYg2W3ir6pfkKz3YjhhZ5).

#![no_std]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]
#![allow(clippy::arithmetic_side_effects)]

Expand Down
2 changes: 1 addition & 1 deletion atomic-u64/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![no_std]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
pub use implementation::AtomicU64;

#[cfg(target_pointer_width = "64")]
Expand Down
2 changes: 1 addition & 1 deletion big-mod-exp/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#[repr(C)]
pub struct BigModExpParams {
pub base: *const u8,
Expand Down
2 changes: 1 addition & 1 deletion bincode/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Contains a single utility function for deserializing from [bincode].
//!
//! [bincode]: https://docs.rs/bincode
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]

use {bincode::config::Options, solana_instruction_error::InstructionError};

Expand Down
2 changes: 1 addition & 1 deletion blake3-hasher/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//!
//! [blake3]: https://github.com/BLAKE3-team/BLAKE3
#![no_std]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]

pub use solana_hash::{Hash, ParseHashError, HASH_BYTES, MAX_BASE58_LEN};

Expand Down
2 changes: 1 addition & 1 deletion bls-signatures/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![no_std]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]

extern crate alloc;
Expand Down
2 changes: 1 addition & 1 deletion bn254/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
pub(crate) mod addition;
pub mod compression;
pub(crate) mod multiplication;
Expand Down
2 changes: 1 addition & 1 deletion borsh/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
pub mod macros;
pub mod v1;
2 changes: 1 addition & 1 deletion client-traits/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//!
//! Asynchronous implementations are expected to create transactions, sign them, and send
//! them but without waiting to see if the server accepted it.
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]

use {
solana_account::Account,
Expand Down
2 changes: 1 addition & 1 deletion clock/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
//!
//! [oracle]: https://docs.solanalabs.com/implemented-proposals/validator-timestamp-oracle
#![no_std]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]

#[cfg(feature = "sysvar")]
pub mod sysvar;
Expand Down
2 changes: 1 addition & 1 deletion cluster-type/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#[cfg(feature = "frozen-abi")]
use solana_frozen_abi_macro::{AbiEnumVisitor, AbiExample};
use {solana_hash::Hash, std::str::FromStr};
Expand Down
2 changes: 1 addition & 1 deletion commitment-config/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Definitions of commitment levels.
#![no_std]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
use core::{fmt, str::FromStr};

#[cfg_attr(
Expand Down
2 changes: 1 addition & 1 deletion compute-budget-interface/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Instructions for the compute budget native program.
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]

#[cfg(feature = "borsh")]
Expand Down
2 changes: 1 addition & 1 deletion cpi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//! [`invoke_signed`]: invoke_signed
//! [cpi]: https://solana.com/docs/core/cpi
//! [`solana_program::program`]: https://docs.rs/solana-program/latest/solana_program/program/
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]

use {
solana_account_info::AccountInfo, solana_instruction::Instruction,
Expand Down
2 changes: 1 addition & 1 deletion define-syscall/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![no_std]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]

pub mod definitions;

Expand Down
2 changes: 1 addition & 1 deletion derivation-path/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
//! > `m/44'/501'`
//!
//! with 501 being the Solana coin type.
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]

use {
core::{iter::IntoIterator, slice::Iter},
Expand Down
2 changes: 1 addition & 1 deletion ed25519-program/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Instructions for the [ed25519 native program][np].
//!
//! [np]: https://docs.solanalabs.com/runtime/programs#ed25519-program
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]

use {
bytemuck::bytes_of,
Expand Down
2 changes: 1 addition & 1 deletion epoch-info/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//! As returned by the [`getEpochInfo`] RPC method.
//!
//! [`getEpochInfo`]: https://solana.com/docs/rpc/http/getepochinfo
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]

#[cfg_attr(
feature = "serde",
Expand Down
2 changes: 1 addition & 1 deletion epoch-rewards-hasher/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
use {siphasher::sip::SipHasher13, solana_address::Address, solana_hash::Hash, std::hash::Hasher};

#[derive(Debug, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion epoch-rewards/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//! [`sysvar`]: crate::sysvar

#![no_std]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]

#[cfg(feature = "sysvar")]
Expand Down
2 changes: 1 addition & 1 deletion epoch-schedule/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//!
//! [`DEFAULT_SLOTS_PER_EPOCH`]: https://docs.rs/solana-clock/latest/solana_clock/constant.DEFAULT_SLOTS_PER_EPOCH.html
#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![no_std]
#[cfg(feature = "frozen-abi")]
extern crate std;
Expand Down
2 changes: 1 addition & 1 deletion epoch-stake/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! On-chain programs can use this API to retrieve the total stake for the
//! current epoch or the stake for a specific vote account using the
//! `sol_get_epoch_stake` syscall.
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]

use solana_pubkey::Pubkey;

Expand Down
2 changes: 1 addition & 1 deletion example-mocks/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#![doc(hidden)]
#![allow(clippy::new_without_default)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]

pub mod solana_rpc_client {
pub mod rpc_client {
Expand Down
2 changes: 1 addition & 1 deletion feature-gate-interface/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//! `Feature::default()`
//! 2. When the next epoch is entered the runtime will check for new activation requests and
//! active them. When this occurs, the activation slot is recorded in the feature account
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]

pub mod error;
pub mod instruction;
Expand Down
2 changes: 1 addition & 1 deletion fee-calculator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]
#![allow(clippy::arithmetic_side_effects)]
#![no_std]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
use log::*;
#[cfg(feature = "frozen-abi")]
extern crate std;
Expand Down
2 changes: 1 addition & 1 deletion fee-structure/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Fee structures.
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]

use std::num::NonZeroU32;
Expand Down
2 changes: 1 addition & 1 deletion file-download/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![allow(clippy::arithmetic_side_effects)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
use {
console::Emoji,
indicatif::{ProgressBar, ProgressStyle},
Expand Down
2 changes: 1 addition & 1 deletion frozen-abi-macro/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
extern crate proc_macro;

use proc_macro::TokenStream;
Expand Down
2 changes: 1 addition & 1 deletion frozen-abi/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![allow(incomplete_features)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(feature = "frozen-abi", feature(specialization))]

// Allows macro expansion of `use ::solana_frozen_abi::*` to work within this crate
Expand Down
2 changes: 1 addition & 1 deletion genesis-config/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! The chain's genesis config.

#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#[cfg(feature = "frozen-abi")]
use solana_frozen_abi_macro::{frozen_abi, AbiExample};
#[cfg(feature = "serde")]
Expand Down
2 changes: 1 addition & 1 deletion hard-forks/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! The list of slot boundaries at which a hard fork should
//! occur.

#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]

#[cfg_attr(feature = "frozen-abi", derive(solana_frozen_abi_macro::AbiExample))]
Expand Down
2 changes: 1 addition & 1 deletion hash/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![no_std]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]
#[cfg(feature = "borsh")]
use borsh::{BorshDeserialize, BorshSchema, BorshSerialize};
Expand Down
2 changes: 1 addition & 1 deletion inflation/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! configuration for network inflation
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]
#[cfg(feature = "serde")]
use serde_derive::{Deserialize, Serialize};
Expand Down
2 changes: 1 addition & 1 deletion instruction-error/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![no_std]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]
#[cfg(feature = "num-traits")]
use num_traits::ToPrimitive;
Expand Down
2 changes: 1 addition & 1 deletion instruction/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//! while executing a given instruction is also included in `Instruction`, as
//! [`AccountMeta`] values. The runtime uses this information to efficiently
//! schedule execution of transactions.
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![allow(clippy::arithmetic_side_effects)]
#![no_std]

Expand Down
2 changes: 1 addition & 1 deletion instructions-sysvar/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
//!
//! [`secp256k1_instruction`]: https://docs.rs/solana-sdk/latest/solana_sdk/secp256k1_instruction/index.html

#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![allow(clippy::arithmetic_side_effects)]

#[cfg(feature = "dev-context-only-utils")]
Expand Down
2 changes: 1 addition & 1 deletion keccak-hasher/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//!
//! [keccak]: https://keccak.team/keccak.html
#![no_std]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]

#[cfg(all(feature = "sha3", not(any(target_os = "solana", target_arch = "bpf"))))]
use sha3::{Digest, Keccak256};
Expand Down
2 changes: 1 addition & 1 deletion keypair/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Concrete implementation of a Solana `Signer` from raw bytes
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
use {
ed25519_dalek::Signer as DalekSigner,
rand::rngs::OsRng,
Expand Down
2 changes: 1 addition & 1 deletion last-restart-slot/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Information about the last restart slot (hard fork).
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]

#[cfg(feature = "sysvar")]
pub mod sysvar;
Expand Down
2 changes: 1 addition & 1 deletion loader-v2-interface/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Instructions for the non-upgradable BPF loader.
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]

#[cfg(feature = "bincode")]
use {
Expand Down
2 changes: 1 addition & 1 deletion loader-v3-interface/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
//! An upgradeable BPF loader native program.
//!
//! The upgradeable BPF loader is responsible for deploying, upgrading, and
Expand Down
2 changes: 1 addition & 1 deletion loader-v4-interface/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//!
//! This is the loader of the program runtime v2.
#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]

pub mod instruction;
pub mod state;
Expand Down
2 changes: 1 addition & 1 deletion message/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]
//! Sequences of [`Instruction`]s executed within a single transaction.
//!
Expand Down
2 changes: 1 addition & 1 deletion msg/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![no_std]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#[cfg(feature = "alloc")]
extern crate alloc;
#[cfg(feature = "std")]
Expand Down
2 changes: 1 addition & 1 deletion native-token/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Definitions for the native SOL token and its fractional lamports.

#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![allow(clippy::arithmetic_side_effects)]

/// There are 10^9 lamports in one SOL
Expand Down
2 changes: 1 addition & 1 deletion nonce-account/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Functions related to nonce accounts.
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]

use {
solana_account::{state_traits::StateMut, AccountSharedData, ReadableAccount},
Expand Down
2 changes: 1 addition & 1 deletion nonce/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
//! Durable transaction nonces.

pub mod state;
Expand Down
Loading
Loading