14 Commits

Author SHA1 Message Date
402f0e83a7 [release] logtimes v1.0.29 2025-09-26 14:38:14 +02:00
7dd813a583 [deps] cargo update
Adding   find-msvc-tools            v0.1.2
Removing android-tzdata             v0.1.1
Updating autocfg                    v1.4.0   -> v1.5.0
Updating bumpalo                    v3.17.0  -> v3.19.0
Updating cc                         v1.2.18  -> v1.2.39
Updating cfg-if                     v1.0.0   -> v1.0.3
Updating chrono                     v0.4.40  -> v0.4.42
Updating iana-time-zone             v0.1.63  -> v0.1.64
Updating js-sys                     v0.3.77  -> v0.3.81
Updating libc                       v0.2.171 -> v0.2.176
Updating log                        v0.4.27  -> v0.4.28
Updating proc-macro2                v1.0.94  -> v1.0.101
Updating rustversion                v1.0.20  -> v1.0.22
Updating syn                        v2.0.100 -> v2.0.106
Updating unicode-ident              v1.0.18  -> v1.0.19
Updating wasm-bindgen-backend       v0.2.100 -> v0.2.104
Updating wasm-bindgen-macro-support v0.2.100 -> v0.2.104
Updating wasm-bindgen-macro         v0.2.100 -> v0.2.104
Updating wasm-bindgen-shared        v0.2.100 -> v0.2.104
Updating wasm-bindgen               v0.2.100 -> v0.2.104
Updating windows-core               v0.61.0  -> v0.62.1
Updating windows-implement          v0.60.0  -> v0.60.1
Updating windows-interface          v0.59.1  -> v0.59.2
Updating windows-link               v0.1.1   -> v0.2.0
Updating windows-result             v0.3.2   -> v0.4.0
Updating windows-strings            v0.4.0   -> v0.5.0
2025-09-26 14:38:12 +02:00
f0c33e2ad9 [release] logtimes v1.0.28 2025-04-08 18:36:15 +02:00
cf3ddc6c6a [rustfmt] include order changed 2025-04-08 18:36:06 +02:00
4f81e1dcf4 [clippy] remove unnecessary semicolon 2025-04-08 18:35:29 +02:00
b5c18ace38 [release] logtimes v1.0.27 2025-04-08 18:32:40 +02:00
f8c93a9b26 [deps] cargo update
Adding   rustversion                v1.0.20
Adding   windows-implement          v0.60.0
Adding   windows-interface          v0.59.1
Adding   windows-link               v0.1.1
Adding   windows-result             v0.3.2
Adding   windows-strings            v0.4.0
Removing windows_aarch64_gnullvm    v0.52.6
Removing windows_aarch64_msvc       v0.52.6
Removing windows_i686_gnullvm       v0.52.6
Removing windows_i686_gnu           v0.52.6
Removing windows_i686_msvc          v0.52.6
Removing windows-targets            v0.52.6
Removing windows_x86_64_gnullvm     v0.52.6
Removing windows_x86_64_gnu         v0.52.6
Removing windows_x86_64_msvc        v0.52.6
Updating bumpalo                    v3.16.0  -> v3.17.0
Updating cc                         v1.2.3   -> v1.2.18
Updating chrono                     v0.4.39  -> v0.4.40
Updating iana-time-zone             v0.1.61  -> v0.1.63
Updating js-sys                     v0.3.76  -> v0.3.77
Updating libc                       v0.2.168 -> v0.2.171
Updating log                        v0.4.22  -> v0.4.27
Updating once_cell                  v1.20.2  -> v1.21.3
Updating proc-macro2                v1.0.92  -> v1.0.94
Updating quote                      v1.0.37  -> v1.0.40
Updating syn                        v2.0.90  -> v2.0.100
Updating unicode-ident              v1.0.14  -> v1.0.18
Updating wasm-bindgen-backend       v0.2.99  -> v0.2.100
Updating wasm-bindgen-macro-support v0.2.99  -> v0.2.100
Updating wasm-bindgen-macro         v0.2.99  -> v0.2.100
Updating wasm-bindgen-shared        v0.2.99  -> v0.2.100
Updating wasm-bindgen               v0.2.99  -> v0.2.100
Updating windows-core               v0.52.0  -> v0.61.0
2025-04-08 18:32:39 +02:00
0599c0877c [release] logtimes v1.0.26 2024-12-09 13:49:52 +01:00
f56d3d8b1f [deps] cargo update
Updating cc                         v1.2.2   -> v1.2.3
Updating chrono                     v0.4.38  -> v0.4.39
Updating js-sys                     v0.3.74  -> v0.3.76
Updating libc                       v0.2.167 -> v0.2.168
Updating wasm-bindgen-backend       v0.2.97  -> v0.2.99
Updating wasm-bindgen-macro-support v0.2.97  -> v0.2.99
Updating wasm-bindgen-macro         v0.2.97  -> v0.2.99
Updating wasm-bindgen-shared        v0.2.97  -> v0.2.99
Updating wasm-bindgen               v0.2.97  -> v0.2.99
2024-12-09 13:49:45 +01:00
eaf877f59c [release] logtimes v1.0.25 2024-12-02 13:19:24 +01:00
b39aeb0df9 [deps] cargo update
Updating cc                         v1.2.1   -> v1.2.2
Updating js-sys                     v0.3.72  -> v0.3.74
Updating libc                       v0.2.166 -> v0.2.167
Updating syn                        v2.0.89  -> v2.0.90
Updating wasm-bindgen-backend       v0.2.95  -> v0.2.97
Updating wasm-bindgen-macro-support v0.2.95  -> v0.2.97
Updating wasm-bindgen-macro         v0.2.95  -> v0.2.97
Updating wasm-bindgen-shared        v0.2.95  -> v0.2.97
Updating wasm-bindgen               v0.2.95  -> v0.2.97
2024-12-02 13:19:18 +01:00
7b99e90663 [release] logtimes v1.0.24 2024-11-28 15:32:05 +01:00
9ea6a6e224 [deps] cargo update
Updating libc          v0.2.164 -> v0.2.166
Updating proc-macro2   v1.0.89  -> v1.0.92
Updating syn           v2.0.87  -> v2.0.89
Updating unicode-ident v1.0.13  -> v1.0.14
2024-11-28 15:32:04 +01:00
4fd4acec0e [code] remove inline. benchmarks show no difference 2024-11-28 15:31:44 +01:00
3 changed files with 100 additions and 105 deletions

