diff --git a/Cargo.toml b/Cargo.toml index 42e94b2..706f4d2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,22 +1,11 @@ -[package] -name = "gateway" -version = "0.1.0" -edition = "2021" +[workspace] -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +members = [ +"xps" +] -[dependencies] -tonic = "0.9" -prost = "0.11" -http = "0.2.9" -tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] } -tokio-stream = { version = "0.1", features = ["net"] } -async-stream = "0.2" -clap = { version = "4.3.21", features = ["derive"] } -tonic-web = "0.9.2" -tower-http = { version = "0.4.0", default-features = false, features = [ - "cors", -] } +exclude = [ ] -[build-dependencies] -tonic-build = "0.9" +# Make the feature resolver explicit. +# See https://doc.rust-lang.org/edition-guide/rust-2021/default-cargo-resolver.html#details +resolver = "2" diff --git a/xps/Cargo.toml b/xps/Cargo.toml new file mode 100644 index 0000000..42e94b2 --- /dev/null +++ b/xps/Cargo.toml @@ -0,0 +1,22 @@ +[package] +name = "gateway" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +tonic = "0.9" +prost = "0.11" +http = "0.2.9" +tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] } +tokio-stream = { version = "0.1", features = ["net"] } +async-stream = "0.2" +clap = { version = "4.3.21", features = ["derive"] } +tonic-web = "0.9.2" +tower-http = { version = "0.4.0", default-features = false, features = [ + "cors", +] } + +[build-dependencies] +tonic-build = "0.9" diff --git a/Dockerfile b/xps/Dockerfile similarity index 100% rename from Dockerfile rename to xps/Dockerfile diff --git a/README.md b/xps/README.md similarity index 100% rename from README.md rename to xps/README.md diff --git a/build.rs b/xps/build.rs similarity index 100% rename from build.rs rename to xps/build.rs diff --git a/proto/inbox_v1.proto b/xps/proto/inbox_v1.proto similarity index 100% rename from proto/inbox_v1.proto rename to xps/proto/inbox_v1.proto diff --git a/src/inbox/mod.rs b/xps/src/inbox/mod.rs similarity index 100% rename from src/inbox/mod.rs rename to xps/src/inbox/mod.rs diff --git a/src/inbox/v1.rs b/xps/src/inbox/v1.rs similarity index 100% rename from src/inbox/v1.rs rename to xps/src/inbox/v1.rs diff --git a/src/main.rs b/xps/src/main.rs similarity index 100% rename from src/main.rs rename to xps/src/main.rs