pop-os / async-fetcher

Rust crate for asynchronous file fetching, using optional fetching based on modified times and checksums
Mozilla Public License 2.0
37 stars 15 forks source link

fetcher binary doesn't build #19

Open molenick opened 2 weeks ago

molenick commented 2 weeks ago

Reproduction steps:

  1. Clone repo
  2. cd async-fetcher/fetcher
  3. cargo run

Result:

-> % cargo build
warning: method `content_length` is never used
   --> src/lib.rs:651:8
    |
650 | trait ResponseExt {
    |       ----------- method in this trait
651 |     fn content_length(&self) -> Option<u64>;
    |        ^^^^^^^^^^^^^^
    |
    = note: `#[warn(dead_code)]` on by default

warning: `async-fetcher` (lib) generated 1 warning
   Compiling fetcher v0.10.1 (/home/mo/workspace/async-fetcher/fetcher)
error[E0432]: unresolved import `async_shutdown::Shutdown`
  --> fetcher/src/main.rs:16:5
   |
16 | use async_shutdown::Shutdown;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^ no `Shutdown` in the root
   |
help: consider importing this enum instead
   |
16 | use std::net::Shutdown;
   |     ~~~~~~~~~~~~~~~~~~

Is this binary still being maintained?

molenick commented 2 weeks ago

I noticed that there's no CI workflow that proves this crate can be built, could be good to add one + run tests