Compare commits

...

54 Commits
v1.0.5 ... main

Author SHA1 Message Date
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
7bf1352738
[release] logtimes v1.0.23 2024-11-18 11:54:04 +01:00
7f0a8929fe
[deps] cargo update
Updating cc   v1.1.31  -> v1.2.1
Updating libc v0.2.161 -> v0.2.164
Updating syn  v2.0.85  -> v2.0.87
2024-11-18 11:53:57 +01:00
6d776af6d1
[release] logtimes v1.0.22 2024-10-24 11:34:20 +02:00
098b7bbe26
[deps] cargo update
Updating syn v2.0.82 -> v2.0.85
2024-10-24 11:34:13 +02:00
57eed0f5ac
[release] logtimes v1.0.21 2024-10-23 16:35:14 +02:00
896acd090f
[deps] cargo update
Updating proc-macro2 v1.0.88 -> v1.0.89
2024-10-23 16:35:13 +02:00
3e1d0d8bc7
[release] logtimes v1.0.20 2024-10-21 13:51:05 +02:00
ef9706ec58
[deps] cargo update
Updating cc  v1.1.30 -> v1.1.31
Updating syn v2.0.79 -> v2.0.82
2024-10-21 13:50:56 +02:00
bc536a3308
[release] logtimes v1.0.19 2024-10-18 14:41:25 +02:00
e511fe2679
[deps] cargo update
Updating cc          v1.1.29  -> v1.1.30
Updating libc        v0.2.159 -> v0.2.161
Updating proc-macro2 v1.0.87  -> v1.0.88
2024-10-18 14:41:16 +02:00
92e8b0f498
[release] logtimes v1.0.18 2024-10-11 16:01:00 +02:00
af8642baaa
[deps] cargo update
Updating cc                         v1.1.28 -> v1.1.29
Updating js-sys                     v0.3.71 -> v0.3.72
Updating wasm-bindgen-backend       v0.2.94 -> v0.2.95
Updating wasm-bindgen-macro-support v0.2.94 -> v0.2.95
Updating wasm-bindgen-macro         v0.2.94 -> v0.2.95
Updating wasm-bindgen-shared        v0.2.94 -> v0.2.95
Updating wasm-bindgen               v0.2.94 -> v0.2.95
2024-10-11 16:00:53 +02:00
1c973cc44e
[release] logtimes v1.0.17 2024-10-10 12:51:00 +02:00
ac388c8517
[deps] cargo update
Updating cc                         v1.1.27 -> v1.1.28
Updating js-sys                     v0.3.70 -> v0.3.71
Updating proc-macro2                v1.0.86 -> v1.0.87
Updating wasm-bindgen-backend       v0.2.93 -> v0.2.94
Updating wasm-bindgen-macro-support v0.2.93 -> v0.2.94
Updating wasm-bindgen-macro         v0.2.93 -> v0.2.94
Updating wasm-bindgen-shared        v0.2.93 -> v0.2.94
Updating wasm-bindgen               v0.2.93 -> v0.2.94
2024-10-10 12:50:46 +02:00
2f496265af
[release] logtimes v1.0.16 2024-10-06 08:57:42 +02:00
df42841fd1
[deps] cargo update
Updating autocfg   v1.3.0  -> v1.4.0
Updating cc        v1.1.21 -> v1.1.27
Updating once_cell v1.19.0 -> v1.20.2
Updating syn       v2.0.77 -> v2.0.79
2024-10-06 08:57:27 +02:00
9791354234
[release] logtimes v1.0.15 2024-09-25 23:07:09 +02:00
e85bb2298b
[deps] cargo update
Updating libc v0.2.158 -> v0.2.159
2024-09-25 23:06:55 +02:00
95da70b177
[release] logtimes v1.0.14 2024-09-19 10:59:47 +02:00
9418cdaced
[deps] cargo update
Updating cc             v1.1.18 -> v1.1.21
Updating iana-time-zone v0.1.60 -> v0.1.61
Updating unicode-ident  v1.0.12 -> v1.0.13
2024-09-19 10:59:35 +02:00
ab38176adb
[release] logtimes v1.0.13 2024-09-09 11:19:59 +02:00
ce8ac3c7f2
[deps] cargo update
Updating cc v1.1.16 -> v1.1.18
2024-09-09 11:19:49 +02:00
a6d8eba632
[clippy] fix: byte array -> byte str 2024-09-09 11:19:02 +02:00
e5952d5467
[clippy] quirk in Cargo.toml for pedantic lint 2024-09-09 11:17:00 +02:00
90f1515166
[release] logtimes v1.0.12 2024-09-04 16:47:18 +02:00
fb4d9ee3f4
[chg] only 3 decimal places (save space) 2024-09-04 16:47:01 +02:00
2597cc87b8
[deps] cargo update
Updating cc v1.1.15 -> v1.1.16
2024-09-04 16:45:45 +02:00
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
3 changed files with 111 additions and 105 deletions

