Skip to content

Commit e2b8b62

Browse files
committed
removed core folder and crate and update core-pre crate to core
1 parent 0410802 commit e2b8b62

98 files changed

Lines changed: 3010 additions & 8213 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

BinaryOptionsToolsUni/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ pub mod platforms;
33
pub mod tracing;
44
pub mod utils;
55

6+
#[cfg(test)]
7+
mod test;
8+
69
// Re-export main types for easier access
710
pub use platforms::pocketoption::{
811
client::PocketOption,

BinaryOptionsToolsUni/src/test.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
use bo2_macros::uniffi_doc;
2+
3+
4+
#[allow(dead_code)]
5+
#[uniffi_doc(name = "test", path = "BinaryOptionsToolsUni/docs_json/test.json")]
6+
struct Test {
7+
// Something
8+
}

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ resolver = "2"
33

44
members = [
55
"crates/core",
6-
"crates/core-pre",
76
"crates/macros",
87
"crates/binary_options_tools",
98
"BinaryOptionsToolsV2/rust",

crates/binary_options_tools/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ include = ["src/**/*", "data/**/*", "Cargo.toml", "Readme.md", "LICENSE"]
1717
anyhow = "1.0.98"
1818
async-trait = "0.1.89"
1919
chrono = { version = "0.4.35", features = ["serde"] }
20-
binary-options-tools-core = { path = "../core", version = "0.2.0" }
20+
# binary-options-tools-core = { path = "../core", version = "0.2.0" }
2121
# trading-macros = { path = "../macros" }
2222
futures-util = "0.3.30"
2323
reqwest = { version = "0.12.1", default-features = false, features = ["rustls-tls", "json"] }
@@ -27,7 +27,7 @@ tokio = { version = "1.49.0", features = ["rt-multi-thread", "macros", "net", "t
2727
tokio-tungstenite = { version = "0.28.0", default-features = false, features = ["rustls-tls-webpki-roots", "connect", "handshake"] }
2828
url = "2.5.0"
2929
uuid = { version = "1.7.0", features = ["v4", "fast-rng", "serde"] }
30-
binary-options-tools-core-pre = { path = "../core-pre", version = "0.2.0" }
30+
binary-options-tools-core = { path = "../core", version = "0.2.0" }
3131
binary-options-tools-macros = { path = "../macros", version = "0.2.0" }
3232
rand = "0.9.2"
3333
tracing = "0.1.40"

crates/binary_options_tools/examples/pending_trades_example.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ use binary_options_tools::pocketoption::{
3030
state::{State, StateBuilder},
3131
types::PendingOrder,
3232
};
33-
use binary_options_tools_core_pre::reimports::Message;
34-
use binary_options_tools_core_pre::traits::{ApiModule, RunnerCommand};
33+
use binary_options_tools_core::reimports::Message;
34+
use binary_options_tools_core::traits::{ApiModule, RunnerCommand};
3535
use rust_decimal::Decimal;
3636
use tokio::{
3737
sync::Mutex,

crates/binary_options_tools/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::pocketoption::error::PocketError;
2-
use binary_options_tools_core::error::Error as CoreError;
2+
use binary_options_tools_core::error::CoreError;
33
use rust_decimal::Decimal;
44
use std::num::ParseFloatError;
55

crates/binary_options_tools/src/expertoptions/action.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use binary_options_tools_core_pre::{error::CoreResult, reimports::Message};
1+
use binary_options_tools_core::{error::CoreResult, reimports::Message};
22
use serde::{Deserialize, Serialize};
33
use serde_json::Value;
44

crates/binary_options_tools/src/expertoptions/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::{sync::Arc, time::Duration};
22

3-
use binary_options_tools_core_pre::{
3+
use binary_options_tools_core::{
44
builder::ClientBuilder,
55
client::Client,
66
error::CoreError,

crates/binary_options_tools/src/expertoptions/connect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::sync::Arc;
22

3-
use binary_options_tools_core_pre::{
3+
use binary_options_tools_core::{
44
connector::{Connector as ConnectorTrait, ConnectorError, ConnectorResult},
55
reimports::{
66
connect_async_tls_with_config, generate_key, Connector, MaybeTlsStream, Request,

crates/binary_options_tools/src/expertoptions/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use binary_options_tools_core_pre::error::CoreError;
1+
use binary_options_tools_core::error::CoreError;
22

33
#[derive(thiserror::Error, Debug)]
44
pub enum ExpertOptionsError {

0 commit comments

Comments
 (0)