Skip to content

Commit

Permalink
extract program-option crate
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey committed Jul 31, 2024
1 parent 6e067fc commit 05460da
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 2 deletions.
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 @@ -109,6 +109,7 @@ members = [
"sdk/package-metadata-macro",
"sdk/program",
"sdk/program-memory",
"sdk/program-option",
"send-transaction-service",
"short-vec",
"stake-accounts",
Expand Down Expand Up @@ -391,6 +392,7 @@ solana-poh = { path = "poh", version = "=2.1.0" }
solana-poseidon = { path = "poseidon", version = "=2.1.0" }
solana-program = { path = "sdk/program", version = "=2.1.0", default-features = false }
solana-program-memory = { path = "sdk/program-memory", version = "=2.1.0" }
solana-program-option = { path = "sdk/program-option", version = "=2.1.0" }
solana-program-runtime = { path = "program-runtime", version = "=2.1.0" }
solana-program-test = { path = "program-test", version = "=2.1.0" }
solana-pubsub-client = { path = "pubsub-client", version = "=2.1.0" }
Expand Down
13 changes: 13 additions & 0 deletions sdk/program-option/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[package]
name = "solana-program-option"
description = "A C representation of Rust's Option"
documentation = "https://docs.rs/solana-program-option"
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"]
File renamed without changes.
1 change: 1 addition & 0 deletions sdk/program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ solana-frozen-abi = { workspace = true, optional = true }
solana-frozen-abi-macro = { workspace = true, optional = true }
solana-msg = { workspace = true }
solana-program-memory = { workspace = true }
solana-program-option = { workspace = true }
solana-sanitize = { workspace = true }
solana-sdk-macro = { workspace = true }
solana-secp256k1-recover = { workspace = true }
Expand Down
3 changes: 1 addition & 2 deletions sdk/program/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,6 @@ pub mod native_token;
pub mod nonce;
pub mod program;
pub mod program_error;
pub mod program_option;
pub mod program_pack;
pub mod program_stubs;
pub mod program_utils;
Expand All @@ -530,7 +529,7 @@ pub mod sysvar;
pub mod vote;
pub mod wasm;

pub use solana_msg::msg;
pub use {solana_msg::msg, solana_program_option as program_option};
#[deprecated(since = "2.1.0", note = "Use `solana-program-memory` crate instead")]
pub use solana_program_memory as program_memory;
#[deprecated(since = "2.1.0", note = "Use `solana-sanitize` crate instead")]
Expand Down

0 comments on commit 05460da

Please sign in to comment.