Skip to content

Commit 95683d5

Browse files
deciduouslynitsky
authored andcommitted
workspace inheritance
1 parent 7782209 commit 95683d5

File tree

135 files changed

+2984
-1771
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+2984
-1771
lines changed

Cargo.lock

Lines changed: 112 additions & 114 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,127 @@ members = [
1111
]
1212
resolver = "2"
1313

14+
[workspace.package]
15+
authors = ["ModelFox <[email protected]>"]
16+
description = "ModelFox makes it easy for programmers to train, deploy, and monitor machine learning models."
17+
documentation = "https://docs.rs/modelfox"
18+
edition = "2021"
19+
homepage = "https://modelfox.dev"
20+
license = "MIT"
21+
repository = "https://github.com/modelfoxdotdev/modelfox"
22+
version = "0.8.0"
23+
24+
[workspace.dependencies]
25+
anyhow = { version = "1.0", features = ["backtrace"] }
26+
backtrace = "0.3"
27+
base64 = "0.13"
28+
bitvec = "1.0"
29+
buffalo = { version = "0.4", features = ["bitvec", "ndarray"] }
30+
bytes = "1.1"
31+
cbindgen = "0.23"
32+
chrono = { version = "0.4", features = ["serde"] }
33+
chrono-tz = { version = "0.6", features = ["serde"] }
34+
clap = { version = "3.1", features = ["derive"] }
35+
colored = "2.0"
36+
console_error_panic_hook = "0.1"
37+
convert_case = "0.5"
38+
csv = "1.0"
39+
digest = "0.10"
40+
dirs = "4.0"
41+
duct = "0.13"
42+
either = "1.0"
43+
erl_nif = { version = "0.5", features = ["serde"] }
44+
fast-float = "0.2"
45+
flate2 = "1.0"
46+
fnv = "1.0"
47+
futures = "0.3"
48+
futures-signals = "0.3"
49+
getrandom = { version = "0.2", features = ["js"] }
50+
glob = "0.3"
51+
hex = "0.4"
52+
http = "0.2"
53+
hyper = { version = "0.14", features = ["full"] }
54+
indexmap = { version = "1.6", features = ["serde-1"] }
55+
indoc = "1.0"
56+
insta = "1.0"
57+
itertools = "0.10"
58+
lettre = { version = "0.10.0-rc.2", default-features = false, features = ["builder", "hostname", "smtp-transport", "tokio1-rustls-tls"] }
59+
libc = "0.2.91"
60+
md-5 = "0.10"
61+
memmap = "0.7"
62+
multer = "2.0"
63+
ndarray = { version = "0.15", features = ["rayon"] }
64+
node_api = { version = "0.5", features = ["serde"] }
65+
num = "0.4"
66+
once_cell = "1.0"
67+
pem = "1.0"
68+
percent-encoding = "2.0"
69+
pinwheel = "0.2"
70+
pulldown-cmark = "0.9"
71+
pretty_assertions = "1.0"
72+
proc-macro2 = "1"
73+
pyo3 = { version = "0.16", features = ["abi3-py37", "extension-module"] }
74+
quote = "1"
75+
rand = "0.8"
76+
rand_xoshiro = "0.6"
77+
rayon = "1.5"
78+
regex = "1.5"
79+
reqwest = { version = "0.11", default-features = false, features = ["blocking", "json", "rustls-tls"] }
80+
rsa = "0.6"
81+
rust-s3 = { version = "0.31", default-features = false, features = ["tokio-rustls-tls"] }
82+
serde = { version = "1.0", features = ["derive"] }
83+
serde_bytes = "0.11"
84+
serde_json = "1.0"
85+
serde_urlencoded = "0.7"
86+
serde_yaml = "0.8"
87+
serde-wasm-bindgen = "0.4"
88+
sha-1 = "0.10"
89+
sha2 = "0.10"
90+
sqlx = { version = "0.5", default-features = false, features = ["any", "chrono", "postgres", "runtime-tokio-rustls", "sqlite"] }
91+
sunfish = "0.7"
92+
syn = { version = "1", features = ["full"] }
93+
tar = "0.4"
94+
tempfile = "3.0"
95+
textwrap = "0.15"
96+
time = "0.3"
97+
tokio = { version = "1.18", features = ["full"] }
98+
toml = "0.5"
99+
tortoise = "0.1"
100+
tracing = "0.1"
101+
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
102+
tracing-test = "0.2"
103+
tracing-wasm = "0.2"
104+
tree-sitter-highlight = "0.20"
105+
tree-sitter-javascript = "0.20"
106+
tree-sitter-rust = "0.20"
107+
url = { version = "2.2", features = ["serde"] }
108+
walkdir = "2.0"
109+
wasm-bindgen = "0.2"
110+
web-sys = "0.3"
111+
winapi = "0.3"
112+
zip = "0.6"
113+
114+
modelfox_app = { path = "crates/app" }
115+
modelfox_app_core = { path = "crates/app/core" }
116+
modelfox_charts = { path = "crates/charts" }
117+
modelfox_core = { path = "crates/core" }
118+
modelfox_features = { path = "crates/features" }
119+
modelfox_finite = { path = "crates/finite" }
120+
modelfox_id = { path = "crates/id" }
121+
modelfox_kill_chip = { path = "crates/kill_chip" }
122+
modelfox_license = { path = "crates/license" }
123+
modelfox_linear = { path = "crates/linear" }
124+
modelfox_metrics = { path = "crates/metrics" }
125+
modelfox_model = { path = "crates/model" }
126+
modelfox_number_formatter = { path = "crates/number_formatter" }
127+
modelfox_progress_counter = { path = "crates/progress_counter" }
128+
modelfox_serve = { path = "crates/serve" }
129+
modelfox_table = { path = "crates/table" }
130+
modelfox_text = { path = "crates/text" }
131+
modelfox_tree = { path = "crates/tree" }
132+
modelfox_ui = { path = "crates/ui" }
133+
modelfox_zip = { path = "crates/zip" }
134+
14135
[profile.dev.build-override]
15136
debug-assertions = false
16137
opt-level = 3

crates/app/Cargo.toml

Lines changed: 75 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
cargo-features = ["workspace-inheritance"]
2+
13
[package]
2-
edition = "2021"
3-
license = "UNLICENSED"
44
name = "modelfox_app"
5+
6+
authors = { workspace = true }
7+
edition = { workspace = true }
8+
homepage = { workspace = true }
9+
license = "UNLICENSED"
510
publish = false
6-
version = "0.0.0"
11+
repository = { workspace = true }
12+
version = { workspace = true }
713

814
[lib]
915
path = "lib.rs"
@@ -22,110 +28,112 @@ default = [
2228
"modelfox_app_login_server",
2329
"modelfox_app_model_download_server",
2430
"modelfox_app_model_edit_server",
25-
"modelfox_app_model_index_client",
31+
# "modelfox_app_model_index_client",
2632
"modelfox_app_model_index_server",
2733
"modelfox_app_monitors_edit_server",
2834
"modelfox_app_monitors_index_server",
2935
"modelfox_app_new_member_server",
30-
"modelfox_app_new_model_client",
36+
# "modelfox_app_new_model_client",
3137
"modelfox_app_new_model_server",
32-
"modelfox_app_new_monitor_client",
38+
# "modelfox_app_new_monitor_client",
3339
"modelfox_app_new_monitor_server",
3440
"modelfox_app_new_organization_server",
3541
"modelfox_app_new_repo_server",
3642
"modelfox_app_organization_index_server",
3743
"modelfox_app_organization_member_server",
38-
"modelfox_app_playground_client",
44+
# "modelfox_app_playground_client",
3945
"modelfox_app_playground_server",
40-
"modelfox_app_production_class_metrics_client",
46+
# "modelfox_app_production_class_metrics_client",
4147
"modelfox_app_production_class_metrics_server",
42-
"modelfox_app_production_metrics_index_client",
48+
# "modelfox_app_production_metrics_index_client",
4349
"modelfox_app_production_metrics_index_server",
44-
"modelfox_app_production_prediction_client",
50+
# "modelfox_app_production_prediction_client",
4551
"modelfox_app_production_prediction_server",
4652
"modelfox_app_production_predictions_index_server",
47-
"modelfox_app_production_stats_column_client",
53+
# "modelfox_app_production_stats_column_client",
4854
"modelfox_app_production_stats_column_server",
49-
"modelfox_app_production_stats_index_client",
55+
# "modelfox_app_production_stats_index_client",
5056
"modelfox_app_production_stats_index_server",
5157
"modelfox_app_repo_edit_server",
5258
"modelfox_app_repo_index_server",
5359
"modelfox_app_track_server",
54-
"modelfox_app_training_class_metrics_client",
60+
# "modelfox_app_training_class_metrics_client",
5561
"modelfox_app_training_class_metrics_server",
5662
"modelfox_app_training_grid_index_server",
5763
"modelfox_app_training_grid_item_server",
5864
"modelfox_app_training_metrics_index_server",
59-
"modelfox_app_training_metrics_precision_recall_client",
65+
# "modelfox_app_training_metrics_precision_recall_client",
6066
"modelfox_app_training_metrics_precision_recall_server",
61-
"modelfox_app_training_metrics_roc_client",
67+
# "modelfox_app_training_metrics_roc_client",
6268
"modelfox_app_training_metrics_roc_server",
63-
"modelfox_app_training_stats_column_client",
69+
# "modelfox_app_training_stats_column_client",
6470
"modelfox_app_training_stats_column_server",
6571
"modelfox_app_training_stats_index_server",
66-
"modelfox_app_tuning_client",
72+
# "modelfox_app_tuning_client",
6773
"modelfox_app_tuning_server",
6874
"modelfox_app_user_server",
6975
]
7076

