diff --git a/Cargo.lock b/Cargo.lock index 1f9c694f..ef75d91a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -897,7 +897,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "117725a109d387c937a1533ce01b450cbde6b88abceea8473c4d7a85853cda3c" dependencies = [ "lazy_static", - "windows-sys 0.52.0", + "windows-sys 0.48.0", ] [[package]] @@ -2606,7 +2606,8 @@ checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" [[package]] name = "longbridge" version = "5.5.0" -source = "git+https://github.com/longbridge/openapi?rev=4fddc66752b47444a252582e99af0f022eea8467#4fddc66752b47444a252582e99af0f022eea8467" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce763adf7f1c01851167b35243e81d00b19e4f625271a943e2d8b3283534b5e1" dependencies = [ "anyhow", "bitflags 2.10.0", @@ -2659,7 +2660,8 @@ dependencies = [ [[package]] name = "longbridge-candlesticks" version = "5.5.0" -source = "git+https://github.com/longbridge/openapi?rev=4fddc66752b47444a252582e99af0f022eea8467#4fddc66752b47444a252582e99af0f022eea8467" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae65906ed448aad53b2d6fa897550b5a37c01d51dbfcc815004d71a20877ebba" dependencies = [ "bitflags 2.10.0", "num-traits", @@ -2671,7 +2673,8 @@ dependencies = [ [[package]] name = "longbridge-geo" version = "5.5.0" -source = "git+https://github.com/longbridge/openapi?rev=4fddc66752b47444a252582e99af0f022eea8467#4fddc66752b47444a252582e99af0f022eea8467" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfea4c2faeee922be3b21bce9890670f8edf50215a8dc16d7576f778734ea14b" dependencies = [ "reqwest", ] @@ -2679,7 +2682,8 @@ dependencies = [ [[package]] name = "longbridge-httpcli" version = "5.5.0" -source = "git+https://github.com/longbridge/openapi?rev=4fddc66752b47444a252582e99af0f022eea8467#4fddc66752b47444a252582e99af0f022eea8467" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f1b0fdb53209400dc6557fe162b168613378b53bac636db8616e0eb87467e0f" dependencies = [ "dotenv", "eventsource-stream", @@ -2702,7 +2706,8 @@ dependencies = [ [[package]] name = "longbridge-oauth" version = "5.5.0" -source = "git+https://github.com/longbridge/openapi?rev=4fddc66752b47444a252582e99af0f022eea8467#4fddc66752b47444a252582e99af0f022eea8467" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00551f12802e25d9c2b265f35849cb55f647f3cbbaf1377b14342cae3e428e73" dependencies = [ "dirs 6.0.0", "futures-util", @@ -2719,7 +2724,8 @@ dependencies = [ [[package]] name = "longbridge-proto" version = "5.5.0" -source = "git+https://github.com/longbridge/openapi?rev=4fddc66752b47444a252582e99af0f022eea8467#4fddc66752b47444a252582e99af0f022eea8467" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fca32cfd4a5301dec5f1fb7bd69bb10bd9154bf8556d3312b1a0f6fbf497e629" dependencies = [ "prost 0.14.3", "serde", @@ -2802,7 +2808,8 @@ dependencies = [ [[package]] name = "longbridge-wscli" version = "5.5.0" -source = "git+https://github.com/longbridge/openapi?rev=4fddc66752b47444a252582e99af0f022eea8467#4fddc66752b47444a252582e99af0f022eea8467" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b03ed3bfb06f03646439de7e8dc2a0dde6b4f6145409eb057ca8344b79ad044" dependencies = [ "byteorder", "flate2", @@ -3668,7 +3675,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "27c6023962132f4b30eb4c172c91ce92d933da334c59c23cddee82358ddafb0b" dependencies = [ "anyhow", - "itertools 0.11.0", + "itertools 0.14.0", "proc-macro2", "quote", "syn 2.0.114", @@ -6056,7 +6063,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.61.2", + "windows-sys 0.48.0", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 2b114ef0..90e0c578 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,7 +37,7 @@ crossterm = { version = "0.29", features = ["event-stream"] } dashmap = "6.1" dirs = "5.0" csv = "1" -longbridge = "5.3.0" +longbridge = "5.5" longbridge-ai-acp = { git = "https://github.com/longbridge/longbridge-ai-acp.git", branch = "main" } futures = "0.3.28" open = "5" @@ -139,25 +139,3 @@ needless_pass_by_value = "allow" pedantic = { level = "deny", priority = -1 } too_many_arguments = "allow" too_many_lines = "allow" - -# TEMPORARY: `TradeContext::risk_assessment` is not in a released SDK yet -# (longbridge/openapi#625). Remove this section and bump `longbridge` above to -# the release that contains it. Only `longbridge` is patched: it is the sole -# crate from that workspace this package depends on directly, and its sibling -# crates come along from the same git source. -# -# Pinned by `rev`, not `branch`: a branch pin stops resolving once #625 merges -# and its branch is deleted; a warm ~/.cargo/git cache hides that locally, CI -# and release builds do not. The full 40-char SHA is preferred over an -# abbreviation because cargo can then fetch it directly by SHA instead of -# resolving the prefix first. -# -# NOTE: `longbridge = "5.3.0"` above is a `^5.3.0` requirement, and crates.io -# 5.4.0 is already published WITHOUT this API — removing the patch without -# bumping the requirement resolves to a version that does not compile. -# -# NOTE: this patch is not only the new API — it also moves the SDK 5.3.0 -> 5.4.0 -# (oauth2 4.4 -> 5.0, reqwest 0.11 -> 0.12, PKCE, typed `Error::OAuth`), which is -# where most of the Cargo.lock churn comes from. -[patch.crates-io] -longbridge = { git = "https://github.com/longbridge/openapi", rev = "4fddc66752b47444a252582e99af0f022eea8467" }