Skip to content

Commit 0838938

Browse files
committed
wip
1 parent 9cc868b commit 0838938

File tree

8 files changed

+18
-8
lines changed

8 files changed

+18
-8
lines changed

.envrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
use flake
2+
3+
toolchain_path="./.cargo/rust-toolchain.toml"
4+
if rg -q "nightly" "$toolchain_path"; then
5+
export RUSTFLAGS="$RUSTFLAGS -C link-arg=-fuse-ld=mold --cfg tokio_unstable -Z threads=8 -Z track-diagnostics"
6+
fi

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
cargo-features = ["codegen-backend"]
2+
13
[workspace]
24
members = [
35
"v_exchanges",
@@ -22,7 +24,7 @@ serde_json = "1.0.133"
2224
serde_with = "3.11.0"
2325
thiserror = "2.0.7"
2426
tokio = { version = "^1.42.0", features = ["full"] }
25-
tokio-tungstenite = { version = "^0.25.0", features = ["native-tls"] }
27+
tokio-tungstenite = { version = "^0.26.0", features = ["native-tls"] }
2628
tracing = "0.1.41"
2729
url = "2.5.4"
2830
v_utils = { version = "^1.9.1", features = ["trades", "tracing"], path = "../v_utils/v_utils" }

v_exchanges/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ v_utils.workspace = true
2323
color-eyre.workspace = true
2424

2525
# #dbg
26-
rust_decimal = { version = "1.33.0", features = ["serde-with-str", "serde-with-float"] }
27-
env_logger = "0.10.1"
26+
rust_decimal = { version = "1.36.0", features = ["serde-with-str", "serde-with-float"] }
27+
env_logger = "0.11.5"
2828
#

v_exchanges/src/main.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
use rust_decimal::prelude::*;
2-
use serde::{Deserialize, Serialize};
3-
use serde_json::json;
1+
use serde::Serialize;
42
use v_exchanges_adapters::{
53
Client,
64
binance::{BinanceHttpUrl, BinanceOption},

v_exchanges_adapters/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
cargo-features = ["codegen-backend"]
2+
13
[package]
24
name = "v_exchanges_adapters"
35
version = "0.1.0"

v_exchanges_api_generics/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
cargo-features = ["codegen-backend"]
2+
13
[package]
24
name = "v_exchanges_api_generics"
35
version = "0.3.0"
@@ -20,7 +22,7 @@ reqwest.workspace = true
2022
serde.workspace = true
2123
thiserror.workspace = true
2224
tokio.workspace = true
23-
tokio-tungstenite = "0.25.0"
25+
tokio-tungstenite = "0.26.0"
2426
tracing.workspace = true
2527

2628
[features]

v_exchanges_api_generics/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![warn(future_incompatible, let_underscore, nonstandard_style, missing_docs)]
2+
#![feature(slice_pattern)]
23

34
//! # Generic-API-Client
45
//! This is a crate for interacting with HTTP/HTTPS/WebSocket APIs.

v_exchanges_api_generics/src/websocket.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ use std::{
77
},
88
time::Duration,
99
};
10-
use tokio_tungstenite::tungstenite::protocol::frame::Payload;
1110
use futures_util::{
1211
sink::SinkExt,
1312
stream::{SplitSink, StreamExt},
1413
};
14+
use core::slice::SlicePattern;
1515
use parking_lot::Mutex as SyncMutex;
1616
use tokio::{
1717
net::TcpStream,

0 commit comments

Comments
 (0)