21 Commits

Author SHA1 Message Date
553f8679a3 [release] logtimes v1.0.8 2024-03-26 10:42:54 +01:00
27a67ad480 [deps] cargo update
Updating autocfg v1.1.0  -> v1.2.0
Updating syn     v2.0.53 -> v2.0.55
2024-03-26 10:41:49 +01:00
aeb7c4fbff [release] logtimes v1.0.7 2024-03-18 09:26:11 +01:00
a07f17f5f5 [deps] cargo update
Updating bumpalo     v3.15.3 -> v3.15.4
Updating cc          v1.0.89 -> v1.0.90
Updating chrono      v0.4.34 -> v0.4.35
Updating proc-macro2 v1.0.78 -> v1.0.79
Updating syn         v2.0.52 -> v2.0.53
2024-03-18 09:21:34 +01:00
f1bfeced19 [release] logtimes v1.0.6 2024-03-05 18:57:32 +01:00
1daa5d5304 [code] iterators all the way 2024-03-05 18:56:53 +01:00
ae83358d14 [deps] cargo update
Updating bumpalo                    v3.15.2 -> v3.15.3
Updating cc                         v1.0.86 -> v1.0.89
Updating js-sys                     v0.3.68 -> v0.3.69
Updating log                        v0.4.20 -> v0.4.21
Updating syn                        v2.0.50 -> v2.0.52
Updating wasm-bindgen               v0.2.91 -> v0.2.92
Updating wasm-bindgen-backend       v0.2.91 -> v0.2.92
Updating wasm-bindgen-macro         v0.2.91 -> v0.2.92
Updating wasm-bindgen-macro-support v0.2.91 -> v0.2.92
Updating wasm-bindgen-shared        v0.2.91 -> v0.2.92
Updating windows-targets            v0.52.0 -> v0.52.4
Updating windows_aarch64_gnullvm    v0.52.0 -> v0.52.4
Updating windows_aarch64_msvc       v0.52.0 -> v0.52.4
Updating windows_i686_gnu           v0.52.0 -> v0.52.4
Updating windows_i686_msvc          v0.52.0 -> v0.52.4
Updating windows_x86_64_gnu         v0.52.0 -> v0.52.4
Updating windows_x86_64_gnullvm     v0.52.0 -> v0.52.4
Updating windows_x86_64_msvc        v0.52.0 -> v0.52.4
2024-03-05 18:56:34 +01:00
ed35f30f68 [deps] cargo update
Updating bumpalo v3.15.0 -> v3.15.2
Updating cc      v1.0.83 -> v1.0.86
Updating syn     v2.0.49 -> v2.0.50
2024-02-22 13:14:47 +01:00
036d1658fb [deps] cargo update
Updating bumpalo v3.14.0 -> v3.15.0
Updating chrono  v0.4.33 -> v0.4.34
Updating syn     v2.0.48 -> v2.0.49
2024-02-16 11:40:01 +01:00
9d0c7928bf [release] logtimes v1.0.5 2024-02-09 18:27:13 +01:00
d3fef99e54 [spelling] add comma 2024-02-09 18:26:10 +01:00
855f4cd8c8 [deps] cargo update
Updating  chrono                      v0.4.31   ->  v0.4.33
Updating  iana-time-zone              v0.1.59   ->  v0.1.60
Updating  js-sys                      v0.3.66   ->  v0.3.68
Updating  libc                        v0.2.151  ->  v0.2.153
Updating  num-traits                  v0.2.17   ->  v0.2.18
Updating  proc-macro2                 v1.0.76   ->  v1.0.78
Updating  wasm-bindgen                v0.2.89   ->  v0.2.91
Updating  wasm-bindgen-backend        v0.2.89   ->  v0.2.91
Updating  wasm-bindgen-macro          v0.2.89   ->  v0.2.91
Updating  wasm-bindgen-macro-support  v0.2.89   ->  v0.2.91
Updating  wasm-bindgen-shared         v0.2.89   ->  v0.2.91

