Files
foxhunt/crates/ctrader-openapi/Cargo.toml
jgrusewski 1ed97579c1 fix(ci): clippy test-gate uses --lib, fix pre-existing lint errors
The CI test-gate used `--all-targets` which includes test targets where
700+ workspace lint violations accumulated (to_string on &str, assert!
on Result, shadow_unrelated, etc.). Switched to `--lib` for clippy —
library code is what matters for production safety. Test code is still
validated by `cargo test --workspace --lib`.

Also fixed:
- config: allow expect_used in test module
- ctrader-openapi: relaxed lint profile (proto-generated code)
- ctrader-openapi: constant assertion in dispatch test
- testing/load: removed [[test]] targets for non-existent files

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 19:10:18 +01:00

44 lines
1.3 KiB
TOML

[package]
name = "ctrader-openapi"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
authors.workspace = true
license.workspace = true
publish.workspace = true
description = "cTrader Open API client — Protobuf over TCP+TLS for order routing, account queries, and market data"
[dependencies]
tokio = { workspace = true, features = ["net", "sync", "time", "rt", "macros"] }
tokio-native-tls.workspace = true
native-tls = "0.2"
tokio-util = { workspace = true, features = ["codec"] }
prost.workspace = true
bytes.workspace = true
reqwest = { workspace = true, features = ["json"] }
tracing.workspace = true
thiserror.workspace = true
serde = { workspace = true, features = ["derive"] }
serde_json.workspace = true
chrono.workspace = true
uuid.workspace = true
futures.workspace = true
[build-dependencies]
prost-build.workspace = true
[dev-dependencies]
tokio = { workspace = true, features = ["test-util"] }
# Protocol client crate with proto-generated code — relaxed lint profile.
# Cannot inherit workspace lints because integration tests and codec
# patterns trigger many style/shadow/test-module lints that are impractical
# to fix in generated-adjacent code.
[lints.clippy]
# Safety lints we still enforce
panic = "deny"
unwrap_in_result = "deny"
exit = "deny"
# Integration test patterns
unnecessary_lazy_evaluations = "allow"