196
Cargo.lock generated
View File

@@ -2,12 +2,6 @@
# It is not intended for manual editing.
version = 4
[[package]]
name = "android-tzdata"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0"
[[package]]
name = "android_system_properties"
version = "0.1.5"
@@ -19,41 +13,41 @@ dependencies = [
[[package]]
name = "autocfg"
version = "1.4.0"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
[[package]]
name = "bumpalo"
version = "3.16.0"
version = "3.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c"
checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43"
[[package]]
name = "cc"
version = "1.2.1"
version = "1.2.39"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd9de9f2205d5ef3fd67e685b0df337994ddd4495e2a28d185500d0e1edfea47"
checksum = "e1354349954c6fc9cb0deab020f27f783cf0b604e8bb754dc4658ecf0d29c35f"
dependencies = [
"find-msvc-tools",
"shlex",
]
[[package]]
name = "cfg-if"
version = "1.0.0"
version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
checksum = "2fd1289c04a9ea8cb22300a459a72a385d7c73d3259e2ed7dcb2af674838cfa9"
[[package]]
name = "chrono"
version = "0.4.38"
version = "0.4.42"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401"
checksum = "145052bdd345b87320e369255277e3fb5152762ad123a901ef5c262dd38fe8d2"
dependencies = [
"android-tzdata",
"iana-time-zone",
"num-traits",
"windows-targets",
"windows-link",
]
[[package]]
@@ -63,15 +57,22 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
[[package]]
name = "iana-time-zone"
version = "0.1.61"
name = "find-msvc-tools"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "235e081f3925a06703c2d0117ea8b91f042756fd6e7a6e5d901e8ca1a996b220"
checksum = "1ced73b1dacfc750a6db6c0a0c3a3853c8b41997e2e2c563dc90804ae6867959"
[[package]]
name = "iana-time-zone"
version = "0.1.64"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "33e57f83510bb73707521ebaffa789ec8caf86f9657cad665b092b581d40e9fb"
dependencies = [
"android_system_properties",
"core-foundation-sys",
"iana-time-zone-haiku",
"js-sys",
"log",
"wasm-bindgen",
"windows-core",
]
@@ -87,28 +88,29 @@ dependencies = [
[[package]]
name = "js-sys"
version = "0.3.72"
version = "0.3.81"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6a88f1bda2bd75b0452a14784937d796722fdebfe50df998aeb3f0b7603019a9"
checksum = "ec48937a97411dcb524a265206ccd4c90bb711fca92b2792c407f268825b9305"
dependencies = [
"once_cell",
"wasm-bindgen",
]
[[package]]
name = "libc"
version = "0.2.164"
version = "0.2.176"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "433bfe06b8c75da9b2e3fbea6e5329ff87748f0b144ef75306e674c3f6f7c13f"
checksum = "58f929b4d672ea937a23a1ab494143d968337a5f47e56d0815df1e0890ddf174"
[[package]]
name = "log"
version = "0.4.22"
version = "0.4.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"
checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432"
[[package]]
name = "logtimes"
version = "1.0.23"
version = "1.0.29"
dependencies = [
"chrono",
]
@@ -124,28 +126,34 @@ dependencies = [
[[package]]
name = "once_cell"
version = "1.20.2"
version = "1.21.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775"
checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
[[package]]
name = "proc-macro2"
version = "1.0.89"
version = "1.0.101"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f139b0662de085916d1fb67d2b4169d1addddda1919e696f3252b740b629986e"
checksum = "89ae43fd86e4158d6db51ad8e2b80f313af9cc74f5c0e03ccb87de09998732de"
dependencies = [
"unicode-ident",
]
[[package]]
name = "quote"
version = "1.0.37"
version = "1.0.40"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af"
checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
dependencies = [
"proc-macro2",
]
[[package]]
name = "rustversion"
version = "1.0.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
[[package]]
name = "shlex"
version = "1.3.0"
@@ -154,9 +162,9 @@ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
[[package]]
name = "syn"
version = "2.0.87"
version = "2.0.106"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d"
checksum = "ede7c438028d4436d71104916910f5bb611972c5cfd7f89b8300a8186e6fada6"
dependencies = [
"proc-macro2",
"quote",
@@ -165,30 +173,31 @@ dependencies = [
[[package]]
name = "unicode-ident"
version = "1.0.13"
version = "1.0.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe"
checksum = "f63a545481291138910575129486daeaf8ac54aee4387fe7906919f7830c7d9d"
[[package]]
name = "wasm-bindgen"
version = "0.2.95"
version = "0.2.104"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "128d1e363af62632b8eb57219c8fd7877144af57558fb2ef0368d0087bddeb2e"
checksum = "c1da10c01ae9f1ae40cbfac0bac3b1e724b320abfcf52229f80b547c0d250e2d"
dependencies = [
"cfg-if",
"once_cell",
"rustversion",
"wasm-bindgen-macro",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-backend"
version = "0.2.95"
version = "0.2.104"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cb6dd4d3ca0ddffd1dd1c9c04f94b868c37ff5fac97c30b97cff2d74fce3a358"
checksum = "671c9a5a66f49d8a47345ab942e2cb93c7d1d0339065d4f8139c486121b43b19"
dependencies = [
"bumpalo",
"log",
"once_cell",
"proc-macro2",
"quote",
"syn",
@@ -197,9 +206,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro"
version = "0.2.95"
version = "0.2.104"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e79384be7f8f5a9dd5d7167216f022090cf1f9ec128e6e6a482a2cb5c5422c56"
checksum = "7ca60477e4c59f5f2986c50191cd972e3a50d8a95603bc9434501cf156a9a119"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
@@ -207,9 +216,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro-support"
version = "0.2.95"
version = "0.2.104"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "26c6ab57572f7a24a4985830b120de1594465e5d500f24afe89e16b4e833ef68"
checksum = "9f07d2f20d4da7b26400c9f4a0511e6e0345b040694e8a75bd41d578fa4421d7"
dependencies = [
"proc-macro2",
"quote",
@@ -220,79 +229,68 @@ dependencies = [
[[package]]
name = "wasm-bindgen-shared"
version = "0.2.95"
version = "0.2.104"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "65fc09f10666a9f147042251e0dda9c18f166ff7de300607007e96bdebc1068d"
checksum = "bad67dc8b2a1a6e5448428adec4c3e84c43e561d8c9ee8a9e5aabeb193ec41d1"
dependencies = [
"unicode-ident",
]
[[package]]
name = "windows-core"
version = "0.52.0"
version = "0.62.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9"
checksum = "6844ee5416b285084d3d3fffd743b925a6c9385455f64f6d4fa3031c4c2749a9"
dependencies = [
"windows-targets",
"windows-implement",
"windows-interface",
"windows-link",
"windows-result",
"windows-strings",
]
[[package]]
name = "windows-targets"
version = "0.52.6"
name = "windows-implement"
version = "0.60.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
checksum = "edb307e42a74fb6de9bf3a02d9712678b22399c87e6fa869d6dfcd8c1b7754e0"
dependencies = [
"windows_aarch64_gnullvm",
"windows_aarch64_msvc",
"windows_i686_gnu",
"windows_i686_gnullvm",
"windows_i686_msvc",
"windows_x86_64_gnu",
"windows_x86_64_gnullvm",
"windows_x86_64_msvc",
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "windows_aarch64_gnullvm"
version = "0.52.6"
name = "windows-interface"
version = "0.59.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
checksum = "c0abd1ddbc6964ac14db11c7213d6532ef34bd9aa042c2e5935f59d7908b46a5"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "windows_aarch64_msvc"
version = "0.52.6"
name = "windows-link"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
checksum = "45e46c0661abb7180e7b9c281db115305d49ca1709ab8242adf09666d2173c65"
[[package]]
name = "windows_i686_gnu"
version = "0.52.6"
name = "windows-result"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
checksum = "7084dcc306f89883455a206237404d3eaf961e5bd7e0f312f7c91f57eb44167f"
dependencies = [
"windows-link",
]
[[package]]
name = "windows_i686_gnullvm"
version = "0.52.6"
name = "windows-strings"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
[[package]]
name = "windows_i686_msvc"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
[[package]]
name = "windows_x86_64_gnu"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
[[package]]
name = "windows_x86_64_gnullvm"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
[[package]]
name = "windows_x86_64_msvc"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
checksum = "7218c655a553b0bed4426cf54b20d7ba363ef543b52d515b3e48d7fd55318dda"
dependencies = [
"windows-link",
]

View File

@@ -1,6 +1,6 @@
[package]
name = "logtimes"
version = "1.0.23"
version = "1.0.29"
authors = ["Paul Schulze <p.schulze@avm.de>"]
edition = "2021"

View File

@@ -1,7 +1,7 @@
use std::{
env::args,
fs::File,
io::{stdin, stdout, Error as IoError, ErrorKind, Read, Write},
io::{Error as IoError, ErrorKind, Read, Write, stdin, stdout},
};
use chrono::prelude::*;
@@ -10,7 +10,6 @@ const TIME_FORMAT: &str = "%H:%M:%S%.3f";
type LogtimesResult = Result<(), IoError>;
#[inline(always)]
fn print_time<T>(output: &mut T) -> LogtimesResult
where
T: Write,
@@ -20,7 +19,6 @@ where
write!(output, "[{}] ", &date_now)
}
#[inline(always)]
fn print_time_color<T>(output: &mut T) -> Result<(), std::io::Error>
where
T: Write,
@@ -33,7 +31,6 @@ where
write!(output, "{}[{}]{} ", color_green, &date_now, color_off)
}
#[inline(always)]
fn print_delete_line<T>(output: &mut T) -> LogtimesResult
where
T: Write,
@@ -97,7 +94,7 @@ fn run() -> LogtimesResult {
f.write_all(&linebuf[..end])?;
f.write_all(b"\n")?;
f.flush()?;
};
}
// clear line buffer, so it is fresh for the next line
linebuf.clear();