Skip to content

Commit bac227d

Browse files
authored
Make agave-unstable-api default for votor/ so we don't need to specify it many times. (anza-xyz#8257)
* Make agave-unstable-api default for votor/ so we don't need to specify it many times. * Use default = [ "agave-unstable-api" ] in Cargo.toml instead, this makes `cargo test` work. * Make linter happy. * Should still put everything under agave-unstable-api.
1 parent 3ec4312 commit bac227d

2 files changed

Lines changed: 6 additions & 29 deletions

File tree

votor/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ edition = { workspace = true }
1111

1212
[features]
1313
agave-unstable-api = []
14+
default = ["agave-unstable-api"]
1415
dev-context-only-utils = ["solana-runtime/dev-context-only-utils"]
1516
frozen-abi = [
1617
"dep:solana-frozen-abi",

votor/src/lib.rs

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,21 @@
1+
#![cfg(feature = "agave-unstable-api")]
12
#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]
23

3-
#[cfg(feature = "agave-unstable-api")]
4-
pub mod commitment;
4+
#[macro_use]
5+
extern crate log;
6+
extern crate serde_derive;
57

6-
#[cfg(feature = "agave-unstable-api")]
8+
pub mod commitment;
79
pub mod common;
8-
9-
#[cfg(feature = "agave-unstable-api")]
1010
mod consensus_metrics;
11-
12-
#[cfg(feature = "agave-unstable-api")]
1311
pub mod consensus_pool;
14-
15-
#[cfg(feature = "agave-unstable-api")]
1612
pub mod event;
17-
18-
#[cfg(feature = "agave-unstable-api")]
1913
pub mod root_utils;
20-
21-
#[cfg(feature = "agave-unstable-api")]
22-
#[macro_use]
23-
extern crate log;
24-
25-
#[cfg(feature = "agave-unstable-api")]
26-
extern crate serde_derive;
27-
28-
#[cfg(feature = "agave-unstable-api")]
2914
mod staked_validators_cache;
30-
31-
#[cfg(feature = "agave-unstable-api")]
3215
mod timer_manager;
33-
34-
#[cfg(feature = "agave-unstable-api")]
3516
pub mod vote_history;
36-
#[cfg(feature = "agave-unstable-api")]
3717
pub mod vote_history_storage;
38-
39-
#[cfg(feature = "agave-unstable-api")]
4018
mod voting_service;
41-
42-
#[cfg(feature = "agave-unstable-api")]
4319
mod voting_utils;
4420

4521
#[cfg_attr(feature = "frozen-abi", macro_use)]

0 commit comments

Comments
 (0)