29 Commits

Author SHA1 Message Date
fbcf7ea4c5 [release] logtimes v1.0.11 2024-09-03 21:01:42 +02:00
7b8f1cf81c [deps] cargo update
Updating cc    v1.1.11  -> v1.1.15
Updating libc  v0.2.155 -> v0.2.158
Updating quote v1.0.36  -> v1.0.37
Updating syn   v2.0.74  -> v2.0.77
2024-09-03 20:52:53 +02:00
f2b0757a87 [release] logtimes v1.0.10 2024-08-14 15:25:14 +02:00
49762be53f [deps] cargo update
Updating autocfg                    v1.2.0   -> v1.3.0
Updating cc                         v1.0.92  -> v1.1.11
Updating chrono                     v0.4.37  -> v0.4.38
Updating core-foundation-sys        v0.8.6   -> v0.8.7
Updating js-sys                     v0.3.69  -> v0.3.70
Updating libc                       v0.2.153 -> v0.2.155
Updating log                        v0.4.21  -> v0.4.22
Updating num-traits                 v0.2.18  -> v0.2.19
Updating proc-macro2                v1.0.79  -> v1.0.86
Adding   shlex                      v1.3.0
Updating syn                        v2.0.58  -> v2.0.74
Updating wasm-bindgen               v0.2.92  -> v0.2.93
Updating wasm-bindgen-backend       v0.2.92  -> v0.2.93
Updating wasm-bindgen-macro         v0.2.92  -> v0.2.93
Updating wasm-bindgen-macro-support v0.2.92  -> v0.2.93
Updating wasm-bindgen-shared        v0.2.92  -> v0.2.93
Updating windows-targets            v0.52.4  -> v0.52.6
Updating windows_aarch64_gnullvm    v0.52.4  -> v0.52.6
Updating windows_aarch64_msvc       v0.52.4  -> v0.52.6
Updating windows_i686_gnu           v0.52.4  -> v0.52.6
Adding   windows_i686_gnullvm       v0.52.6
Updating windows_i686_msvc          v0.52.4  -> v0.52.6
Updating windows_x86_64_gnu         v0.52.4  -> v0.52.6
Updating windows_x86_64_gnullvm     v0.52.4  -> v0.52.6
Updating windows_x86_64_msvc        v0.52.4  -> v0.52.6
2024-08-14 15:24:22 +02:00
43f9345ebc [release] logtimes v1.0.9 2024-08-14 15:23:50 +02:00
cb33e3dce9 [deps] cargo update
bumpalo v3.15.4 -> v3.16.0
cc      v1.0.90 -> v1.0.92
chrono  v0.4.35 -> v0.4.37
quote   v1.0.35 -> v1.0.36
syn     v2.0.55 -> v2.0.58
2024-04-12 17:33:32 +02:00
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
c0d9945bcd [release] logtimes v1.0.2 2023-10-29 10:39:28 +01:00
8c8a4ee624 [deps] cargo update
Updating crates.io       index
Updating iana-time-zone  v0.1.57  -> v0.1.58
Updating libc            v0.2.148 -> v0.2.149
Updating num-traits      v0.2.16  -> v0.2.17
Updating proc-macro2     v1.0.67  -> v1.0.69
Updating syn             v2.0.37  -> v2.0.38

Removing windows         v0.48.0

Adding   windows-core    v0.51.1
2023-10-29 10:35:52 +01:00
3 changed files with 90 additions and 74 deletions

136
Cargo.lock generated
View File

