64 Commits

Author SHA1 Message Date
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
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
17938ecf25 [release] logtimes v1.0.1 2023-09-19 20:50:52 +02:00
e040c6e2b5 [deps] cargo update
Updating  bumpalo                       v3.13.0   ->  v3.14.0
Updating  cc                            v1.0.82   ->  v1.0.83
Updating  chrono                        v0.4.26   ->  v0.4.31
Updating  libc                          v0.2.147  ->  v0.2.148
Updating  proc-macro2                   v1.0.66   ->  v1.0.67
Updating  syn                           v2.0.29   ->  v2.0.37
Updating  unicode-ident                 v1.0.11   ->  v1.0.12

Removing  winapi                        v0.3.9
Removing  winapi-i686-pc-windows-gnu    v0.4.0
Removing  winapi-x86_64-pc-windows-gnu  v0.4.0
2023-09-19 20:47:45 +02:00
30ff60bb7c [build] reordered entries in profile.release 2023-09-19 20:47:21 +02:00
3 changed files with 100 additions and 108 deletions

167
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.13.0"
version = "3.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a3e2c3daef883ecc1b5d58c15adae93470a91d425f3532ba1695849656af3fc1"
checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c"
[[package]]
name = "cc"
version = "1.0.82"
version = "1.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "305fe645edc1442a0fa8b6726ba61d422798d37a52e12eaecf4b022ebbb88f01"
checksum = "f34d93e62b03caf570cccc334cbc6c2fceca82f39211051345108adcba3eebdc"
dependencies = [
"libc",
"shlex",
]
[[package]]
@ -46,34 +46,34 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "chrono"
version = "0.4.26"
version = "0.4.38"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec837a71355b28f6556dbd569b37b3f363091c0bd4b2e735674521b4c5fd9bc5"
checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401"
dependencies = [
"android-tzdata",
"iana-time-zone",
"num-traits",
"winapi",
"windows-targets",
]
[[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.61"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2fad5b825842d2b38bd206f3e81d6957625fd7f0a361e345c30e01a0ae2dd613"
checksum = "235e081f3925a06703c2d0117ea8b91f042756fd6e7a6e5d901e8ca1a996b220"
dependencies = [
"android_system_properties",
"core-foundation-sys",
"iana-time-zone-haiku",
"js-sys",
"wasm-bindgen",
"windows",
"windows-core",
]
[[package]]
@ -87,70 +87,77 @@ dependencies = [
[[package]]
name = "js-sys"
version = "0.3.64"
version = "0.3.74"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c5f195fe497f702db0f318b07fdd68edb16955aed830df8363d837542f8f935a"
checksum = "a865e038f7f6ed956f788f0d7d60c541fff74c7bd74272c5d4cf15c63743e705"
dependencies = [
"once_cell",
"wasm-bindgen",
]
[[package]]
name = "libc"
version = "0.2.147"
version = "0.2.167"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b4668fb0ea861c1df094127ac5f1da3409a82116a4ba74fca2e58ef927159bb3"
checksum = "09d6582e104315a817dff97f75133544b2e094ee22447d2acf4a74e189ba06fc"
[[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.25"
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.20.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d"
checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775"
[[package]]
name = "proc-macro2"
version = "1.0.66"
version = "1.0.92"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "18fb31db3f9bddb2ea821cde30a9f70117e3f119938b5ee630b7403aa6e2ead9"
checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0"
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.29"
name = "shlex"
version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c324c494eba9d92503e6f1ef2e6df781e78f6a7705a0202d9801b198807d518a"
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
[[package]]
name = "syn"
version = "2.0.90"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "919d3b74a5dd0ccd15aeb8f93e7006bd9e14c295087c9896a110f490752bcf31"
dependencies = [
"proc-macro2",
"quote",
@ -159,25 +166,26 @@ dependencies = [
[[package]]
name = "unicode-ident"
version = "1.0.11"
version = "1.0.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "301abaae475aa91687eb82514b328ab47a211a533026cb25fc3e519b86adfc3c"
checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83"
[[package]]
name = "wasm-bindgen"
version = "0.2.87"
version = "0.2.97"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342"
checksum = "d15e63b4482863c109d70a7b8706c1e364eb6ea449b201a76c5b89cedcec2d5c"
dependencies = [
"cfg-if",
"once_cell",
"wasm-bindgen-macro",
]
[[package]]
name = "wasm-bindgen-backend"
version = "0.2.87"
version = "0.2.97"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd"
checksum = "8d36ef12e3aaca16ddd3f67922bc63e48e953f126de60bd33ccc0101ef9998cd"
dependencies = [
"bumpalo",
"log",
@ -190,9 +198,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro"
version = "0.2.87"
version = "0.2.97"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d"
checksum = "705440e08b42d3e4b36de7d66c944be628d579796b8090bfa3471478a2260051"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
@ -200,9 +208,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro-support"
version = "0.2.87"
version = "0.2.97"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b"
checksum = "98c9ae5a76e46f4deecd0f0255cc223cfa18dc9b261213b8aa0c7b36f61b3f1d"
dependencies = [
"proc-macro2",
"quote",
@ -213,50 +221,29 @@ dependencies = [
[[package]]
name = "wasm-bindgen-shared"
version = "0.2.87"
version = "0.2.97"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1"
checksum = "6ee99da9c5ba11bd675621338ef6fa52296b76b83305e9b6e5c77d4c286d6d49"
[[package]]
name = "winapi"
version = "0.3.9"
name = "windows-core"
version = "0.52.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
dependencies = [
"winapi-i686-pc-windows-gnu",
"winapi-x86_64-pc-windows-gnu",
]
[[package]]
name = "winapi-i686-pc-windows-gnu"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
[[package]]
name = "winapi-x86_64-pc-windows-gnu"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
[[package]]
name = "windows"
version = "0.48.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",
@ -265,42 +252,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.0"
version = "1.0.25"
authors = ["Paul Schulze <p.schulze@avm.de>"]
edition = "2021"
@ -9,9 +9,18 @@ version = "0.4"
default-features = false
features = ["std", "clock"]
[lints.rust]
unsafe_code = "forbid"
[lints.clippy]
pedantic = { level = "warn", priority = -1 }
todo = "warn"
unwrap_used = "warn"
inline_always = "allow"
[profile.release]
lto = true
codegen-units = 1
debug = false
strip = true
panic = "unwind"
strip = "symbols"
codegen-units = 1

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,
@ -11,11 +6,10 @@ use std::{
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,
@ -25,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,
@ -38,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,
@ -50,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
}
@ -96,17 +86,17 @@ 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
// clear line buffer, so it is fresh for the next line
linebuf.clear();
continue;
}