Removing windows-targets v0.48.5
Removing windows_aarch64_gnullvm v0.48.5
Removing windows_aarch64_msvc v0.48.5
Removing windows_i686_gnu v0.48.5
Removing windows_i686_msvc v0.48.5
Removing windows_x86_64_gnu v0.48.5
Removing windows_x86_64_gnullvm v0.48.5
Removing windows_x86_64_msvc v0.48.5
2024-02-09 18:25:07 +01:00
b285f9bc53 [release] logtimes v1.0.4 2024-01-06 09:51:45 +01:00
0cb806c929 [deps] cargo update 2024-01-06 09:51:20 +01:00
1251ef7642 [release] logtimes v1.0.3 2024-01-05 22:23:06 +01:00
d86196d946 [deps] cargo update 2024-01-05 22:21:21 +01:00
a2aebd065c [deps] cargo update 2023-12-31 10:42:35 +01:00
91a750d9ac [deps] cargo update 2023-11-26 15:58:07 +01:00
c13ec22021 [deps] cargo update
Updating libc v0.2.149 -> v0.2.150
Updating syn  v2.0.38  -> v2.0.39
2023-11-17 11:26:17 +01:00
3757b01295 [clippy] since Rust 1.74 linter options can be specified in Cargo.toml 2023-11-17 11:25:28 +01:00
b47629cd86 [deps] cargo update
Updating  js-sys                      v0.3.64  ->  v0.3.65
Updating  wasm-bindgen                v0.2.87  ->  v0.2.88
Updating  wasm-bindgen-backend        v0.2.87  ->  v0.2.88
Updating  wasm-bindgen-macro          v0.2.87  ->  v0.2.88
Updating  wasm-bindgen-macro-support  v0.2.87  ->  v0.2.88
Updating  wasm-bindgen-shared         v0.2.87  ->  v0.2.88
2023-11-01 18:58:04 +01:00
3 changed files with 72 additions and 73 deletions

117
Cargo.lock generated
View File

@ -19,24 +19,21 @@ dependencies = [
[[package]]
name = "autocfg"
version = "1.1.0"
version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
checksum = "f1fdabc7756949593fe60f30ec81974b613357de856987752631dea1e3394c80"
[[package]]
name = "bumpalo"
version = "3.14.0"
version = "3.15.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f30e7476521f6f8af1a1c4c0b8cc94f0bee37d91763d0ca2665f299b6cd8aec"
checksum = "7ff69b9dd49fd426c69a0db9fc04dd934cdb6645ff000864d98f7e2af8830eaa"
[[package]]
name = "cc"
version = "1.0.83"
version = "1.0.90"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0"
dependencies = [
"libc",
]
checksum = "8cd6604a82acf3039f1144f54b8eb34e91ffba622051189e71b781822d5ee1f5"
[[package]]
name = "cfg-if"
@ -46,9 +43,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "chrono"
version = "0.4.31"
version = "0.4.35"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f2c685bad3eb3d45a01354cedb7d5faa66194d1d58ba6e267a8de788f79db38"
checksum = "8eaf5903dcbc0a39312feb77df2ff4c76387d591b9fc7b04a238dcf8bb62639a"
dependencies = [
"android-tzdata",
"iana-time-zone",
@ -58,15 +55,15 @@ dependencies = [
[[package]]
name = "core-foundation-sys"
version = "0.8.4"
version = "0.8.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa"
checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f"
[[package]]
name = "iana-time-zone"
version = "0.1.58"
version = "0.1.60"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8326b86b6cff230b97d0d312a6c40a60726df3332e721f72a1b035f451663b20"
checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141"
dependencies = [
"android_system_properties",
"core-foundation-sys",
@ -87,70 +84,70 @@ dependencies = [
[[package]]
name = "js-sys"
version = "0.3.64"
version = "0.3.69"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c5f195fe497f702db0f318b07fdd68edb16955aed830df8363d837542f8f935a"
checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d"
dependencies = [
"wasm-bindgen",
]
[[package]]
name = "libc"
version = "0.2.149"
version = "0.2.153"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a08173bc88b7955d1b3145aa561539096c421ac8debde8cbc3612ec635fee29b"
checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd"
[[package]]
name = "log"
version = "0.4.20"
version = "0.4.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f"
checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c"
[[package]]
name = "logtimes"
version = "1.0.2"
version = "1.0.8"
dependencies = [
"chrono",
]
[[package]]
name = "num-traits"
version = "0.2.17"
version = "0.2.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39e3200413f237f41ab11ad6d161bc7239c84dcb631773ccd7de3dfe4b5c267c"
checksum = "da0df0e5185db44f69b44f26786fe401b6c293d1907744beaa7fa62b2e5a517a"
dependencies = [
"autocfg",
]
[[package]]
name = "once_cell"
version = "1.18.0"
version = "1.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d"
checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
[[package]]
name = "proc-macro2"
version = "1.0.69"
version = "1.0.79"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "134c189feb4956b20f6f547d2cf727d4c0fe06722b20a0eec87ed445a97f92da"
checksum = "e835ff2298f5721608eb1a980ecaee1aef2c132bf95ecc026a11b7bf3c01c02e"
dependencies = [
"unicode-ident",
]
[[package]]
name = "quote"
version = "1.0.33"
version = "1.0.35"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae"
checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef"
dependencies = [
"proc-macro2",
]
[[package]]
name = "syn"
version = "2.0.38"
version = "2.0.55"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e96b79aaa137db8f61e26363a0c9b47d8b4ec75da28b7d1d614c2303e232408b"
checksum = "002a1b3dbf967edfafc32655d0f377ab0bb7b994aa1d32c8cc7e9b8bf3ebb8f0"
dependencies = [
"proc-macro2",
"quote",
@ -165,9 +162,9 @@ checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
[[package]]
name = "wasm-bindgen"
version = "0.2.87"
version = "0.2.92"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342"
checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8"
dependencies = [
"cfg-if",
"wasm-bindgen-macro",
@ -175,9 +172,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-backend"
version = "0.2.87"
version = "0.2.92"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd"
checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da"
dependencies = [
"bumpalo",
"log",
@ -190,9 +187,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro"
version = "0.2.87"
version = "0.2.92"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d"
checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
@ -200,9 +197,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro-support"
version = "0.2.87"
version = "0.2.92"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b"
checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7"
dependencies = [
"proc-macro2",
"quote",
@ -213,24 +210,24 @@ dependencies = [
[[package]]
name = "wasm-bindgen-shared"
version = "0.2.87"
version = "0.2.92"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1"
checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96"
[[package]]
name = "windows-core"
version = "0.51.1"
version = "0.52.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f1f8cf84f35d2db49a46868f947758c7a1138116f7fac3bc844f43ade1292e64"
checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9"
dependencies = [
"windows-targets",
]
[[package]]
name = "windows-targets"
version = "0.48.5"
version = "0.52.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"
checksum = "7dd37b7e5ab9018759f893a1952c9420d060016fc19a472b4bb20d1bdd694d1b"
dependencies = [
"windows_aarch64_gnullvm",
"windows_aarch64_msvc",
@ -243,42 +240,42 @@ dependencies = [
[[package]]
name = "windows_aarch64_gnullvm"
version = "0.48.5"
version = "0.52.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
checksum = "bcf46cf4c365c6f2d1cc93ce535f2c8b244591df96ceee75d8e83deb70a9cac9"
[[package]]
name = "windows_aarch64_msvc"
version = "0.48.5"
version = "0.52.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
checksum = "da9f259dd3bcf6990b55bffd094c4f7235817ba4ceebde8e6d11cd0c5633b675"
[[package]]
name = "windows_i686_gnu"
version = "0.48.5"
version = "0.52.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
checksum = "b474d8268f99e0995f25b9f095bc7434632601028cf86590aea5c8a5cb7801d3"
[[package]]
name = "windows_i686_msvc"
version = "0.48.5"
version = "0.52.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
checksum = "1515e9a29e5bed743cb4415a9ecf5dfca648ce85ee42e15873c3cd8610ff8e02"
[[package]]
name = "windows_x86_64_gnu"
version = "0.48.5"
version = "0.52.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
checksum = "5eee091590e89cc02ad514ffe3ead9eb6b660aedca2183455434b93546371a03"
[[package]]
name = "windows_x86_64_gnullvm"
version = "0.48.5"
version = "0.52.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
checksum = "77ca79f2451b49fa9e2af39f0747fe999fcda4f5e241b2898624dca97a1f2177"
[[package]]
name = "windows_x86_64_msvc"
version = "0.48.5"
version = "0.52.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
checksum = "32b752e52a2da0ddfbdbcc6fceadfeede4c939ed16d13e648833a61dfb611ed8"

View File

@ -1,6 +1,6 @@
[package]
name = "logtimes"
version = "1.0.2"
version = "1.0.8"
authors = ["Paul Schulze <p.schulze@avm.de>"]
edition = "2021"
@ -9,6 +9,15 @@ version = "0.4"
default-features = false
features = ["std", "clock"]
[lints.rust]
unsafe_code = "forbid"
[lints.clippy]
pedantic = "warn"
todo = "warn"
unwrap_used = "warn"
inline_always = "allow"
[profile.release]
lto = true
debug = false

View File

@ -1,8 +1,3 @@
#![warn(clippy::pedantic)]
#![warn(clippy::todo)]
#![warn(clippy::unwrap_used)]
#![allow(clippy::inline_always)]
use std::{
env::args,
fs::File,
@ -50,12 +45,10 @@ where
fn trim_end(line: &[u8]) -> usize {
let mut end = line.len();
for ch in line.iter().rev() {
if *ch != b'\r' && *ch != b'\n' && *ch != b'\t' {
break;
}
end -= 1;
}
line.iter()
.rev()
.take_while(|ch| ch.is_ascii_whitespace())
.for_each(|_| end -= 1);
end
}
@ -106,7 +99,7 @@ fn run() -> LogtimesResult {
f.flush()?;
};
// clear line buffer so it is fresh for the next line
// clear line buffer, so it is fresh for the next line
linebuf.clear();
continue;
}