eggup-eggfetch 0.1.2

Native Eggfetch HTTP acquisition adapter for Eggup (bounded, no release policy)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Eggfetch-only footprint fixture: links `eggup-acquisition` + `eggup-eggfetch` only.
//!
//! This example exists to produce a comparable release binary proving that
//! Eggfetch-only consumption does not require curl. It performs no network
//! I/O by default; it constructs the strict adapter and prints the redacted
//! request.

use eggup_acquisition::{AcquisitionRequest, FetchLimits};
use eggup_eggfetch::{EggfetchConfig, EggfetchTransport};

fn main() {
    let transport =
        EggfetchTransport::strict(EggfetchConfig::strict()).expect("eggfetch transport");
    let request = AcquisitionRequest::new("https://example.com/artifact").expect("request");
    println!("redirects: {}", transport.config().max_redirects);
    println!("request: {}", request.redacted());
    println!("limits: {:?}", FetchLimits::default());
}