switch to git2 to reduce amount of deps

This commit is contained in:
Bryson Steck 2025-03-02 16:36:04 -07:00
parent 6cfaf61246
commit 25562cdc6a
Signed by: brysonsteck
SSH key fingerprint: SHA256:XpKABw/nP4z8UVaH+weLaBnEOD86+cVwif+QjuYLGT4
6 changed files with 94 additions and 1531 deletions

1608
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -5,7 +5,7 @@ edition = "2021"
[dependencies]
clap = { version = "4.5.29", features = ["derive"] }
gix = "0.70.0"
git2 = "0.20.0"
serde = "1.0.217"
serde_derive = "1.0.217"
toml = "0.8.20"

View file

@ -5,6 +5,7 @@ ARG GID="1000"
WORKDIR /usr/src/refractr
COPY . .
RUN apt update && apt install pkg-config libssl-dev -y
RUN cargo build --release
RUN cargo install --locked --path .

4
build
View file

@ -1,12 +1,12 @@
#!/usr/bin/env bash
# Create all the different builds for refractr
set -x
version=$(cat Cargo.toml | grep -m1 version | awk -F' ' '{print $3}' | sed 's|"||g')
# docker builds
cargo clean
docker build -t refractr:$version .
docker tag refractr:$version refractr:$latest
docker tag refractr:$version refractr:latest
# rust build
cargo build

View file

@ -1,5 +1,6 @@
mod common;
mod config;
mod refractr;
use clap::Parser;
use std::path::PathBuf;

9
src/refractr.rs Normal file
View file

@ -0,0 +1,9 @@
// fn set_up_work_dir(work_dir: String) -> PathBuf {
// if
// }
pub fn start() -> std::io::Result<()> {
Ok(())
}