Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 57fbf31

Browse files
committed
restructure
ok separated config now
1 parent e08399d commit 57fbf31

45 files changed

Lines changed: 256 additions & 261 deletions

Some content is hidden

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

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"yaml.schemas": {
3-
"./src/config/conductor.schema.json": "*.yaml"
3+
"./crates/config/conductor.schema.json": "*.yaml"
44
},
55
"rust-analyzer.linkedProjects": ["./Cargo.toml"]
66
}

Cargo.lock

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

Cargo.toml

Lines changed: 5 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,11 @@
1-
[package]
2-
name = "conductor"
3-
version = "0.1.0"
4-
edition = "2021"
5-
default-run = "conductor"
1+
[workspace]
2+
members = ["crates/*"]
3+
resolver = "2"
64

7-
[[bin]]
8-
name = "conductor"
9-
path = "src/main.rs"
10-
bench = false
11-
12-
[[test]]
13-
name = "generate-config-schema"
14-
path = "src/config/generate-json-schema.rs"
15-
bench = false
16-
17-
[dependencies]
5+
[workspace.dependencies]
6+
futures = "0.3.29"
187
serde = { version = "1.0.192", features = ["derive"] }
198
serde_json = "1.0.108"
209
tokio = { version = "1.34.0", features = ["macros", "rt-multi-thread"] }
2110
hyper = { version = "0.14.27", features = ["http1", "http2", "client"] }
22-
axum = { version = "0.6.20", features = ["headers"] }
23-
serde_yaml = "0.9.27"
2411
tracing = "0.1.40"
25-
tracing-subscriber = "0.3.18"
26-
async-trait = "0.1.74"
27-
hyper-tls = "0.5.0"
28-
axum-macros = "0.3.8"
29-
tokio-util = { version = "0.7.10", features = ["io", "compat"] }
30-
tower-http = { version = "0.4.4", features = ["cors"] }
31-
http = "0.2.11"
32-
mime = "0.3.17"
33-
url = "2.4.1"
34-
graphql-parser = "0.4.0"
35-
futures = "0.3.29"
36-
axum-test = "13.1.1"
37-
openssl = { version = "0.10", features = ["vendored"] }
38-
schemars = "0.8.16"
39-
40-
[dev-dependencies]
41-
criterion = { version = "0.5.1", features = ["html_reports"] }
42-
httpmock = "0.6"
43-
44-
[lib]
45-
bench = false
46-
47-
[[bench]]
48-
name = "bench"
49-
harness = false

crates/benches/Cargo.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[package]
2+
name = "benches"
3+
version = "0.0.0"
4+
edition = "2021"
5+
6+
[dependencies]
7+
criterion = { version = "0.5.1", features = ["html_reports"] }
8+
conductor = { path = "../conductor" }
9+
futures = { workspace = true }
10+
serde = { workspace = true }
11+
serde_json = { workspace = true }
12+
tokio = { workspace = true }
13+
hyper = { workspace = true }
14+
15+
[[bench]]
16+
name = "bench"
17+
path = "bench.rs"
18+
harness = false

crates/conductor/Cargo.toml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[package]
2+
name = "conductor"
3+
version = "0.1.0"
4+
edition = "2021"
5+
default-run = "conductor"
6+
7+
[[bin]]
8+
name = "conductor"
9+
path = "src/main.rs"
10+
bench = false
11+
12+
[dependencies]
13+
serde = { workspace = true }
14+
serde_json = { workspace = true }
15+
tokio = { workspace = true }
16+
hyper = { workspace = true }
17+
conductor_config = { path = "../config" }
18+
axum = { version = "0.6.20", features = ["headers"] }
19+
tracing = { workspace = true }
20+
tracing-subscriber = "0.3.18"
21+
async-trait = "0.1.74"
22+
hyper-tls = "0.5.0"
23+
axum-macros = "0.3.8"
24+
tokio-util = { version = "0.7.10", features = ["io", "compat"] }
25+
tower-http = { version = "0.4.4", features = ["cors"] }
26+
http = "0.2.11"
27+
mime = "0.3.17"
28+
url = "2.4.1"
29+
graphql-parser = "0.4.0"
30+
futures = { workspace = true }
31+
axum-test = "13.1.1"
32+
openssl = { version = "0.10", features = ["vendored"] }
33+
34+
[dev-dependencies]
35+
httpmock = "0.6"
36+
37+
[lib]
38+
path = "src/lib.rs"

src/endpoint/endpoint_runtime.rs renamed to crates/conductor/src/endpoint/endpoint_runtime.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use crate::{
2-
config::EndpointDefinition,
32
graphql_utils::GraphQLResponse,
43
plugins::{flow_context::FlowContext, plugin_manager::PluginManager},
54
source::base_source::{SourceError, SourceService},
@@ -8,6 +7,7 @@ use axum::{
87
body::{Body, BoxBody},
98
response::IntoResponse,
109
};
10+
use conductor_config::EndpointDefinition;
1111
use http::StatusCode;
1212
use std::sync::Arc;
1313

0 commit comments

Comments
 (0)