Skip to content
Clone

chore(workspace): register lib/gitauth, lib/gitlfs, lib/gitsmart, lib/gitssh, lib/gitsync, lib/obs, lib/webapi

zhenyi committed
parent 9fd4a21 commit 43428ed Browse files

4 files changed

+50 −3

File tree 4
Added lib/gitlfs/lib.rs View lib/gitlfs/lib.rs
@@ -0,0 +1,12 @@
1//! LFS large-file storage core abstraction.
2//!
3//! Provides content-addressed (SHA-256 oid) object persistence over
4//! `lib/storage`, decoupled from any Git protocol layer.
5
6pub mod error;
7pub mod oid;
8pub mod store;
9
10pub use error::LfsError;
11pub use oid::LfsOid;
12pub use store::{DefaultLfsStore, LfsObjectStore};
No newline at end of file
Added lib/gitsmart/lib.rs View lib/gitsmart/lib.rs
@@ -0,0 +1,11 @@
1pub mod config;
2pub mod error;
3pub mod handler;
4pub mod protocol;
5pub mod push;
6pub mod service;
7
8pub use config::SmartConfig;
9pub use error::{SmartError, SmartResult};
10pub use push::{NoopPushBackend, PushCoordinator, PushOperations, RedisPushBackend};
11pub use service::{SmartService, SmartState};
Added lib/gitssh/lib.rs View lib/gitssh/lib.rs
@@ -0,0 +1,12 @@
1pub mod config;
2pub mod error;
3pub mod git_service;
4mod handler;
5pub mod server;
6pub mod service;
7
8pub use config::GitSshConfig;
9pub use error::{SshError, SshResult};
10pub use git_service::GitService;
11pub use server::run_ssh;
12pub use service::GitSshService;
Modified Cargo.toml View Cargo.toml
@@ -15,23 +15,28 @@
1515 "lib/db",
1616 "lib/email",
1717 "lib/export",
18 "lib/git",
18 "lib/git", "lib/gitauth", "lib/gitlfs", "lib/gitsmart", "lib/gitssh", "lib/gitsync",
1919 "lib/issues",
20 "lib/jwt",
20 "lib/jwt", "lib/obs",
2121 "lib/project",
2222 "lib/queue",
2323 "lib/rate_limit",
2424 "lib/repo",
2525 "lib/space",
2626 "lib/storage",
27 "lib/user"
27 "lib/user",
28 "lib/webapi",
2829]
2930
3031
3132[workspace.dependencies]
3233git = { path = "lib/git" }
34gitauth = { path = "lib/gitauth" }
35gitsmart = { path = "lib/gitsmart" }
36gitssh = { path = "lib/gitssh" }
3337db = { path = "lib/db" }
3438storage = { path = "lib/storage" }
39gitlfs = { path = "lib/gitlfs" }
3540cache = { path = "lib/cache" }
3641queue = { path = "lib/queue" }
3742auth = { path = "lib/auth" }
@@ -72,10 +77,17 @@
7277bincache = { version = "0.5.1", features = ["rt_tokio_1"] }
7378gix = { version = "0.86.0", features = ["serde", "sha256", "blocking-network-client"] }
7479duct = "1.1.0"
80russh = "=0.62.2"
81ssh-key = "=0.7.0-rc.11"
82async-compression = { version = "0.4", features = ["tokio", "gzip"] }
83tokio-util = { version = "0.7", features = ["io"] }
7584utoipa = { version = "5.5.0", features = ["uuid", "time"] }
7685jsonwebtoken = { version = "11.0.0", features = ["rust_crypto"] }
7786base64 = "0.23.1"
87flate2 = "1"
7888sha2 = "0.10"
7989features = "0.10.0"
8090validator = { version = "0.21.0" }
8191async-graphql = "7.2.1"
92utoipa-scalar = { version = "0.3.0", features = ["axum"] }
93metrics = { version = "0.24.6", features = [] }