forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extract vote-interface crate (#4482)
* extract vote-interface crate * remove thiserror * fmt * update digests * update digests * update digest * trigger ci * trigger ci
- Loading branch information
1 parent
73650a1
commit 46b1f9a
Showing
21 changed files
with
433 additions
and
210 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
[package] | ||
name = "solana-vote-interface" | ||
description = "Solana vote interface." | ||
documentation = "https://docs.rs/solana-vote-interface" | ||
version = { workspace = true } | ||
authors = { workspace = true } | ||
repository = { workspace = true } | ||
homepage = { workspace = true } | ||
license = { workspace = true } | ||
edition = { workspace = true } | ||
|
||
[dependencies] | ||
bincode = { workspace = true, optional = true } | ||
num-derive = { workspace = true } | ||
num-traits = { workspace = true } | ||
serde = { workspace = true, optional = true } | ||
serde_derive = { workspace = true, optional = true } | ||
solana-clock = { workspace = true } | ||
solana-decode-error = { workspace = true } | ||
solana-frozen-abi = { workspace = true, features = [ | ||
"frozen-abi", | ||
], optional = true } | ||
solana-frozen-abi-macro = { workspace = true, features = [ | ||
"frozen-abi", | ||
], optional = true } | ||
solana-hash = { workspace = true } | ||
solana-instruction = { workspace = true, features = ["std"] } | ||
solana-pubkey = { workspace = true } | ||
solana-rent = { workspace = true } | ||
solana-sdk-ids = { workspace = true } | ||
solana-serde-varint = { workspace = true, optional = true } | ||
solana-serialize-utils = { workspace = true, optional = true } | ||
solana-short-vec = { workspace = true, optional = true } | ||
solana-system-interface = { workspace = true, features = ["bincode"], optional = true } | ||
|
||
[target.'cfg(target_os = "solana")'.dependencies] | ||
solana-serialize-utils = { workspace = true } | ||
|
||
[dev-dependencies] | ||
arbitrary = { workspace = true, features = ["derive"] } | ||
itertools = { workspace = true } | ||
rand = { workspace = true } | ||
solana-epoch-schedule = { workspace = true } | ||
solana-logger = { workspace = true } | ||
solana-pubkey = { workspace = true, features = ["dev-context-only-utils"] } | ||
solana-vote-interface = { path = ".", features = ["dev-context-only-utils"] } | ||
|
||
[features] | ||
bincode = [ | ||
"dep:bincode", | ||
"dep:solana-serialize-utils", | ||
"dep:solana-system-interface", | ||
"serde" | ||
] | ||
dev-context-only-utils = ["bincode"] | ||
frozen-abi = [ | ||
"dep:solana-frozen-abi", | ||
"dep:solana-frozen-abi-macro", | ||
"serde", | ||
"solana-hash/frozen-abi", | ||
"solana-pubkey/frozen-abi" | ||
] | ||
serde = [ | ||
"dep:serde", | ||
"dep:serde_derive", | ||
"dep:solana-serde-varint", | ||
"dep:solana-short-vec", | ||
"solana-hash/serde", | ||
"solana-pubkey/serde" | ||
] | ||
|
||
[package.metadata.docs.rs] | ||
targets = ["x86_64-unknown-linux-gnu"] | ||
all-features = true | ||
rustdoc-args = ["--cfg=docsrs"] | ||
|
||
[lints] | ||
workspace = true |
16 changes: 7 additions & 9 deletions
16
sdk/program/src/vote/authorized_voters.rs → sdk/vote-interface/src/authorized_voters.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.