Skip to content

Commit 6e8b7c0

Browse files
authored
Fix import paths (#16)
1 parent 9d37c07 commit 6e8b7c0

36 files changed

+131
-127
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ See the language directories for specific documentation, usage and examples.
66

77
## [Go](go/README.md) [![go.dev reference](https://img.shields.io/badge/go-reference-blue)](https://pkg.go.dev/github.com/smartcontractkit/data-streams-sdk/go) [![Go Report Card](https://goreportcard.com/badge/github.com/smartcontractkit/data-streams-sdk/go)](https://goreportcard.com/report/github.com/smartcontractkit/data-streams-sdk/go) [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/smartcontractkit/data-streams-sdk/blob/main/LICENSE)
88

9-
## [Rust](rust/README.md) ![Crates.io sdk](https://img.shields.io/crates/v/chainlink-data-streams-sdk?label=chainlink-data-streams-sdk) ![Crates.io report](https://img.shields.io/crates/v/chainlink-data-streams-report?label=chainlink-data-streams-report) [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/smartcontractkit/data-streams-sdk/blob/main/LICENSE)
9+
## [Rust](rust/README.md) [![Crates.io sdk](https://img.shields.io/crates/v/chainlink-data-streams-sdk?label=chainlink-data-streams-sdk)](https://crates.io/crates/chainlink-data-streams-sdk) [![Crates.io report](https://img.shields.io/crates/v/chainlink-data-streams-report?label=chainlink-data-streams-report)](https://crates.io/crates/chainlink-data-streams-report) [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/smartcontractkit/data-streams-sdk/blob/main/LICENSE)

rust/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Add the following to your `Cargo.toml`:
2020

2121
```toml
2222
[dependencies]
23+
chainlink-data-streams-report = "0.1.0"
2324
chainlink-data-streams-sdk = { version = "0.1.0", features = ["full"] }
2425
```
2526

rust/crates/report/examples/decode_report_data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use data_streams_report::report::{decode_full_report, v3::ReportDataV3};
1+
use chainlink_data_streams_report::report::{decode_full_report, v3::ReportDataV3};
22
use std::error::Error;
33

44
fn main() -> Result<(), Box<dyn Error>> {

rust/crates/report/src/feed_id.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub enum IDError {
2525
/// # Examples
2626
///
2727
/// ```rust
28-
/// use data_streams_report::feed_id::ID;
28+
/// use chainlink_data_streams_report::feed_id::ID;
2929
///
3030
/// let id = ID::from_hex_str("0x00016b4aa7e57ca7b68ae1bf45653f56b656fd3aa335ef7fae696b663f1b8472").unwrap();
3131
/// println!("ID: {}", id);
@@ -55,7 +55,7 @@ impl ID {
5555
/// # Examples
5656
///
5757
/// ```rust
58-
/// use data_streams_report::feed_id::ID;
58+
/// use chainlink_data_streams_report::feed_id::ID;
5959
///
6060
/// let id = ID::from_hex_str("0x00016b4aa7e57ca7b68ae1bf45653f56b656fd3aa335ef7fae696b663f1b8472").unwrap();
6161
/// ```
@@ -85,7 +85,7 @@ impl ID {
8585
/// # Examples
8686
///
8787
/// ```rust
88-
/// use data_streams_report::feed_id::ID;
88+
/// use chainlink_data_streams_report::feed_id::ID;
8989
///
9090
/// let id = ID::from_hex_str("0x00016b4aa7e57ca7b68ae1bf45653f56b656fd3aa335ef7fae696b663f1b8472").unwrap();
9191
/// let hex_string = id.to_hex_string();
@@ -113,7 +113,7 @@ impl FromStr for ID {
113113
/// # Examples
114114
///
115115
/// ```rust
116-
/// use data_streams_report::feed_id::ID;
116+
/// use chainlink_data_streams_report::feed_id::ID;
117117
/// use std::str::FromStr;
118118
///
119119
/// let id = ID::from_str("0x00016b4aa7e57ca7b68ae1bf45653f56b656fd3aa335ef7fae696b663f1b8472").unwrap();
@@ -129,7 +129,7 @@ impl fmt::Display for ID {
129129
/// # Examples
130130
///
131131
/// ```rust
132-
/// use data_streams_report::feed_id::ID;
132+
/// use chainlink_data_streams_report::feed_id::ID;
133133
///
134134
/// let id = ID::from_hex_str("0x00016b4aa7e57ca7b68ae1bf45653f56b656fd3aa335ef7fae696b663f1b8472").unwrap();
135135
/// println!("{}", id); // Outputs: 0x00016b4aa7e57ca7b68ae1bf45653f56b656fd3aa335ef7fae696b663f1b8472
@@ -145,7 +145,7 @@ impl fmt::Debug for ID {
145145
/// # Examples
146146
///
147147
/// ```rust
148-
/// use data_streams_report::feed_id::ID;
148+
/// use chainlink_data_streams_report::feed_id::ID;
149149
///
150150
/// let id = ID::from_hex_str("0x00016b4aa7e57ca7b68ae1bf45653f56b656fd3aa335ef7fae696b663f1b8472").unwrap();
151151
/// println!("{:?}", id); // Outputs: 0x00016b4aa7e57ca7b68ae1bf45653f56b656fd3aa335ef7fae696b663f1b8472
@@ -163,7 +163,7 @@ impl Serialize for ID {
163163
/// # Examples
164164
///
165165
/// ```rust
166-
/// use data_streams_report::feed_id::ID;
166+
/// use chainlink_data_streams_report::feed_id::ID;
167167
/// use serde_json;
168168
///
169169
/// let id = ID::from_hex_str("0x00016b4aa7e57ca7b68ae1bf45653f56b656fd3aa335ef7fae696b663f1b8472").unwrap();
@@ -185,7 +185,7 @@ impl<'de> Deserialize<'de> for ID {
185185
/// # Examples
186186
///
187187
/// ```rust
188-
/// use data_streams_report::feed_id::ID;
188+
/// use chainlink_data_streams_report::feed_id::ID;
189189
/// use serde_json;
190190
///
191191
/// let json = "\"0x00016b4aa7e57ca7b68ae1bf45653f56b656fd3aa335ef7fae696b663f1b8472\"";

rust/crates/report/src/report.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ use serde::{Deserialize, Serialize};
2222
/// # Examples
2323
///
2424
/// ```rust
25-
/// use data_streams_report::report::Report;
26-
/// use data_streams_report::feed_id::ID;
25+
/// use chainlink_data_streams_report::report::Report;
26+
/// use chainlink_data_streams_report::feed_id::ID;
2727
///
2828
/// let id = ID::from_hex_str("0x00016b4aa7e57ca7b68ae1bf45653f56b656fd3aa335ef7fae696b663f1b8472").unwrap();
2929
/// let report = Report {

rust/crates/report/src/report/compress.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ impl From<snap::Error> for CompressionError {
2626
///
2727
/// # Examples
2828
/// ```rust
29-
/// use data_streams_report::report::compress::{compress_report_raw, CompressionError};
29+
/// use chainlink_data_streams_report::report::compress::{compress_report_raw, CompressionError};
3030
///
3131
/// fn main() -> Result<(), CompressionError> {
3232
/// let raw_report = "7b22666565644944223a22307830303033366234616137653537636137623638616531626634353635336635366236353666643361613333356566376661653639366236363366316238343732222c2276616c696446726f6d54696d657374616d70223a313731383838353737322c226f62736572766174696f6e7354696d657374616d70223a313731383838353737322c2266756c6c5265706f7274223a2230303036626438373833306435663333366532303563663563363333323961316461623866356435363831326561656237633639333030653636616238653232303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030636637656431333030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030306530303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303232303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303033303030313031303030313031303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303132303030303330616237643032666262613963363330346639383832343532343430376231663439343734313137343332306366643137613263323265656331646530303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303636613866356336303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303036366138663563363030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303035373831303635336464393030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303534313331356461373664363130303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303036366161343734363030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303039613639376565343233303335303430303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030396136353036643134323664303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303961373764303361653335356665303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303637326261633939316635323333646638396635383164633032613839646438643438343139653335353862323437643365363566343036396661343563333636353861356134383230646339346663343761383861323164383334373463323965653338333832633436623666396135373562396365386265346536383963303363373666616331396662656334613239646261373034633732636330303361366265316639366166313135653332323332316630363838653234373230613564396264373133366131643936383432656338393133333035386238383862326536353732623564343131346465323432363139356530333866316339613563653530303136623666356135646530376530383532396238343565316336323264636265666130636661326666643132386539393332656365653865666438363962633536643039613530636562333630613864333636636661386565666533663634323739633838626462633838373536306566613939343432333865623030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303036306532613830306631363966323631363435333363376661666636633930373363643664623234306438393434346433343837313133323332663963333134323261303939336262343764353638303764306463323637323865346338343234626239646237373531313030313930343335336631303232313638373233303130633436363237633839306265366537303165373636363739363030363936383636633838386563383065376462643432386635313632613234663264383236326638343662646230366439653436643239356464386538393666623233326265383035333462303034313636306665343435306137656465396263336232333037323233383137373361346165383132343135363838363761373539663533633262646430356433326232303965373838343566633538323033393439653530613630383934326232373063343536303031653537383232376164303038363163663566343762323762303931333761306334623766386234373436636566227d";
@@ -55,8 +55,8 @@ pub fn compress_report_raw(payload: &[u8]) -> Result<Vec<u8>, CompressionError>
5555
///
5656
/// # Examples
5757
/// ```rust
58-
/// use data_streams_report::report::{Report, compress::{compress_report, CompressionError}};
59-
/// use data_streams_report::feed_id::ID;
58+
/// use chainlink_data_streams_report::report::{Report, compress::{compress_report, CompressionError}};
59+
/// use chainlink_data_streams_report::feed_id::ID;
6060
///
6161
/// fn main() -> Result<(), CompressionError> {
6262
/// let feed_id = ID::from_hex_str("0x00036b4aa7e57ca7b68ae1bf45653f56b656fd3aa335ef7fae696b663f1b8472").unwrap();

rust/crates/report/src/report/v3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl ReportDataV3 {
6161
/// # Examples
6262
///
6363
/// ```rust
64-
/// use data_streams_report::report::{decode_full_report, v3::ReportDataV3};
64+
/// use chainlink_data_streams_report::report::{decode_full_report, v3::ReportDataV3};
6565
/// use std::error::Error;
6666
///
6767
/// fn main() -> Result<(), Box<dyn Error>> {

rust/crates/sdk/benches/rest_benchmark.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
use data_streams_report::{
1+
use chainlink_data_streams_report::{
22
feed_id::ID,
33
report::{
44
compress::{compress_report, compress_report_raw},
55
decode_full_report,
66
},
77
};
8-
use data_streams_sdk::{client::Client, config::Config};
8+
use chainlink_data_streams_sdk::{client::Client, config::Config};
99

1010
use criterion::{criterion_group, criterion_main, Criterion};
1111
use dotenv::dotenv;

rust/crates/sdk/benches/stream_benchmark.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use data_streams_report::feed_id::ID;
2-
use data_streams_sdk::{
1+
use chainlink_data_streams_report::feed_id::ID;
2+
use chainlink_data_streams_sdk::{
33
config::{Config, WebSocketHighAvailability},
44
stream::Stream,
55
};

rust/crates/sdk/examples/compress_report.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
use data_streams_report::feed_id::ID;
2-
use data_streams_report::report::compress::compress_report;
3-
use data_streams_sdk::client::Client;
4-
use data_streams_sdk::config::Config;
1+
use chainlink_data_streams_report::feed_id::ID;
2+
use chainlink_data_streams_report::report::compress::compress_report;
3+
use chainlink_data_streams_sdk::client::Client;
4+
use chainlink_data_streams_sdk::config::Config;
55
use std::error::Error;
66

77
#[tokio::main]

0 commit comments

Comments
 (0)