189
Cargo.lock generated
View File

@ -1,6 +1,6 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
version = 4
[[package]]
name = "android-tzdata"
@ -19,23 +19,23 @@ dependencies = [
[[package]]
name = "autocfg"
version = "1.1.0"
version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
[[package]]
name = "bumpalo"
version = "3.14.0"
version = "3.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f30e7476521f6f8af1a1c4c0b8cc94f0bee37d91763d0ca2665f299b6cd8aec"
checksum = "1628fb46dfa0b37568d12e5edd512553eccf6a22a78e8bde00bb4aed84d5bdbf"
[[package]]
name = "cc"
version = "1.0.83"
version = "1.2.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0"
checksum = "525046617d8376e3db1deffb079e91cef90a89fc3ca5c185bbf8c9ecdd15cd5c"
dependencies = [
"libc",
"shlex",
]
[[package]]
@ -46,32 +46,33 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "chrono"
version = "0.4.33"
version = "0.4.40"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9f13690e35a5e4ace198e7beea2895d29f3a9cc55015fcebe6336bd2010af9eb"
checksum = "1a7964611d71df112cb1730f2ee67324fcf4d0fc6606acbbe9bfe06df124637c"
dependencies = [
"android-tzdata",
"iana-time-zone",
"num-traits",
"windows-targets",
"windows-link",
]
[[package]]
name = "core-foundation-sys"
version = "0.8.6"
version = "0.8.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f"
checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
[[package]]
name = "iana-time-zone"
version = "0.1.60"
version = "0.1.63"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141"
checksum = "b0c919e5debc312ad217002b8048a17b7d83f80703865bbfcfebb0458b0b27d8"
dependencies = [
"android_system_properties",
"core-foundation-sys",
"iana-time-zone-haiku",
"js-sys",
"log",
"wasm-bindgen",
"windows-core",
]
@ -87,70 +88,83 @@ dependencies = [
[[package]]
name = "js-sys"
version = "0.3.68"
version = "0.3.77"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "406cda4b368d531c842222cf9d2600a9a4acce8d29423695379c6868a143a9ee"
checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f"
dependencies = [
"once_cell",
"wasm-bindgen",
]
[[package]]
name = "libc"
version = "0.2.153"
version = "0.2.171"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd"
checksum = "c19937216e9d3aa9956d9bb8dfc0b0c8beb6058fc4f7a4dc4d850edf86a237d6"
[[package]]
name = "log"
version = "0.4.20"
version = "0.4.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f"
checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94"
[[package]]
name = "logtimes"
version = "1.0.5"
version = "1.0.28"
dependencies = [
"chrono",
]
[[package]]
name = "num-traits"
version = "0.2.18"
version = "0.2.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "da0df0e5185db44f69b44f26786fe401b6c293d1907744beaa7fa62b2e5a517a"
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
dependencies = [
"autocfg",
]
[[package]]
name = "once_cell"
version = "1.19.0"
version = "1.21.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
[[package]]
name = "proc-macro2"
version = "1.0.78"
version = "1.0.94"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae"
checksum = "a31971752e70b8b2686d7e46ec17fb38dad4051d94024c88df49b667caea9c84"
dependencies = [
"unicode-ident",
]
[[package]]
name = "quote"
version = "1.0.35"
version = "1.0.40"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef"
checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
dependencies = [
"proc-macro2",
]
[[package]]
name = "syn"
version = "2.0.48"
name = "rustversion"
version = "1.0.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0f3531638e407dfc0814761abb7c00a5b54992b849452a0646b7f65c9f770f3f"
checksum = "eded382c5f5f786b989652c49544c4877d9f015cc22e145a5ea8ea66c2921cd2"
[[package]]
name = "shlex"
version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
[[package]]
name = "syn"
version = "2.0.100"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b09a44accad81e1ba1cd74a32461ba89dee89095ba17b32f5d03683b1b1fc2a0"
dependencies = [
"proc-macro2",
"quote",
@ -159,29 +173,30 @@ dependencies = [
[[package]]
name = "unicode-ident"
version = "1.0.12"
version = "1.0.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
[[package]]
name = "wasm-bindgen"
version = "0.2.91"
version = "0.2.100"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c1e124130aee3fb58c5bdd6b639a0509486b0338acaaae0c84a5124b0f588b7f"
checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5"
dependencies = [
"cfg-if",
"once_cell",
"rustversion",
"wasm-bindgen-macro",
]
[[package]]
name = "wasm-bindgen-backend"
version = "0.2.91"
version = "0.2.100"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c9e7e1900c352b609c8488ad12639a311045f40a35491fb69ba8c12f758af70b"
checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6"
dependencies = [
"bumpalo",
"log",
"once_cell",
"proc-macro2",
"quote",
"syn",
@ -190,9 +205,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro"
version = "0.2.91"
version = "0.2.100"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b30af9e2d358182b5c7449424f017eba305ed32a7010509ede96cdc4696c46ed"
checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
@ -200,9 +215,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro-support"
version = "0.2.91"
version = "0.2.100"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "642f325be6301eb8107a83d12a8ac6c1e1c54345a7ef1a9261962dfefda09e66"
checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de"
dependencies = [
"proc-macro2",
"quote",
@ -213,72 +228,68 @@ dependencies = [
[[package]]
name = "wasm-bindgen-shared"
version = "0.2.91"
version = "0.2.100"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4f186bd2dcf04330886ce82d6f33dd75a7bfcf69ecf5763b89fcde53b6ac9838"
checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d"
dependencies = [
"unicode-ident",
]
[[package]]
name = "windows-core"
version = "0.52.0"
version = "0.61.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9"
checksum = "4763c1de310c86d75a878046489e2e5ba02c649d185f21c67d4cf8a56d098980"
dependencies = [
"windows-targets",
"windows-implement",
"windows-interface",
"windows-link",
"windows-result",
"windows-strings",
]
[[package]]
name = "windows-targets"
version = "0.52.0"
name = "windows-implement"
version = "0.60.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a18201040b24831fbb9e4eb208f8892e1f50a37feb53cc7ff887feb8f50e7cd"
checksum = "a47fddd13af08290e67f4acabf4b459f647552718f683a7b415d290ac744a836"
dependencies = [
"windows_aarch64_gnullvm",
"windows_aarch64_msvc",
"windows_i686_gnu",
"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.0"
name = "windows-interface"
version = "0.59.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cb7764e35d4db8a7921e09562a0304bf2f93e0a51bfccee0bd0bb0b666b015ea"
checksum = "bd9211b69f8dcdfa817bfd14bf1c97c9188afa36f4750130fcdf3f400eca9fa8"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "windows_aarch64_msvc"
version = "0.52.0"
name = "windows-link"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bbaa0368d4f1d2aaefc55b6fcfee13f41544ddf36801e793edbbfd7d7df075ef"
checksum = "76840935b766e1b0a05c0066835fb9ec80071d4c09a16f6bd5f7e655e3c14c38"
[[package]]
name = "windows_i686_gnu"
version = "0.52.0"
name = "windows-result"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a28637cb1fa3560a16915793afb20081aba2c92ee8af57b4d5f28e4b3e7df313"
checksum = "c64fd11a4fd95df68efcfee5f44a294fe71b8bc6a91993e2791938abcc712252"
dependencies = [
"windows-link",
]
[[package]]
name = "windows_i686_msvc"
version = "0.52.0"
name = "windows-strings"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ffe5e8e31046ce6230cc7215707b816e339ff4d4d67c65dffa206fd0f7aa7b9a"
[[package]]
name = "windows_x86_64_gnu"
version = "0.52.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3d6fa32db2bc4a2f5abeacf2b69f7992cd09dca97498da74a151a3132c26befd"
[[package]]
name = "windows_x86_64_gnullvm"
version = "0.52.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1a657e1e9d3f514745a572a6846d3c7aa7dbe1658c056ed9c3344c4109a6949e"
[[package]]
name = "windows_x86_64_msvc"
version = "0.52.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04"
checksum = "7a2ba9642430ee452d5a7aa78d72907ebe8cfda358e8cb7918a2050581322f97"
dependencies = [
"windows-link",
]

View File

@ -1,6 +1,6 @@
[package]
name = "logtimes"
version = "1.0.5"
version = "1.0.28"
authors = ["Paul Schulze <p.schulze@avm.de>"]
edition = "2021"
@ -13,7 +13,7 @@ features = ["std", "clock"]
unsafe_code = "forbid"
[lints.clippy]
pedantic = "warn"
pedantic = { level = "warn", priority = -1 }
todo = "warn"
unwrap_used = "warn"
inline_always = "allow"

View File

@ -1,16 +1,15 @@
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::*;
const TIME_FORMAT: &str = "%H:%M:%S%.6f";
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,
@ -45,12 +42,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
}
@ -91,15 +86,15 @@ fn run() -> LogtimesResult {
let end = trim_end(&linebuf);
out.write_all(&linebuf[..end])?;
out.write_all(&[b'\r', b'\n'])?;
out.write_all(b"\r\n")?;
out.flush()?;
if let Some(ref mut f) = log_file {
print_time(f)?;
f.write_all(&linebuf[..end])?;
f.write_all(&[b'\n'])?;
f.write_all(b"\n")?;
f.flush()?;
};
}
// clear line buffer, so it is fresh for the next line
linebuf.clear();