Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improvements + v1.9.1 #31

Merged
merged 1 commit into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
max_line_length = 80

[Makefile]
indent_style = tab

[{*.nix,*.yml}]
[{*.nix,*.toml,*.yml}]
indent_size = 2
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Unreleased (Yet)

# v1.9.1 (2023-11-30)

- Improved `--help`.

# v1.9.0 (2023-11-30)

- **BREAKING** The MSRV of the library is `1.65.0` stable.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 12 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
[package]
name = "ttfb"
description = """
Library + CLI-Tool to measure the TTFB (time to first byte) of HTTP(S) requests.
Additionally, this crate measures the times of DNS lookup, TCP connect, and
TLS handshake.
Library + CLI utility to measure the TTFB (time to first byte) of HTTP(S)
requests. This includes data of intermediate steps, such as the relative and
absolute timings of DNS lookup, TCP connect, and TLS handshake.
"""
version = "1.9.0"
version = "1.9.1"
edition = "2021"
rust-version = "1.65" # MSRV of the library
keywords = ["ttfb", "http", "timings", "web"]
categories = ["network-programming", "command-line-utilities"]
readme = "README.md"
license = "MIT"
homepage = "https://github.com/phip1611/ttfb"
repository = "https://github.com/phip1611/ttfb"
documentation = "https://docs.rs/ttfb"
authors = [
"Philipp Schuster <[email protected]>"
]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down Expand Up @@ -61,13 +65,13 @@ version = "0.27.0"
optional = true
version = "4.4.0"
features = [
"std",
"color",
"help",
"usage",
"derive",
"error-context",
"help",
"std",
"suggestions",
"derive",
"unicode",
"usage",
"wrap_help",
]
9 changes: 5 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@ macro_rules! unwrap_or_exit {
/// CLI Arguments for `clap`.
#[derive(Parser, Debug)]
#[command(
author,
version,
about = "CLI utility to measure the TTFB (time to first byte) of HTTP(S) requests. \
Additionally, this crate measures the relative and absolute times of DNS \
lookup, TCP connect, and TLS handshake."
about = "CLI utility to measure the TTFB (time to first byte) of HTTP(S) \
requests. This includes data of intermediate steps, such as the relative \
and absolute timings of DNS lookup, TCP connect, and TLS handshake. \
\n\n\
For issues or merge requests, please visit https://github.com/phip1611/ttfb."
)]
struct TtfbArgs {
/// Name of the host. An IP address or a URL. "https://"-prefix must be provided for HTTPS/TLS.
Expand Down