@ -19,23 +19,23 @@ dependencies = [
[[package]]
name = "autocfg"
version = "1.1.0"
version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0"
[[package]]
name = "bumpalo"
version = "3.14.0"
version = "3.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f30e7476521f6f8af1a1c4c0b8cc94f0bee37d91763d0ca2665f299b6cd8aec"
checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c"
[[package]]
name = "cc"
version = "1.0.83"
version = "1.1.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0"
checksum = "57b6a275aa2903740dc87da01c62040406b8812552e97129a63ea8850a17c6e6"
dependencies = [
"libc",
"shlex",
]
[[package]]
@ -46,9 +46,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "chrono"
version = "0.4.31"
version = "0.4.38"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f2c685bad3eb3d45a01354cedb7d5faa66194d1d58ba6e267a8de788f79db38"
checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401"
dependencies = [
"android-tzdata",
"iana-time-zone",
@ -58,22 +58,22 @@ dependencies = [
[[package]]
name = "core-foundation-sys"
version = "0.8.4"
version = "0.8.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa"
checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
[[package]]
name = "iana-time-zone"
version = "0.1.57"
version = "0.1.60"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2fad5b825842d2b38bd206f3e81d6957625fd7f0a361e345c30e01a0ae2dd613"
checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141"
dependencies = [
"android_system_properties",
"core-foundation-sys",
"iana-time-zone-haiku",
"js-sys",
"wasm-bindgen",
"windows",
"windows-core",
]
[[package]]
@ -87,70 +87,76 @@ dependencies = [
[[package]]
name = "js-sys"
version = "0.3.64"
version = "0.3.70"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c5f195fe497f702db0f318b07fdd68edb16955aed830df8363d837542f8f935a"
checksum = "1868808506b929d7b0cfa8f75951347aa71bb21144b7791bae35d9bccfcfe37a"
dependencies = [
"wasm-bindgen",
]
[[package]]
name = "libc"
version = "0.2.148"
version = "0.2.158"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9cdc71e17332e86d2e1d38c1f99edcb6288ee11b815fb1a4b049eaa2114d369b"
checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439"
[[package]]
name = "log"
version = "0.4.20"
version = "0.4.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f"
checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"
[[package]]
name = "logtimes"
version = "1.0.0"
version = "1.0.11"
dependencies = [
"chrono",
]
[[package]]
name = "num-traits"
version = "0.2.16"
version = "0.2.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f30b0abd723be7e2ffca1272140fac1a2f084c77ec3e123c192b66af1ee9e6c2"
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
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.67"
version = "1.0.86"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3d433d9f1a3e8c1263d9456598b16fec66f4acc9a74dacffd35c7bb09b3a1328"
checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77"
dependencies = [
"unicode-ident",
]
[[package]]
name = "quote"
version = "1.0.33"
version = "1.0.37"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae"
checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af"
dependencies = [
"proc-macro2",
]
[[package]]
name = "syn"
version = "2.0.37"
name = "shlex"
version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7303ef2c05cd654186cb250d29049a24840ca25d2747c25c0381c8d9e2f582e8"
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
[[package]]
name = "syn"
version = "2.0.77"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9f35bcdf61fd8e7be6caf75f429fdca8beb3ed76584befb503b1569faee373ed"
dependencies = [
"proc-macro2",
"quote",
@ -165,19 +171,20 @@ checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
[[package]]
name = "wasm-bindgen"
version = "0.2.87"
version = "0.2.93"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342"
checksum = "a82edfc16a6c469f5f44dc7b571814045d60404b55a0ee849f9bcfa2e63dd9b5"
dependencies = [
"cfg-if",
"once_cell",
"wasm-bindgen-macro",
]
[[package]]
name = "wasm-bindgen-backend"
version = "0.2.87"
version = "0.2.93"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd"
checksum = "9de396da306523044d3302746f1208fa71d7532227f15e347e2d93e4145dd77b"
dependencies = [
"bumpalo",
"log",
@ -190,9 +197,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro"
version = "0.2.87"
version = "0.2.93"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d"
checksum = "585c4c91a46b072c92e908d99cb1dcdf95c5218eeb6f3bf1efa991ee7a68cccf"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
@ -200,9 +207,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro-support"
version = "0.2.87"
version = "0.2.93"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b"
checksum = "afc340c74d9005395cf9dd098506f7f44e38f2b4a21c6aaacf9a105ea5e1e836"
dependencies = [
"proc-macro2",
"quote",
@ -213,28 +220,29 @@ dependencies = [
[[package]]
name = "wasm-bindgen-shared"
version = "0.2.87"
version = "0.2.93"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1"
checksum = "c62a0a307cb4a311d3a07867860911ca130c3494e8c2719593806c08bc5d0484"
[[package]]
name = "windows"
version = "0.48.0"
name = "windows-core"
version = "0.52.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f"
checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9"
dependencies = [
"windows-targets",
]
[[package]]
name = "windows-targets"
version = "0.48.5"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"
checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
dependencies = [
"windows_aarch64_gnullvm",
"windows_aarch64_msvc",
"windows_i686_gnu",
"windows_i686_gnullvm",
"windows_i686_msvc",
"windows_x86_64_gnu",
"windows_x86_64_gnullvm",
@ -243,42 +251,48 @@ dependencies = [
[[package]]
name = "windows_aarch64_gnullvm"
version = "0.48.5"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
[[package]]
name = "windows_aarch64_msvc"
version = "0.48.5"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
[[package]]
name = "windows_i686_gnu"
version = "0.48.5"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
[[package]]
name = "windows_i686_gnullvm"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
[[package]]
name = "windows_i686_msvc"
version = "0.48.5"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
[[package]]
name = "windows_x86_64_gnu"
version = "0.48.5"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
[[package]]
name = "windows_x86_64_gnullvm"
version = "0.48.5"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
[[package]]
name = "windows_x86_64_msvc"
version = "0.48.5"
version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"

View File

@ -1,6 +1,6 @@
[package]
name = "logtimes"
version = "1.0.1"
version = "1.0.11"
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;
}