Browse Source
Convert to lib+bin crate and fix axum route parameter syntax for 0.7
Convert to lib+bin crate and fix axum route parameter syntax for 0.7
Adds lib.rs re-exporting all public modules for integration test access.
Refactors main.rs to import from seaweed_volume:: lib crate. Fixes route
parameter syntax from {path} (axum 0.8) to :path (axum 0.7) — the old
brace syntax silently failed to match requests.
rust-volume-server
3 changed files with 38 additions and 33 deletions
-
18seaweed-volume/src/lib.rs
-
40seaweed-volume/src/main.rs
-
13seaweed-volume/src/server/volume_server.rs
@ -0,0 +1,18 @@ |
|||
pub mod config;
|
|||
pub mod storage;
|
|||
pub mod security;
|
|||
pub mod server;
|
|||
pub mod metrics;
|
|||
|
|||
/// Generated protobuf modules.
|
|||
pub mod pb {
|
|||
pub mod remote_pb {
|
|||
tonic::include_proto!("remote_pb");
|
|||
}
|
|||
pub mod volume_server_pb {
|
|||
tonic::include_proto!("volume_server_pb");
|
|||
}
|
|||
pub mod master_pb {
|
|||
tonic::include_proto!("master_pb");
|
|||
}
|
|||
}
|
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue