switch to git2 to reduce amount of deps
This commit is contained in:
parent
6cfaf61246
commit
25562cdc6a
6 changed files with 94 additions and 1531 deletions
1608
Cargo.lock
generated
1608
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -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"
|
||||
|
|
|
@ -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
4
build
|
@ -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
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
mod common;
|
||||
mod config;
|
||||
mod refractr;
|
||||
|
||||
use clap::Parser;
|
||||
use std::path::PathBuf;
|
||||
|
|
9
src/refractr.rs
Normal file
9
src/refractr.rs
Normal file
|
@ -0,0 +1,9 @@
|
|||
|
||||
// fn set_up_work_dir(work_dir: String) -> PathBuf {
|
||||
// if
|
||||
// }
|
||||
|
||||
pub fn start() -> std::io::Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue