forked from avhz/RustQuant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
136 lines (108 loc) · 4.56 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
## GENERAL CONFIGURATION
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[package]
name = "RustQuant"
authors = ["avhz <[email protected]>"]
description = "A Rust library for quantitative finance tools."
version = "0.0.23"
edition = "2021"
readme = "README.md"
repository = "https://github.com/avhz/RustQuant"
keywords = [
"finance",
"quantitative",
"option-pricing",
"statistics",
"quantlib",
]
categories = ["finance", "mathematics", "science", "algorithms", "simulation"]
license = "GPL-3.0-or-later"
[profile.release]
debug = true
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
## DEPENDENCIES
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# num = "0.4.0" # https://docs.rs/num/latest/num/
# once_cell = "1.18.0" # https://docs.rs/once_cell/latest/once_cell/
# csv = "1.1.6" # https://docs.rs/csv/latest/csv/
# tempfile = "3.5.0" # https://docs.rs/tempfile/latest/tempfile/
[dependencies]
nalgebra = "0.32.2" # https://docs.rs/nalgebra/latest/nalgebra/
ndarray = "0.15.6" # https://docs.rs/ndarray/latest/ndarray/
num = "0.4.1"
num-complex = "0.4.2" # https://docs.rs/num-complex/latest/num_complex/
plotters = "0.3.4" # https://docs.rs/plotters/latest/plotters/
rand = "0.8.5" # https://docs.rs/rand/latest/rand/
rand_distr = "0.4.3" # https://docs.rs/rand_distr/latest/rand_distr/
rayon = "1.6.0" # https://docs.rs/rayon/latest/rayon/
serde = "1.0.163" # https://docs.rs/serde/latest/serde
serde_json = "1.0.96" # https://docs.rs/serde_json/latest/serde_json
statrs = "0.16.0" # https://docs.rs/statrs/latest/statrs/
time = "0.3.20" # https://docs.rs/time/latest/time/
yahoo_finance_api = "2.0.0" # https://docs.rs/yahoo-finance-api/latest/yahoo_finance_api/
[dev-dependencies]
finitediff = "0.1.4" # https://docs.rs/finitediff/latest/finitediff/
memuse = "0.2.1" # https://docs.rs/memuse/latest/memuse/
autodiff = "0.7.0" # https://docs.rs/autodiff/latest/autodiff/
[dependencies.crossterm] # https://docs.rs/crossterm/latest/crossterm/
version = "0.26.1"
optional = true
[dependencies.eyre] # https://docs.rs/eyre/latest/eyre/
version = "0.6.8"
optional = true
[dependencies.log] # https://docs.rs/log/latest/log/
version = "0.4.19"
optional = true
[dependencies.polars] # https://docs.rs/polars/latest/polars/
version = "0.30.0"
optional = true
features = ["serde", "json", "parquet", "dtype-struct", "dtype-date", "lazy"]
[dependencies.tokio] # https://docs.rs/tokio/latest/tokio/
version = "1.28.1"
optional = true
features = ["macros", "rt-multi-thread"]
[dependencies.tokio-test] # https://docs.rs/tokio-test/latest/tokio_test/
version = "0.4.2"
optional = true
[dependencies.tui] # https://docs.rs/tui/latest/tui/
version = "0.19.0"
optional = true
[dependencies.tui-logger] # https://docs.rs/tui-logger/latest/tui_logger/
version = "0.9.2"
optional = true
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
## FEATURES
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[features]
## This feature is used to enable the use of the `data` module.
## It is disabled by default, since the addition of Polars
## increases the compilation time substantially.
data = ["dep:polars", "dep:tokio", "dep:tokio-test"]
## This feature is used to enable the use of the `interactive` module.
interactive = ["dep:tui", "dep:tokio", "dep:tui-logger", "dep:crossterm", "dep:eyre", "dep:log"]
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
## EXAMPLES
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[[example]]
name = "yahoo_finance"
required-features = ["data"]
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
## TERMINAL USER INTERFACE
## This is simply a plan for the future.
##
## Run it: cargo run --features=interactive
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[[bin]]
name = "RustQuant"
path = "src/interactive/main.rs"
required-features = ["interactive"]
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
## PYTHON BINDINGS
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# [lib]
# name = "RustQuant"
# crate-type = ["cdylib"]
# [dependencies.pyo3]
# version = "0.19.0"
# features = ["abi3-py37", "extension-module"]