Skip to content

Commit

Permalink
extract validator-exit crate (#3895)
Browse files Browse the repository at this point in the history
* extract validator-exit crate

* fmt

* update lock files
  • Loading branch information
kevinheavey authored Dec 17, 2024
1 parent 54a73ce commit 46698a4
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ members = [
"sdk/transaction",
"sdk/transaction-context",
"sdk/transaction-error",
"sdk/validator-exit",
"send-transaction-service",
"stake-accounts",
"storage-bigtable",
Expand Down Expand Up @@ -611,6 +612,7 @@ solana-transaction-metrics-tracker = { path = "transaction-metrics-tracker", ver
solana-turbine = { path = "turbine", version = "=2.2.0" }
solana-type-overrides = { path = "type-overrides", version = "=2.2.0" }
solana-udp-client = { path = "udp-client", version = "=2.2.0" }
solana-validator-exit = { path = "sdk/validator-exit", version = "=2.2.0" }
solana-version = { path = "version", version = "=2.2.0" }
solana-vote = { path = "vote", version = "=2.2.0" }
solana-vote-program = { path = "programs/vote", version = "=2.2.0" }
Expand Down
5 changes: 5 additions & 0 deletions programs/sbf/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ solana-transaction-context = { workspace = true, features = ["bincode"] }
solana-transaction-error = { workspace = true, features = [
"serde",
], optional = true }
solana-validator-exit = { workspace = true }
thiserror = { workspace = true }

[target.'cfg(target_arch = "wasm32")'.dependencies]
Expand Down
3 changes: 2 additions & 1 deletion sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ pub use solana_signer::signers;
pub mod entrypoint;
pub mod entrypoint_deprecated;
pub mod example_mocks;
pub mod exit;
pub mod feature;
pub mod genesis_config;
#[cfg(feature = "full")]
Expand Down Expand Up @@ -233,6 +232,8 @@ pub use solana_transaction::simple_vote_transaction_checker;
note = "Use `solana-transaction-context` crate instead"
)]
pub use solana_transaction_context as transaction_context;
#[deprecated(since = "2.2.0", note = "Use `solana-validator-exit` crate instead")]
pub use solana_validator_exit as exit;

/// Convenience macro for `AddAssign` with saturating arithmetic.
/// Replace by `std::num::Saturating` once stable
Expand Down
16 changes: 16 additions & 0 deletions sdk/validator-exit/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[package]
name = "solana-validator-exit"
description = "Solana validator exit handling."
documentation = "https://docs.rs/solana-validator-exit"
version = { workspace = true }
authors = { workspace = true }
repository = { workspace = true }
homepage = { workspace = true }
license = { workspace = true }
edition = { workspace = true }

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]

[lints]
workspace = true
File renamed without changes.
5 changes: 5 additions & 0 deletions svm/examples/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 46698a4

Please sign in to comment.