[package]
edition = "2024"
rust-version = "1.95"
name = "oanda-client"
version = "1.1.0"
build = false
include = [
"/examples/**",
"/src/**",
"/tests/**",
"/CHANGELOG.md",
"/Cargo.lock",
"/Cargo.toml",
"/LICENSE",
"/README.md",
"/SECURITY.md",
]
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An async, provider-native Rust client for OANDA's v20 REST API"
homepage = "https://github.com/SharurTrading/oanda-rs"
documentation = "https://docs.rs/oanda-client"
readme = "README.md"
keywords = [
"oanda",
"trading",
"forex",
"api-client",
]
categories = [
"api-bindings",
"asynchronous",
"network-programming",
]
license = "MIT-0"
repository = "https://github.com/SharurTrading/oanda-rs"
[features]
default = []
live-tests = []
[lib]
name = "oanda_client"
path = "src/lib.rs"
[[example]]
name = "exit_reserve"
path = "examples/exit_reserve.rs"
[[example]]
name = "practice_account"
path = "examples/practice_account.rs"
[[test]]
name = "admission_scope"
path = "tests/admission_scope.rs"
[[test]]
name = "client_contract"
path = "tests/client_contract.rs"
[[test]]
name = "decimal_precision"
path = "tests/decimal_precision.rs"
[[test]]
name = "definition_wire"
path = "tests/definition_wire.rs"
[[test]]
name = "enum_variants"
path = "tests/enum_variants.rs"
[[test]]
name = "operation_matrix"
path = "tests/operation_matrix.rs"
[[test]]
name = "practice_read_only"
path = "tests/practice_read_only.rs"
[[test]]
name = "tagged_variants"
path = "tests/tagged_variants.rs"
[dependencies.chrono]
version = "0.4.45"
features = ["serde"]
[dependencies.futures-util]
version = "0.3.34"
[dependencies.percent-encoding]
version = "2.3.2"
[dependencies.reqwest]
version = "0.13.5"
features = [
"json",
"rustls",
"stream",
]
default-features = false
[dependencies.rust_decimal]
version = "1.43.0"
features = ["serde-str"]
[dependencies.serde]
version = "1.0.229"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.151"
features = ["arbitrary_precision"]
[dependencies.thiserror]
version = "2.0.21"
[dependencies.tokio]
version = "1.53.1"
features = [
"macros",
"sync",
"time",
]
[dependencies.tower-layer]
version = "0.3.3"
[dependencies.tower-service]
version = "0.3.3"
[dependencies.url]
version = "2.5.8"
[dev-dependencies.reqwest]
version = "0.13.5"
features = ["http2"]
default-features = false
[dev-dependencies.tokio]
version = "1.53.1"
features = [
"macros",
"rt",
"net",
"io-util",
"test-util",
]
[lints.clippy]
await_holding_lock = "deny"
expect_used = "deny"
panic = "deny"
unwrap_used = "deny"
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"