refactor and bunch more improvements; use object_store for s3

This commit is contained in:
cy 2025-04-26 12:37:07 -04:00
parent b1e59d0a6c
commit 81ce855dae
Signed by: cy
SSH key fingerprint: SHA256:o/geVWV4om1QhUSkKvDQeW/eAihwnjyXkqMwrVdbuts
9 changed files with 535 additions and 1320 deletions

View file

@ -1,5 +1,6 @@
#![feature(let_chains)]
#![feature(extend_one)]
#![feature(exit_status_error)]
use std::path::PathBuf;
@ -11,6 +12,7 @@ use store::Store;
mod bindings;
mod cli;
mod make_nar;
mod path_info;
mod push;
mod store;
@ -48,19 +50,15 @@ pub struct PushArgs {
#[arg(long)]
signing_key: String,
/// If unspecified, will get it form AWS_DEFAULT_REGION envar
/// If unspecified, will get it form AWS_DEFAULT_REGION envar or default to us-east-1
#[arg(long)]
region: Option<String>,
/// If unspecifed, will get it from AWS_ENDPOINT_URL envar
/// If unspecifed, will get it from AWS_ENDPOINT envar
/// e.g. https://s3.example.com
#[arg(long)]
endpoint: Option<String>,
/// AWS profile to use
#[arg(long)]
profile: Option<String>,
#[arg(long)]
skip_signature_check: bool,