Skip to content
Snippets Groups Projects

Merged oldstable branch into stable

Merged Georges Racinet requested to merge topic/stable/merge-oldstable into branch/stable
4 files
+ 28
1
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 24
0
@@ -3,7 +3,8 @@
// This software may be used and distributed according to the terms of the
// GNU General Public License version 2 or any later version.
// SPDX-License-Identifier: GPL-2.0-or-later
use clap::Parser;
use std::error::Error;
use std::net::SocketAddr;
use std::path::PathBuf;
use std::sync::Arc;
@@ -6,7 +7,8 @@
use std::error::Error;
use std::net::SocketAddr;
use std::path::PathBuf;
use std::sync::Arc;
use tokio::fs::remove_file;
use tokio::net::UnixListener;
use tokio_stream::wrappers::UnixListenerStream;
@@ -54,5 +56,25 @@
Err("Unsupported URL".into())
}
#[derive(Parser, Debug)]
#[command(name = "RHGitaly")]
#[command(
about = "RHGitaly is a partial implementation of the Gitaly and HGitaly gRPC protocols \
for Mercurial repositories"
)]
#[command(
long_about = "RHGitaly is a performance-oriented partial implementation of the Gitaly \
and HGitaly gRPC protocols for Mercurial repositories.
It is asynchronous with a pool of worker threads, leveraging the Tonic (Tokio) gRPC framework, \
and the Mercurial primitives implemented in Rust (hg-core crate).
Configuration is for now entirely done by environment variables (see
https://foss.heptapod.net/heptapod/hgitaly/-/issues/181 to follow progress on this)
"
)]
#[command(version = HGITALY_VERSION)]
struct Args {}
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
@@ -57,5 +79,7 @@
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let _args = Args::parse();
setup_tracing();
info!("RHGitaly starting, version {}", HGITALY_VERSION);
Loading