7177
[build-dependencies]
72-
anyhow = { version = "1", features = ["backtrace"] }
73-
sunfish = "0.7"
74-
modelfox_app_model_index_client = { path = "routes/repos/_/models/_/index/client", optional = true, artifact = "bin", target = "wasm32-unknown-unknown" }
75-
modelfox_app_new_model_client = { path = "routes/repos/_/models/new/client", optional = true, artifact = "bin", target = "wasm32-unknown-unknown" }
76-
modelfox_app_new_monitor_client = { path = "routes/repos/_/models/_/monitors/new/client", optional = true, artifact = "bin", target = "wasm32-unknown-unknown" }
77-
modelfox_app_playground_client = { path = "routes/repos/_/models/_/playground/client", optional = true, artifact = "bin", target = "wasm32-unknown-unknown" }
78-
modelfox_app_production_class_metrics_client = { path = "routes/repos/_/models/_/production_metrics/class_metrics/client", optional = true, artifact = "bin", target = "wasm32-unknown-unknown" }
79-
modelfox_app_production_metrics_index_client = { path = "routes/repos/_/models/_/production_metrics/index/client", optional = true, artifact = "bin", target = "wasm32-unknown-unknown" }
80-
modelfox_app_production_prediction_client = { path = "routes/repos/_/models/_/production_predictions/predictions/_/client", optional = true, artifact = "bin", target = "wasm32-unknown-unknown" }
81-
modelfox_app_production_stats_column_client = { path = "routes/repos/_/models/_/production_stats/columns/_/client", optional = true, artifact = "bin", target = "wasm32-unknown-unknown" }
82-
modelfox_app_production_stats_index_client = { path = "routes/repos/_/models/_/production_stats/index/client", optional = true, artifact = "bin", target = "wasm32-unknown-unknown" }
83-
modelfox_app_training_class_metrics_client = { path = "routes/repos/_/models/_/training_metrics/class_metrics/client", optional = true, artifact = "bin", target = "wasm32-unknown-unknown" }
84-
modelfox_app_training_metrics_precision_recall_client = { path = "routes/repos/_/models/_/training_metrics/precision_recall/client", optional = true, artifact = "bin", target = "wasm32-unknown-unknown" }
85-
modelfox_app_training_metrics_roc_client = { path = "routes/repos/_/models/_/training_metrics/roc/client", optional = true, artifact = "bin", target = "wasm32-unknown-unknown" }
86-
modelfox_app_training_stats_column_client = { path = "routes/repos/_/models/_/training_stats/columns/_/client", optional = true, artifact = "bin", target = "wasm32-unknown-unknown" }
87-
modelfox_app_tuning_client = { path = "routes/repos/_/models/_/tuning/client", optional = true, artifact = "bin", target = "wasm32-unknown-unknown" }
78+
anyhow = { workspace = true }
79+
sunfish = { workspace = true }
80+
modelfox_app_model_index_client = { path = "routes/repos/_/models/_/index/client", artifact = "bin", target = "wasm32-unknown-unknown" }
81+
modelfox_app_new_model_client = { path = "routes/repos/_/models/new/client", artifact = "bin", target = "wasm32-unknown-unknown" }
82+
modelfox_app_new_monitor_client = { path = "routes/repos/_/models/_/monitors/new/client", artifact = "bin", target = "wasm32-unknown-unknown" }
83+
modelfox_app_playground_client = { path = "routes/repos/_/models/_/playground/client", artifact = "bin", target = "wasm32-unknown-unknown" }
84+
modelfox_app_production_class_metrics_client = { path = "routes/repos/_/models/_/production_metrics/class_metrics/client", artifact = "bin", target = "wasm32-unknown-unknown" }
85+
modelfox_app_production_metrics_index_client = { path = "routes/repos/_/models/_/production_metrics/index/client", artifact = "bin", target = "wasm32-unknown-unknown" }
86+
modelfox_app_production_prediction_client = { path = "routes/repos/_/models/_/production_predictions/predictions/_/client", artifact = "bin", target = "wasm32-unknown-unknown" }
87+
modelfox_app_production_stats_column_client = { path = "routes/repos/_/models/_/production_stats/columns/_/client", artifact = "bin", target = "wasm32-unknown-unknown" }
88+
modelfox_app_production_stats_index_client = { path = "routes/repos/_/models/_/production_stats/index/client", artifact = "bin", target = "wasm32-unknown-unknown" }
89+
modelfox_app_training_class_metrics_client = { path = "routes/repos/_/models/_/training_metrics/class_metrics/client", artifact = "bin", target = "wasm32-unknown-unknown" }
90+
modelfox_app_training_metrics_precision_recall_client = { path = "routes/repos/_/models/_/training_metrics/precision_recall/client", artifact = "bin", target = "wasm32-unknown-unknown" }
91+
modelfox_app_training_metrics_roc_client = { path = "routes/repos/_/models/_/training_metrics/roc/client", artifact = "bin", target = "wasm32-unknown-unknown" }
92+
modelfox_app_training_stats_column_client = { path = "routes/repos/_/models/_/training_stats/columns/_/client", artifact = "bin", target = "wasm32-unknown-unknown" }
93+
modelfox_app_tuning_client = { path = "routes/repos/_/models/_/tuning/client", artifact = "bin", target = "wasm32-unknown-unknown" }
8894

8995
[dependencies]
90-
anyhow = { version = "1", features = ["backtrace"] }
91-
base64 = "0.13"
92-
chrono = { version = "0.4", features = ["serde"] }
93-
chrono-tz = { version = "0.6", features = ["serde"] }
94-
clap = { version = "3", features = ["derive"] }
95-
futures = "0.3"
96-
glob = "0.3"
97-
http = "0.2"
98-
hyper = { version = "0.14", features = ["full"] }
99-
lettre = { version = "0.10.0-rc.2", default-features = false, features = ["builder", "hostname", "smtp-transport", "tokio1-rustls-tls"] }
100-
ndarray = { version = "0.15", features = ["rayon"] }
101-
num = "0.4"
102-
once_cell = "1"
103-
rand = "0.8"
104-
rayon = "1.5"
105-
reqwest = { version = "0.11", default-features = false, features = ["blocking", "json", "rustls-tls"] }
106-
serde = { version = "1", features = ["derive"] }
107-
serde_json = "1"
108-
sha2 = "0.10"
109-
sqlx = { version = "0.5", default-features = false, features = ["any", "chrono", "postgres", "runtime-tokio-rustls", "sqlite"] }
110-
sunfish = "0.7"
96+
anyhow = { workspace = true }
97+
base64 = { workspace = true }
98+
chrono = { workspace = true }
99+
chrono-tz = { workspace = true }
100+
clap = { workspace = true }
101+
futures = { workspace = true }
102+
glob = { workspace = true }
103+
http = { workspace = true }
104+
hyper = { workspace = true }
105+
lettre = { workspace = true }
106+
ndarray = { workspace = true }
107+
num = { workspace = true }
108+
once_cell = { workspace = true }
109+
rand = { workspace = true }
110+
rayon = { workspace = true }
111+
reqwest = { workspace = true }
112+
serde = { workspace = true }
113+
serde_json = { workspace = true }
114+
sha2 = { workspace = true }
115+
sqlx = { workspace = true }
116+
sunfish = { workspace = true }
117+
time = { workspace = true }
118+
tokio = { workspace = true }
119+
toml = { workspace = true }
120+
tracing = { workspace = true }
121+
url = { workspace = true }
122+
123+
modelfox_charts = { workspace = true }
124+
modelfox_core = { workspace = true }
125+
modelfox_id = { workspace = true }
126+
modelfox_metrics = { workspace = true }
127+
modelfox_model = { workspace = true }
128+
modelfox_serve = { workspace = true }
129+
modelfox_table = { workspace = true }
130+
modelfox_zip = { workspace = true }
131+
111132
modelfox_app_context = { path = "context" }
112133
modelfox_app_core = { path = "core" }
113134
modelfox_app_layouts = { path = "layouts" }
114135
modelfox_app_migrations = { path = "migrations" }
115136
modelfox_app_monitor_event = { path = "monitor_event" }
116-
modelfox_charts = { path = "../charts" }
117-
modelfox_core = { path = "../core" }
118-
modelfox_id = { path = "../id" }
119-
modelfox_metrics = { path = "../metrics" }
120-
modelfox_model = { path = "../model" }
121-
modelfox_serve = { path = "../serve" }
122-
modelfox_table = { path = "../table" }
123-
modelfox_zip = { path = "../zip" }
124-
time = "0.3"
125-
tokio = { version = "1", features = ["full"] }
126-
toml = "0.5"
127-
tracing = "0.1"
128-
url = { version = "2", features = ["serde"] }
129137

130138
modelfox_app_alerts_server = { path = "routes/repos/_/models/_/alerts/_/server", optional = true }
131139
modelfox_app_alerts_index_server = { path = "routes/repos/_/models/_/alerts/index/server", optional = true }

crates/app/context/Cargo.toml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
1+
cargo-features = ["workspace-inheritance"]
2+
13
[package]
2-
edition = "2021"
34
name = "modelfox_app_context"
5+
6+
authors = { workspace = true }
7+
edition = { workspace = true }
8+
homepage = { workspace = true }
9+
license = "UNLICENSED"
410
publish = false
5-
version = "0.0.0"
11+
repository = { workspace = true }
12+
version = { workspace = true }
613

714
[lib]
815
path = "lib.rs"
916

1017
[dependencies]
11-
anyhow = { version = "1", features = ["backtrace"] }
12-
sunfish = "0.7"
13-
modelfox_app_core = { path = "../core" }
18+
anyhow = { workspace = true }
19+
sunfish = { workspace = true }
20+
21+
modelfox_app_core = { path = "../core" }

0 commit comments

Comments
 (0)