phip1611 / ttfb

Library + CLI-Tool to measure the TTFB (time to first byte) of HTTP requests. Additionally, this crate measures the times of DNS lookup, TCP connect and TLS handshake.
MIT License
42 stars 11 forks source link

Unable to install #13

Closed eparra closed 1 year ago

eparra commented 1 year ago

First, thanks for authoring ttfb. Next, I get the following error using cargo 1.69.0 on macOS 13.3.1.

~ % sudo cargo install ttfb --features bin
    Updating crates.io index
error: failed to fetch `https://github.com/rust-lang/crates.io-index`

Caused by:
  failed to authenticate when downloading repository: git@github.com:rust-lang/crates.io-index

  * attempted ssh-agent authentication, but no usernames succeeded: `git`

  if the git CLI succeeds then `net.git-fetch-with-cli` may help here
  https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli

Caused by:
  no authentication available
~ % 
phip1611 commented 1 year ago

I don't think that using sudo together with "cargo install" is the right thing. cargo is meant to be used without sudo.

Please consult the docs: https://doc.rust-lang.org/cargo/commands/cargo-install.html