Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 17 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 1 addition & 23 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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" }
Loading