Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Commit 6849b39

Browse files
authored
Deprecate crate (#23)
* Add deprecated as status and in readme.
1 parent 5c80168 commit 6849b39

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyth-client"
3-
version = "0.5.0"
3+
version = "0.5.1"
44
authors = ["Pyth Data Foundation"]
55
edition = "2018"
66
license = "Apache-2.0"
@@ -10,6 +10,9 @@ description = "pyth price oracle data structures and example usage"
1010
keywords = [ "pyth", "solana", "oracle" ]
1111
readme = "README.md"
1212

13+
[badges]
14+
maintenance = { status = "deprecated" }
15+
1316
[features]
1417
test-bpf = []
1518
no-entrypoint = []

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Pyth Client
22

3+
**This crate has been deprecated. Please use [pyth-sdk-solana](https://github.com/pyth-network/pyth-sdk-rs/tree/main/pyth-sdk-solana) instead. pyth-sdk-solana provides identical functionalities with an easier interface.**
4+
35
This crate provides utilities for reading price feeds from the [pyth.network](https://pyth.network/) oracle on the Solana network.
46
The crate includes a library for on-chain programs and an off-chain example program.
57

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! A Rust library for consuming price feeds from the [pyth.network](https://pyth.network/) oracle on the Solana network.
22
//!
33
//! Please see the [crates.io page](https://crates.io/crates/pyth-client/) for documentation and example usage.
4+
#![deprecated = "This crate has been deprecated. Please use pyth-sdk-solana instead."]
45

56
pub use self::price_conf::PriceConf;
67
pub use self::error::PythError;

tests/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use {
33
pyth_client::processor::process_instruction,
44
solana_program::instruction::Instruction,
55
solana_program_test::*,
6-
solana_sdk::{signature::Signer, transaction::Transaction},
6+
solana_sdk::{signature::Signer, transaction::Transaction, pubkey::Pubkey},
77
};
88

99
// Panics if running instruction fails

0 commit comments

Comments
 (0)