Compare commits
	
		
			1 Commits
		
	
	
		
			master
			...
			9b2feb5d31
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 9b2feb5d31 | 
| @@ -56,7 +56,7 @@ steps: | ||||
|       - ls -lah target/release/central_backend | ||||
|  | ||||
|   - name: esp32_compile | ||||
|     image: espressif/idf:v5.4.2 | ||||
|     image: espressif/idf:v5.4.1 | ||||
|     commands: | ||||
|       - cd esp32_device | ||||
|       - /opt/esp/entrypoint.sh idf.py build | ||||
|   | ||||
							
								
								
									
										356
									
								
								central_backend/Cargo.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										356
									
								
								central_backend/Cargo.lock
									
									
									
										generated
									
									
									
								
							| @@ -61,9 +61,9 @@ dependencies = [ | ||||
|  | ||||
| [[package]] | ||||
| name = "actix-http" | ||||
| version = "3.11.0" | ||||
| version = "3.10.0" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "44dfe5c9e0004c623edc65391dfd51daa201e7e30ebd9c9bedf873048ec32bc2" | ||||
| checksum = "0fa882656b67966045e4152c634051e70346939fced7117d5f0b52146a7c74c9" | ||||
| dependencies = [ | ||||
|  "actix-codec", | ||||
|  "actix-rt", | ||||
| @@ -90,7 +90,7 @@ dependencies = [ | ||||
|  "mime", | ||||
|  "percent-encoding", | ||||
|  "pin-project-lite", | ||||
|  "rand 0.9.2", | ||||
|  "rand 0.9.1", | ||||
|  "sha1", | ||||
|  "smallvec", | ||||
|  "tokio", | ||||
| @@ -201,9 +201,9 @@ dependencies = [ | ||||
|  | ||||
| [[package]] | ||||
| name = "actix-server" | ||||
| version = "2.6.0" | ||||
| version = "2.5.1" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "a65064ea4a457eaf07f2fba30b4c695bf43b721790e9530d26cb6f9019ff7502" | ||||
| checksum = "6398974fd4284f4768af07965701efbbb5fdc0616bff20cade1bb14b77675e24" | ||||
| dependencies = [ | ||||
|  "actix-rt", | ||||
|  "actix-service", | ||||
| @@ -211,7 +211,7 @@ dependencies = [ | ||||
|  "futures-core", | ||||
|  "futures-util", | ||||
|  "mio", | ||||
|  "socket2 0.5.10", | ||||
|  "socket2", | ||||
|  "tokio", | ||||
|  "tracing", | ||||
| ] | ||||
| @@ -274,9 +274,9 @@ dependencies = [ | ||||
|  | ||||
| [[package]] | ||||
| name = "actix-web" | ||||
| version = "4.11.0" | ||||
| version = "4.10.2" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "a597b77b5c6d6a1e1097fddde329a83665e25c5437c696a3a9a4aa514a614dea" | ||||
| checksum = "f2e3b15b3dc6c6ed996e4032389e9849d4ab002b1e92fbfe85b5f307d1479b4d" | ||||
| dependencies = [ | ||||
|  "actix-codec", | ||||
|  "actix-http", | ||||
| @@ -310,7 +310,7 @@ dependencies = [ | ||||
|  "serde_json", | ||||
|  "serde_urlencoded", | ||||
|  "smallvec", | ||||
|  "socket2 0.5.10", | ||||
|  "socket2", | ||||
|  "time", | ||||
|  "tracing", | ||||
|  "url", | ||||
| @@ -413,6 +413,12 @@ dependencies = [ | ||||
|  "alloc-no-stdlib", | ||||
| ] | ||||
|  | ||||
| [[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" | ||||
| @@ -474,9 +480,9 @@ dependencies = [ | ||||
|  | ||||
| [[package]] | ||||
| name = "anyhow" | ||||
| version = "1.0.100" | ||||
| version = "1.0.98" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61" | ||||
| checksum = "e16d2d3311acee920a9eb8d33b8cbc1787ce4a264e85f964c2404b969bdcd487" | ||||
|  | ||||
| [[package]] | ||||
| name = "arbitrary" | ||||
| @@ -489,9 +495,9 @@ dependencies = [ | ||||
|  | ||||
| [[package]] | ||||
| name = "asn1" | ||||
| version = "0.22.0" | ||||
| version = "0.21.0" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "df42c2b01c5e1060b8281f67b4e5fb858260694916a667345a7305cd11e5dbfa" | ||||
| checksum = "9c48ea2b435a08bc0fc63de853bda3d5dd1b794ce5f188edd036ad39a7c069d9" | ||||
| dependencies = [ | ||||
|  "asn1_derive", | ||||
|  "itoa", | ||||
| @@ -499,9 +505,9 @@ dependencies = [ | ||||
|  | ||||
| [[package]] | ||||
| name = "asn1_derive" | ||||
| version = "0.22.0" | ||||
| version = "0.21.0" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "cdccf849b54365e3693e9a90ad36e4482b79937e6373ac8e2cf229c985187b21" | ||||
| checksum = "67c7e14dc2fafd01c4c68c054e128b770d5a4a07b04d76bfaedca40dce3cb2c0" | ||||
| dependencies = [ | ||||
|  "proc-macro2", | ||||
|  "quote", | ||||
| @@ -532,7 +538,7 @@ dependencies = [ | ||||
|  "miniz_oxide", | ||||
|  "object", | ||||
|  "rustc-demangle", | ||||
|  "windows-targets", | ||||
|  "windows-targets 0.52.6", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| @@ -584,9 +590,9 @@ dependencies = [ | ||||
|  | ||||
| [[package]] | ||||
| name = "brotli" | ||||
| version = "8.0.1" | ||||
| version = "7.0.0" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "9991eea70ea4f293524138648e41ee89b0b2b12ddef3b255effa43c8056e0e0d" | ||||
| checksum = "cc97b8f16f944bba54f0433f07e30be199b6dc2bd25937444bbad560bcea29bd" | ||||
| dependencies = [ | ||||
|  "alloc-no-stdlib", | ||||
|  "alloc-stdlib", | ||||
| @@ -595,9 +601,9 @@ dependencies = [ | ||||
|  | ||||
| [[package]] | ||||
| name = "brotli-decompressor" | ||||
| version = "5.0.0" | ||||
| version = "4.0.2" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "874bb8112abecc98cbd6d81ea4fa7e94fb9449648c93cc89aa40c81c24d7de03" | ||||
| checksum = "74fa05ad7d803d413eb8380983b092cbbaf9a85f151b871360e7b00cd7060b37" | ||||
| dependencies = [ | ||||
|  "alloc-no-stdlib", | ||||
|  "alloc-stdlib", | ||||
| @@ -691,14 +697,14 @@ dependencies = [ | ||||
|  "openssl", | ||||
|  "openssl-sys", | ||||
|  "prettytable-rs", | ||||
|  "rand 0.9.2", | ||||
|  "rand 0.9.1", | ||||
|  "reqwest", | ||||
|  "rust-embed", | ||||
|  "semver", | ||||
|  "serde", | ||||
|  "serde_json", | ||||
|  "serde_yml", | ||||
|  "thiserror 2.0.17", | ||||
|  "thiserror 2.0.12", | ||||
|  "tokio", | ||||
|  "tokio_schedule", | ||||
|  "uuid", | ||||
| @@ -714,15 +720,16 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" | ||||
|  | ||||
| [[package]] | ||||
| name = "chrono" | ||||
| version = "0.4.42" | ||||
| version = "0.4.40" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "145052bdd345b87320e369255277e3fb5152762ad123a901ef5c262dd38fe8d2" | ||||
| checksum = "1a7964611d71df112cb1730f2ee67324fcf4d0fc6606acbbe9bfe06df124637c" | ||||
| dependencies = [ | ||||
|  "android-tzdata", | ||||
|  "iana-time-zone", | ||||
|  "js-sys", | ||||
|  "num-traits", | ||||
|  "wasm-bindgen", | ||||
|  "windows-link 0.2.0", | ||||
|  "windows-link", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| @@ -737,9 +744,9 @@ dependencies = [ | ||||
|  | ||||
| [[package]] | ||||
| name = "clap" | ||||
| version = "4.5.49" | ||||
| version = "4.5.37" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "f4512b90fa68d3a9932cea5184017c5d200f5921df706d45e853537dea51508f" | ||||
| checksum = "eccb054f56cbd38340b380d4a8e69ef1f02f1af43db2f0cc817a4774d80ae071" | ||||
| dependencies = [ | ||||
|  "clap_builder", | ||||
|  "clap_derive", | ||||
| @@ -747,9 +754,9 @@ dependencies = [ | ||||
|  | ||||
| [[package]] | ||||
| name = "clap_builder" | ||||
| version = "4.5.49" | ||||
| version = "4.5.37" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "0025e98baa12e766c67ba13ff4695a887a1eba19569aad00a472546795bd6730" | ||||
| checksum = "efd9466fac8543255d3b1fcad4762c5e116ffe808c8a3043d4263cd4fd4862a2" | ||||
| dependencies = [ | ||||
|  "anstream", | ||||
|  "anstyle", | ||||
| @@ -759,9 +766,9 @@ dependencies = [ | ||||
|  | ||||
| [[package]] | ||||
| name = "clap_derive" | ||||
| version = "4.5.49" | ||||
| version = "4.5.32" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "2a0b5487afeab2deb2ff4e03a807ad1a03ac532ff5a2cee5d86884440c7f7671" | ||||
| checksum = "09176aae279615badda0765c0c0b3f6ed53f4709118af73cf4655d85d1530cd7" | ||||
| dependencies = [ | ||||
|  "heck", | ||||
|  "proc-macro2", | ||||
| @@ -1525,28 +1532,21 @@ dependencies = [ | ||||
|  | ||||
| [[package]] | ||||
| name = "hyper-util" | ||||
| version = "0.1.14" | ||||
| version = "0.1.10" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "dc2fdfdbff08affe55bb779f33b053aa1fe5dd5b54c257343c17edfa55711bdb" | ||||
| checksum = "df2dcfbe0677734ab2f3ffa7fa7bfd4706bfdc1ef393f2ee30184aed67e631b4" | ||||
| dependencies = [ | ||||
|  "base64 0.22.1", | ||||
|  "bytes", | ||||
|  "futures-channel", | ||||
|  "futures-core", | ||||
|  "futures-util", | ||||
|  "http 1.3.1", | ||||
|  "http-body", | ||||
|  "hyper", | ||||
|  "ipnet", | ||||
|  "libc", | ||||
|  "percent-encoding", | ||||
|  "pin-project-lite", | ||||
|  "socket2 0.5.10", | ||||
|  "system-configuration", | ||||
|  "socket2", | ||||
|  "tokio", | ||||
|  "tower-service", | ||||
|  "tracing", | ||||
|  "windows-registry", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| @@ -1743,33 +1743,12 @@ dependencies = [ | ||||
|  "generic-array", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| name = "io-uring" | ||||
| version = "0.7.9" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "d93587f37623a1a17d94ef2bc9ada592f5465fe7732084ab7beefabe5c77c0c4" | ||||
| dependencies = [ | ||||
|  "bitflags", | ||||
|  "cfg-if", | ||||
|  "libc", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| name = "ipnet" | ||||
| version = "2.11.0" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130" | ||||
|  | ||||
| [[package]] | ||||
| name = "iri-string" | ||||
| version = "0.7.8" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "dbc5ebe9c3a1a7a5127f920a418f7585e9e758e911d0466ed004f393b0e380b2" | ||||
| dependencies = [ | ||||
|  "memchr", | ||||
|  "serde", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| name = "is-terminal" | ||||
| version = "0.4.16" | ||||
| @@ -1888,9 +1867,9 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" | ||||
|  | ||||
| [[package]] | ||||
| name = "libc" | ||||
| version = "0.2.177" | ||||
| version = "0.2.172" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "2874a2af47a2325c2001a6e6fad9b16a53b802102b528163885171cf92b15976" | ||||
| checksum = "d750af042f7ef4f724306de029d18836c26c1765a54a6a3f094cbd23a7267ffa" | ||||
|  | ||||
| [[package]] | ||||
| name = "libredox" | ||||
| @@ -1959,9 +1938,9 @@ checksum = "9374ef4228402d4b7e403e5838cb880d9ee663314b0a900d5a6aabf0c213552e" | ||||
|  | ||||
| [[package]] | ||||
| name = "log" | ||||
| version = "0.4.28" | ||||
| version = "0.4.27" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432" | ||||
| checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94" | ||||
|  | ||||
| [[package]] | ||||
| name = "lzma-rs" | ||||
| @@ -2101,9 +2080,9 @@ checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381" | ||||
|  | ||||
| [[package]] | ||||
| name = "openssl" | ||||
| version = "0.10.74" | ||||
| version = "0.10.72" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "24ad14dd45412269e1a30f52ad8f0664f0f4f4a89ee8fe28c3b3527021ebb654" | ||||
| checksum = "fedfea7d58a1f73118430a55da6a286e7b044961736ce96a16a17068ea25e5da" | ||||
| dependencies = [ | ||||
|  "bitflags", | ||||
|  "cfg-if", | ||||
| @@ -2133,9 +2112,9 @@ checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e" | ||||
|  | ||||
| [[package]] | ||||
| name = "openssl-sys" | ||||
| version = "0.9.110" | ||||
| version = "0.9.107" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "0a9f0075ba3c21b09f8e8b2026584b1d18d49388648f2fbbf3c97ea8deced8e2" | ||||
| checksum = "8288979acd84749c744a9014b4382d42b8f7b2592847b5afb2ed29e5d16ede07" | ||||
| dependencies = [ | ||||
|  "cc", | ||||
|  "libc", | ||||
| @@ -2163,7 +2142,7 @@ dependencies = [ | ||||
|  "libc", | ||||
|  "redox_syscall", | ||||
|  "smallvec", | ||||
|  "windows-targets", | ||||
|  "windows-targets 0.52.6", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| @@ -2309,9 +2288,9 @@ dependencies = [ | ||||
|  | ||||
| [[package]] | ||||
| name = "rand" | ||||
| version = "0.9.2" | ||||
| version = "0.9.1" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" | ||||
| checksum = "9fbfd9d094a40bf3ae768db9361049ace4c0e04a4fd6b359518bd7b73a73dd97" | ||||
| dependencies = [ | ||||
|  "rand_chacha 0.9.0", | ||||
|  "rand_core 0.9.3", | ||||
| @@ -2412,14 +2391,15 @@ checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" | ||||
|  | ||||
| [[package]] | ||||
| name = "reqwest" | ||||
| version = "0.12.23" | ||||
| version = "0.12.15" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "d429f34c8092b2d42c7c93cec323bb4adeb7c67698f70839adec842ec10c7ceb" | ||||
| checksum = "d19c46a6fdd48bc4dab94b6103fccc55d34c67cc0ad04653aad4ea2a07cd7bbb" | ||||
| dependencies = [ | ||||
|  "base64 0.22.1", | ||||
|  "bytes", | ||||
|  "encoding_rs", | ||||
|  "futures-core", | ||||
|  "futures-util", | ||||
|  "h2 0.4.8", | ||||
|  "http 1.3.1", | ||||
|  "http-body", | ||||
| @@ -2428,26 +2408,29 @@ dependencies = [ | ||||
|  "hyper-rustls", | ||||
|  "hyper-tls", | ||||
|  "hyper-util", | ||||
|  "ipnet", | ||||
|  "js-sys", | ||||
|  "log", | ||||
|  "mime", | ||||
|  "native-tls", | ||||
|  "once_cell", | ||||
|  "percent-encoding", | ||||
|  "pin-project-lite", | ||||
|  "rustls-pki-types", | ||||
|  "rustls-pemfile", | ||||
|  "serde", | ||||
|  "serde_json", | ||||
|  "serde_urlencoded", | ||||
|  "sync_wrapper", | ||||
|  "system-configuration", | ||||
|  "tokio", | ||||
|  "tokio-native-tls", | ||||
|  "tower", | ||||
|  "tower-http", | ||||
|  "tower-service", | ||||
|  "url", | ||||
|  "wasm-bindgen", | ||||
|  "wasm-bindgen-futures", | ||||
|  "web-sys", | ||||
|  "windows-registry", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| @@ -2466,9 +2449,9 @@ dependencies = [ | ||||
|  | ||||
| [[package]] | ||||
| name = "rust-embed" | ||||
| version = "8.7.2" | ||||
| version = "8.6.0" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "025908b8682a26ba8d12f6f2d66b987584a4a87bc024abc5bbc12553a8cd178a" | ||||
| checksum = "0b3aba5104622db5c9fc61098de54708feb732e7763d7faa2fa625899f00bf6f" | ||||
| dependencies = [ | ||||
|  "rust-embed-impl", | ||||
|  "rust-embed-utils", | ||||
| @@ -2477,9 +2460,9 @@ dependencies = [ | ||||
|  | ||||
| [[package]] | ||||
| name = "rust-embed-impl" | ||||
| version = "8.7.2" | ||||
| version = "8.6.0" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "6065f1a4392b71819ec1ea1df1120673418bf386f50de1d6f54204d836d4349c" | ||||
| checksum = "1f198c73be048d2c5aa8e12f7960ad08443e56fd39cc26336719fdb4ea0ebaae" | ||||
| dependencies = [ | ||||
|  "proc-macro2", | ||||
|  "quote", | ||||
| @@ -2490,9 +2473,9 @@ dependencies = [ | ||||
|  | ||||
| [[package]] | ||||
| name = "rust-embed-utils" | ||||
| version = "8.7.2" | ||||
| version = "8.6.0" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "f6cc0c81648b20b70c491ff8cce00c1c3b223bb8ed2b5d41f0e54c6c4c0a3594" | ||||
| checksum = "5a2fcdc9f40c8dc2922842ca9add611ad19f332227fc651d015881ad1552bd9a" | ||||
| dependencies = [ | ||||
|  "sha2", | ||||
|  "walkdir", | ||||
| @@ -2539,6 +2522,15 @@ dependencies = [ | ||||
|  "zeroize", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| name = "rustls-pemfile" | ||||
| version = "2.2.0" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50" | ||||
| dependencies = [ | ||||
|  "rustls-pki-types", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| name = "rustls-pki-types" | ||||
| version = "1.11.0" | ||||
| @@ -2617,38 +2609,27 @@ dependencies = [ | ||||
|  | ||||
| [[package]] | ||||
| name = "semver" | ||||
| version = "1.0.27" | ||||
| version = "1.0.26" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2" | ||||
| checksum = "56e6fa9c48d24d85fb3de5ad847117517440f6beceb7798af16b4a87d616b8d0" | ||||
| dependencies = [ | ||||
|  "serde", | ||||
|  "serde_core", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| name = "serde" | ||||
| version = "1.0.228" | ||||
| version = "1.0.219" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" | ||||
| dependencies = [ | ||||
|  "serde_core", | ||||
|  "serde_derive", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| name = "serde_core" | ||||
| version = "1.0.228" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" | ||||
| checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6" | ||||
| dependencies = [ | ||||
|  "serde_derive", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| name = "serde_derive" | ||||
| version = "1.0.228" | ||||
| version = "1.0.219" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" | ||||
| checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00" | ||||
| dependencies = [ | ||||
|  "proc-macro2", | ||||
|  "quote", | ||||
| @@ -2657,15 +2638,14 @@ dependencies = [ | ||||
|  | ||||
| [[package]] | ||||
| name = "serde_json" | ||||
| version = "1.0.145" | ||||
| version = "1.0.140" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "402a6f66d8c709116cf22f558eab210f5a50187f702eb4d7e5ef38d9a7f1c79c" | ||||
| checksum = "20068b6e96dc6c9bd23e01df8827e6c7e1f2fddd43c21810382803c136b99373" | ||||
| dependencies = [ | ||||
|  "itoa", | ||||
|  "memchr", | ||||
|  "ryu", | ||||
|  "serde", | ||||
|  "serde_core", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| @@ -2755,7 +2735,7 @@ checksum = "297f631f50729c8c99b84667867963997ec0b50f32b2a7dbcab828ef0541e8bb" | ||||
| dependencies = [ | ||||
|  "num-bigint", | ||||
|  "num-traits", | ||||
|  "thiserror 2.0.17", | ||||
|  "thiserror 2.0.12", | ||||
|  "time", | ||||
| ] | ||||
|  | ||||
| @@ -2776,24 +2756,14 @@ checksum = "7fcf8323ef1faaee30a44a340193b1ac6814fd9b7b4e88e9d4519a3e4abe1cfd" | ||||
|  | ||||
| [[package]] | ||||
| name = "socket2" | ||||
| version = "0.5.10" | ||||
| version = "0.5.8" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "e22376abed350d73dd1cd119b57ffccad95b4e585a7cda43e286245ce23c0678" | ||||
| checksum = "c970269d99b64e60ec3bd6ad27270092a5394c4e309314b18ae3fe575695fbe8" | ||||
| dependencies = [ | ||||
|  "libc", | ||||
|  "windows-sys 0.52.0", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| name = "socket2" | ||||
| version = "0.6.0" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "233504af464074f9d066d7b5416c5f9b894a5862a6506e306f7b816cdd6f1807" | ||||
| dependencies = [ | ||||
|  "libc", | ||||
|  "windows-sys 0.59.0", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| name = "stable_deref_trait" | ||||
| version = "1.2.0" | ||||
| @@ -2899,11 +2869,11 @@ dependencies = [ | ||||
|  | ||||
| [[package]] | ||||
| name = "thiserror" | ||||
| version = "2.0.17" | ||||
| version = "2.0.12" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "f63587ca0f12b72a0600bcba1d40081f830876000bb46dd2337a3051618f4fc8" | ||||
| checksum = "567b8a2dae586314f7be2a752ec7474332959c6460e02bde30d702a66d488708" | ||||
| dependencies = [ | ||||
|  "thiserror-impl 2.0.17", | ||||
|  "thiserror-impl 2.0.12", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| @@ -2919,9 +2889,9 @@ dependencies = [ | ||||
|  | ||||
| [[package]] | ||||
| name = "thiserror-impl" | ||||
| version = "2.0.17" | ||||
| version = "2.0.12" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "3ff15c8ecd7de3849db632e14d18d2571fa09dfc5ed93479bc4485c7a517c913" | ||||
| checksum = "7f7cf42b4507d8ea322120659672cf1b9dbb93f8f2d4ecfd6e51350ff5b17a1d" | ||||
| dependencies = [ | ||||
|  "proc-macro2", | ||||
|  "quote", | ||||
| @@ -2971,22 +2941,20 @@ dependencies = [ | ||||
|  | ||||
| [[package]] | ||||
| name = "tokio" | ||||
| version = "1.47.1" | ||||
| version = "1.44.2" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "89e49afdadebb872d3145a5638b59eb0691ea23e46ca484037cfab3b76b95038" | ||||
| checksum = "e6b88822cbe49de4185e3a4cbf8321dd487cf5fe0c5c65695fef6346371e9c48" | ||||
| dependencies = [ | ||||
|  "backtrace", | ||||
|  "bytes", | ||||
|  "io-uring", | ||||
|  "libc", | ||||
|  "mio", | ||||
|  "parking_lot", | ||||
|  "pin-project-lite", | ||||
|  "signal-hook-registry", | ||||
|  "slab", | ||||
|  "socket2 0.6.0", | ||||
|  "socket2", | ||||
|  "tokio-macros", | ||||
|  "windows-sys 0.59.0", | ||||
|  "windows-sys 0.52.0", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| @@ -3069,24 +3037,6 @@ dependencies = [ | ||||
|  "tower-service", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| name = "tower-http" | ||||
| version = "0.6.6" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "adc82fd73de2a9722ac5da747f12383d2bfdb93591ee6c58486e0097890f05f2" | ||||
| dependencies = [ | ||||
|  "bitflags", | ||||
|  "bytes", | ||||
|  "futures-util", | ||||
|  "http 1.3.1", | ||||
|  "http-body", | ||||
|  "iri-string", | ||||
|  "pin-project-lite", | ||||
|  "tower", | ||||
|  "tower-layer", | ||||
|  "tower-service", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| name = "tower-layer" | ||||
| version = "0.3.3" | ||||
| @@ -3220,14 +3170,12 @@ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" | ||||
|  | ||||
| [[package]] | ||||
| name = "uuid" | ||||
| version = "1.17.0" | ||||
| version = "1.16.0" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "3cf4199d1e5d15ddd86a694e4d0dffa9c323ce759fea589f00fef9d81cc1931d" | ||||
| checksum = "458f7a779bf54acc9f347480ac654f68407d3aab21269a6e3c9f922acd9e2da9" | ||||
| dependencies = [ | ||||
|  "getrandom 0.3.2", | ||||
|  "js-sys", | ||||
|  "serde", | ||||
|  "wasm-bindgen", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| @@ -3400,7 +3348,7 @@ version = "0.52.0" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" | ||||
| dependencies = [ | ||||
|  "windows-targets", | ||||
|  "windows-targets 0.52.6", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| @@ -3409,39 +3357,33 @@ version = "0.1.1" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "76840935b766e1b0a05c0066835fb9ec80071d4c09a16f6bd5f7e655e3c14c38" | ||||
|  | ||||
| [[package]] | ||||
| name = "windows-link" | ||||
| version = "0.2.0" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "45e46c0661abb7180e7b9c281db115305d49ca1709ab8242adf09666d2173c65" | ||||
|  | ||||
| [[package]] | ||||
| name = "windows-registry" | ||||
| version = "0.5.2" | ||||
| version = "0.4.0" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "b3bab093bdd303a1240bb99b8aba8ea8a69ee19d34c9e2ef9594e708a4878820" | ||||
| checksum = "4286ad90ddb45071efd1a66dfa43eb02dd0dfbae1545ad6cc3c51cf34d7e8ba3" | ||||
| dependencies = [ | ||||
|  "windows-link 0.1.1", | ||||
|  "windows-result", | ||||
|  "windows-strings", | ||||
|  "windows-targets 0.53.0", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| name = "windows-result" | ||||
| version = "0.3.4" | ||||
| version = "0.3.2" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6" | ||||
| checksum = "c64fd11a4fd95df68efcfee5f44a294fe71b8bc6a91993e2791938abcc712252" | ||||
| dependencies = [ | ||||
|  "windows-link 0.1.1", | ||||
|  "windows-link", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| name = "windows-strings" | ||||
| version = "0.4.2" | ||||
| version = "0.3.1" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57" | ||||
| checksum = "87fa48cc5d406560701792be122a10132491cff9d0aeb23583cc2dcafc847319" | ||||
| dependencies = [ | ||||
|  "windows-link 0.1.1", | ||||
|  "windows-link", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| @@ -3450,7 +3392,7 @@ version = "0.52.0" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" | ||||
| dependencies = [ | ||||
|  "windows-targets", | ||||
|  "windows-targets 0.52.6", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| @@ -3459,7 +3401,7 @@ version = "0.59.0" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" | ||||
| dependencies = [ | ||||
|  "windows-targets", | ||||
|  "windows-targets 0.52.6", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| @@ -3468,14 +3410,30 @@ version = "0.52.6" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| 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", | ||||
|  "windows_x86_64_msvc", | ||||
|  "windows_aarch64_gnullvm 0.52.6", | ||||
|  "windows_aarch64_msvc 0.52.6", | ||||
|  "windows_i686_gnu 0.52.6", | ||||
|  "windows_i686_gnullvm 0.52.6", | ||||
|  "windows_i686_msvc 0.52.6", | ||||
|  "windows_x86_64_gnu 0.52.6", | ||||
|  "windows_x86_64_gnullvm 0.52.6", | ||||
|  "windows_x86_64_msvc 0.52.6", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| name = "windows-targets" | ||||
| version = "0.53.0" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "b1e4c7e8ceaaf9cb7d7507c974735728ab453b67ef8f18febdd7c11fe59dca8b" | ||||
| dependencies = [ | ||||
|  "windows_aarch64_gnullvm 0.53.0", | ||||
|  "windows_aarch64_msvc 0.53.0", | ||||
|  "windows_i686_gnu 0.53.0", | ||||
|  "windows_i686_gnullvm 0.53.0", | ||||
|  "windows_i686_msvc 0.53.0", | ||||
|  "windows_x86_64_gnu 0.53.0", | ||||
|  "windows_x86_64_gnullvm 0.53.0", | ||||
|  "windows_x86_64_msvc 0.53.0", | ||||
| ] | ||||
|  | ||||
| [[package]] | ||||
| @@ -3484,48 +3442,96 @@ version = "0.52.6" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" | ||||
|  | ||||
| [[package]] | ||||
| name = "windows_aarch64_gnullvm" | ||||
| version = "0.53.0" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "86b8d5f90ddd19cb4a147a5fa63ca848db3df085e25fee3cc10b39b6eebae764" | ||||
|  | ||||
| [[package]] | ||||
| name = "windows_aarch64_msvc" | ||||
| version = "0.52.6" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" | ||||
|  | ||||
| [[package]] | ||||
| name = "windows_aarch64_msvc" | ||||
| version = "0.53.0" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "c7651a1f62a11b8cbd5e0d42526e55f2c99886c77e007179efff86c2b137e66c" | ||||
|  | ||||
| [[package]] | ||||
| name = "windows_i686_gnu" | ||||
| version = "0.52.6" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" | ||||
|  | ||||
| [[package]] | ||||
| name = "windows_i686_gnu" | ||||
| version = "0.53.0" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "c1dc67659d35f387f5f6c479dc4e28f1d4bb90ddd1a5d3da2e5d97b42d6272c3" | ||||
|  | ||||
| [[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_gnullvm" | ||||
| version = "0.53.0" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "9ce6ccbdedbf6d6354471319e781c0dfef054c81fbc7cf83f338a4296c0cae11" | ||||
|  | ||||
| [[package]] | ||||
| name = "windows_i686_msvc" | ||||
| version = "0.52.6" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" | ||||
|  | ||||
| [[package]] | ||||
| name = "windows_i686_msvc" | ||||
| version = "0.53.0" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "581fee95406bb13382d2f65cd4a908ca7b1e4c2f1917f143ba16efe98a589b5d" | ||||
|  | ||||
| [[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_gnu" | ||||
| version = "0.53.0" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "2e55b5ac9ea33f2fc1716d1742db15574fd6fc8dadc51caab1c16a3d3b4190ba" | ||||
|  | ||||
| [[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_gnullvm" | ||||
| version = "0.53.0" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "0a6e035dd0599267ce1ee132e51c27dd29437f63325753051e71dd9e42406c57" | ||||
|  | ||||
| [[package]] | ||||
| name = "windows_x86_64_msvc" | ||||
| version = "0.52.6" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" | ||||
|  | ||||
| [[package]] | ||||
| name = "windows_x86_64_msvc" | ||||
| version = "0.53.0" | ||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||||
| checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486" | ||||
|  | ||||
| [[package]] | ||||
| name = "wit-bindgen-rt" | ||||
| version = "0.39.0" | ||||
|   | ||||
| @@ -4,24 +4,24 @@ version = "1.0.2" | ||||
| edition = "2024" | ||||
|  | ||||
| [dependencies] | ||||
| log = "0.4.28" | ||||
| log = "0.4.27" | ||||
| env_logger = "0.11.8" | ||||
| lazy_static = "1.5.0" | ||||
| dotenvy = "0.15.7" | ||||
| clap = { version = "4.5.49", features = ["derive", "env"] } | ||||
| anyhow = "1.0.100" | ||||
| thiserror = "2.0.17" | ||||
| openssl = { version = "0.10.74" } | ||||
| openssl-sys = "0.9.110" | ||||
| libc = "0.2.177" | ||||
| clap = { version = "4.5.37", features = ["derive", "env"] } | ||||
| anyhow = "1.0.98" | ||||
| thiserror = "2.0.12" | ||||
| openssl = { version = "0.10.72" } | ||||
| openssl-sys = "0.9.107" | ||||
| libc = "0.2.172" | ||||
| foreign-types-shared = "0.1.1" | ||||
| asn1 = "0.22.0" | ||||
| actix-web = { version = "4.11.0", features = ["openssl"] } | ||||
| asn1 = "0.21" | ||||
| actix-web = { version = "4.10.2", features = ["openssl"] } | ||||
| futures = "0.3.31" | ||||
| serde = { version = "1.0.228", features = ["derive"] } | ||||
| reqwest = { version = "0.12.23", features = ["json"] } | ||||
| serde_json = "1.0.145" | ||||
| rand = "0.9.2" | ||||
| serde = { version = "1.0.219", features = ["derive"] } | ||||
| reqwest = { version = "0.12.15", features = ["json"] } | ||||
| serde_json = "1.0.140" | ||||
| rand = "0.9.1" | ||||
| actix = "0.13.5" | ||||
| actix-identity = "0.8.0" | ||||
| actix-session = { version = "0.10.1", features = ["cookie-session"] } | ||||
| @@ -29,16 +29,16 @@ actix-cors = "0.7.1" | ||||
| actix-multipart = { version = "0.7.2", features = ["derive"] } | ||||
| actix-remote-ip = "0.1.0" | ||||
| futures-util = "0.3.31" | ||||
| uuid = { version = "1.17.0", features = ["v4", "serde"] } | ||||
| semver = { version = "1.0.27", features = ["serde"] } | ||||
| uuid = { version = "1.11.0", features = ["v4", "serde"] } | ||||
| semver = { version = "1.0.26", features = ["serde"] } | ||||
| lazy-regex = "3.4.1" | ||||
| tokio = { version = "1.47.1", features = ["full"] } | ||||
| tokio = { version = "1.44.2", features = ["full"] } | ||||
| tokio_schedule = "0.3.2" | ||||
| mime_guess = "2.0.5" | ||||
| rust-embed = "8.7.2" | ||||
| rust-embed = "8.6.0" | ||||
| jsonwebtoken = { version = "9.3.1", features = ["use_pem"] } | ||||
| prettytable-rs = "0.10.0" | ||||
| chrono = "0.4.42" | ||||
| chrono = "0.4.40" | ||||
| serde_yml = "0.0.12" | ||||
| bincode = "2.0.1" | ||||
| fs4 = { version = "0.13.1", features = ["sync"] } | ||||
|   | ||||
| @@ -16,13 +16,11 @@ impl CRLDistributionPointExt { | ||||
|         let crl_bytes = asn1::write(|w| { | ||||
|             w.write_element(&asn1::SequenceWriter::new(&|w| { | ||||
|                 w.write_element(&asn1::SequenceWriter::new(&|w| { | ||||
|                     w.write_tlv(tag_a0, None, |w: &mut asn1::WriteBuf| { | ||||
|                     w.write_tlv(tag_a0, |w| { | ||||
|                         w.push_slice(&asn1::write(|w| { | ||||
|                             w.write_tlv(tag_a0, None, |w: &mut asn1::WriteBuf| { | ||||
|                             w.write_tlv(tag_a0, |w| { | ||||
|                                 w.push_slice(&asn1::write(|w| { | ||||
|                                     w.write_tlv(tag_86, None, |b| { | ||||
|                                         b.push_slice(self.url.as_bytes()) | ||||
|                                     })?; | ||||
|                                     w.write_tlv(tag_86, |b| b.push_slice(self.url.as_bytes()))?; | ||||
|                                     Ok(()) | ||||
|                                 })?) | ||||
|                             })?; | ||||
|   | ||||
| @@ -174,16 +174,17 @@ fn gen_certificate(req: GenCertificateReq) -> anyhow::Result<(Option<Vec<u8>>, V | ||||
|     cert_builder.set_not_after(¬_after)?; | ||||
|  | ||||
|     // Specify CRL URL | ||||
|     if let Some(issuer) = req.issuer | ||||
|         && let Some(crl) = &issuer.crl | ||||
|     { | ||||
|         let crl_url = format!( | ||||
|             "{}/pki/{}", | ||||
|             AppConfig::get().unsecure_origin(), | ||||
|             crl.file_name().unwrap().to_string_lossy() | ||||
|         ); | ||||
|     if let Some(issuer) = req.issuer { | ||||
|         if let Some(crl) = &issuer.crl { | ||||
|             let crl_url = format!( | ||||
|                 "{}/pki/{}", | ||||
|                 AppConfig::get().unsecure_origin(), | ||||
|                 crl.file_name().unwrap().to_string_lossy() | ||||
|             ); | ||||
|  | ||||
|         cert_builder.append_extension(CRLDistributionPointExt { url: crl_url }.as_extension()?)?; | ||||
|             cert_builder | ||||
|                 .append_extension(CRLDistributionPointExt { url: crl_url }.as_extension()?)?; | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     // If cert is a CA or not | ||||
| @@ -423,12 +424,12 @@ fn refresh_crl(d: &CertData, new_cert: Option<&X509>) -> anyhow::Result<()> { | ||||
|         } | ||||
|  | ||||
|         // Add old entries | ||||
|         if let Some(old_crl) = old_crl | ||||
|             && let Some(entries) = old_crl.get_revoked() | ||||
|         { | ||||
|             for entry in entries { | ||||
|                 if X509_CRL_add0_revoked(crl, X509_REVOKED_dup(entry.as_ptr())) == 0 { | ||||
|                     return Err(PKIError::GenCRLError("X509_CRL_add0_revoked").into()); | ||||
|         if let Some(old_crl) = old_crl { | ||||
|             if let Some(entries) = old_crl.get_revoked() { | ||||
|                 for entry in entries { | ||||
|                     if X509_CRL_add0_revoked(crl, X509_REVOKED_dup(entry.as_ptr())) == 0 { | ||||
|                         return Err(PKIError::GenCRLError("X509_CRL_add0_revoked").into()); | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|   | ||||
| @@ -3,6 +3,7 @@ use actix_web::body::BoxBody; | ||||
| use actix_web::http::StatusCode; | ||||
| use std::error::Error; | ||||
| use std::fmt::{Display, Formatter}; | ||||
| use std::io::ErrorKind; | ||||
| use zip::result::ZipError; | ||||
|  | ||||
| /// Custom error to ease controller writing | ||||
| @@ -31,7 +32,7 @@ impl actix_web::error::ResponseError for HttpErr { | ||||
|         } | ||||
|     } | ||||
|     fn error_response(&self) -> HttpResponse<BoxBody> { | ||||
|         log::error!("Error while processing request! {self}"); | ||||
|         log::error!("Error while processing request! {}", self); | ||||
|  | ||||
|         HttpResponse::InternalServerError().body("Failed to execute request!") | ||||
|     } | ||||
| @@ -51,7 +52,7 @@ impl From<serde_json::Error> for HttpErr { | ||||
|  | ||||
| impl From<Box<dyn Error>> for HttpErr { | ||||
|     fn from(value: Box<dyn Error>) -> Self { | ||||
|         HttpErr::Err(std::io::Error::other(value.to_string()).into()) | ||||
|         HttpErr::Err(std::io::Error::new(ErrorKind::Other, value.to_string()).into()) | ||||
|     } | ||||
| } | ||||
|  | ||||
| @@ -81,43 +82,43 @@ impl From<reqwest::header::ToStrError> for HttpErr { | ||||
|  | ||||
| impl From<actix_web::Error> for HttpErr { | ||||
|     fn from(value: actix_web::Error) -> Self { | ||||
|         HttpErr::Err(std::io::Error::other(value.to_string()).into()) | ||||
|         HttpErr::Err(std::io::Error::new(ErrorKind::Other, value.to_string()).into()) | ||||
|     } | ||||
| } | ||||
|  | ||||
| impl From<actix::MailboxError> for HttpErr { | ||||
|     fn from(value: actix::MailboxError) -> Self { | ||||
|         HttpErr::Err(std::io::Error::other(value.to_string()).into()) | ||||
|         HttpErr::Err(std::io::Error::new(ErrorKind::Other, value.to_string()).into()) | ||||
|     } | ||||
| } | ||||
|  | ||||
| impl From<actix_identity::error::GetIdentityError> for HttpErr { | ||||
|     fn from(value: actix_identity::error::GetIdentityError) -> Self { | ||||
|         HttpErr::Err(std::io::Error::other(value.to_string()).into()) | ||||
|         HttpErr::Err(std::io::Error::new(ErrorKind::Other, value.to_string()).into()) | ||||
|     } | ||||
| } | ||||
|  | ||||
| impl From<actix_identity::error::LoginError> for HttpErr { | ||||
|     fn from(value: actix_identity::error::LoginError) -> Self { | ||||
|         HttpErr::Err(std::io::Error::other(value.to_string()).into()) | ||||
|         HttpErr::Err(std::io::Error::new(ErrorKind::Other, value.to_string()).into()) | ||||
|     } | ||||
| } | ||||
|  | ||||
| impl From<openssl::error::ErrorStack> for HttpErr { | ||||
|     fn from(value: openssl::error::ErrorStack) -> Self { | ||||
|         HttpErr::Err(std::io::Error::other(value.to_string()).into()) | ||||
|         HttpErr::Err(std::io::Error::new(ErrorKind::Other, value.to_string()).into()) | ||||
|     } | ||||
| } | ||||
|  | ||||
| impl From<ZipError> for HttpErr { | ||||
|     fn from(value: ZipError) -> Self { | ||||
|         HttpErr::Err(std::io::Error::other(value.to_string()).into()) | ||||
|         HttpErr::Err(std::io::Error::new(ErrorKind::Other, value.to_string()).into()) | ||||
|     } | ||||
| } | ||||
|  | ||||
| impl From<walkdir::Error> for HttpErr { | ||||
|     fn from(value: walkdir::Error) -> Self { | ||||
|         HttpErr::Err(std::io::Error::other(value.to_string()).into()) | ||||
|         HttpErr::Err(std::io::Error::new(ErrorKind::Other, value.to_string()).into()) | ||||
|     } | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -155,11 +155,12 @@ pub async fn sync_device(body: web::Json<JWTRequest>, actor: WebEnergyActor) -> | ||||
|     let mut available_update = None; | ||||
|  | ||||
|     // Check if the version is available | ||||
|     if let Some(desired) = device.desired_version | ||||
|         && claims.info.version < desired | ||||
|         && ota_manager::update_exists(OTAPlatform::from_str(&claims.info.reference)?, &desired)? | ||||
|     { | ||||
|         available_update = Some(desired); | ||||
|     if let Some(desired) = device.desired_version { | ||||
|         if claims.info.version < desired | ||||
|             && ota_manager::update_exists(OTAPlatform::from_str(&claims.info.reference)?, &desired)? | ||||
|         { | ||||
|             available_update = Some(desired); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     Ok(HttpResponse::Ok().json(SyncResult { | ||||
|   | ||||
| @@ -123,17 +123,17 @@ pub async fn set_desired_version( | ||||
|  | ||||
|     for d in devices { | ||||
|         // Filter per platform | ||||
|         if let Some(p) = body.platform | ||||
|             && d.info.reference != p.to_string() | ||||
|         { | ||||
|             continue; | ||||
|         if let Some(p) = body.platform { | ||||
|             if d.info.reference != p.to_string() { | ||||
|                 continue; | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         // Filter per device | ||||
|         if let Some(ids) = &body.devices | ||||
|             && !ids.contains(&d.id) | ||||
|         { | ||||
|             continue; | ||||
|         if let Some(ids) = &body.devices { | ||||
|             if !ids.contains(&d.id) { | ||||
|                 continue; | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         actor | ||||
|   | ||||
							
								
								
									
										1305
									
								
								central_frontend/package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1305
									
								
								central_frontend/package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -11,35 +11,35 @@ | ||||
|   }, | ||||
|   "dependencies": { | ||||
|     "@emotion/react": "^11.14.0", | ||||
|     "@emotion/styled": "^11.14.1", | ||||
|     "@fontsource/roboto": "^5.2.8", | ||||
|     "@emotion/styled": "^11.14.0", | ||||
|     "@fontsource/roboto": "^5.2.5", | ||||
|     "@mdi/js": "^7.4.47", | ||||
|     "@mdi/react": "^1.6.1", | ||||
|     "@mui/icons-material": "^7.3.4", | ||||
|     "@mui/material": "^7.3.4", | ||||
|     "@mui/x-charts": "^7.29.1", | ||||
|     "@mui/x-date-pickers": "^7.29.4", | ||||
|     "@mui/icons-material": "^7.0.2", | ||||
|     "@mui/material": "^7.0.2", | ||||
|     "@mui/x-charts": "^7.28.0", | ||||
|     "@mui/x-date-pickers": "^7.28.2", | ||||
|     "date-and-time": "^3.6.0", | ||||
|     "dayjs": "^1.11.18", | ||||
|     "dayjs": "^1.11.13", | ||||
|     "filesize": "^10.1.6", | ||||
|     "react": "^19.2.0", | ||||
|     "react-dom": "^19.2.0", | ||||
|     "react-router-dom": "^7.9.4", | ||||
|     "semver": "^7.7.3" | ||||
|     "react": "^19.0.0", | ||||
|     "react-dom": "^19.0.0", | ||||
|     "react-router-dom": "^7.4.0", | ||||
|     "semver": "^7.7.1" | ||||
|   }, | ||||
|   "devDependencies": { | ||||
|     "@types/react": "^19.2.2", | ||||
|     "@types/react-dom": "^19.2.2", | ||||
|     "@types/semver": "^7.7.1", | ||||
|     "@typescript-eslint/eslint-plugin": "^8.46.2", | ||||
|     "@typescript-eslint/parser": "^8.46.2", | ||||
|     "@vitejs/plugin-react": "^4.7.0", | ||||
|     "eslint": "^9.38.0", | ||||
|     "@types/react": "^19.0.0", | ||||
|     "@types/react-dom": "^19.0.4", | ||||
|     "@types/semver": "^7.7.0", | ||||
|     "@typescript-eslint/eslint-plugin": "^8.31.0", | ||||
|     "@typescript-eslint/parser": "^8.28.0", | ||||
|     "@vitejs/plugin-react": "^4.3.4", | ||||
|     "eslint": "^9.23.0", | ||||
|     "eslint-plugin-react-hooks": "^5.2.0", | ||||
|     "eslint-plugin-react-refresh": "^0.4.24", | ||||
|     "globals": "^16.4.0", | ||||
|     "typescript": "^5.9.3", | ||||
|     "typescript-eslint": "^8.46.2", | ||||
|     "vite": "^6.4.1" | ||||
|     "eslint-plugin-react-refresh": "^0.4.20", | ||||
|     "globals": "^16.0.0", | ||||
|     "typescript": "^5.8.3", | ||||
|     "typescript-eslint": "^8.24.1", | ||||
|     "vite": "^6.2.3" | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -84,7 +84,7 @@ export function DeployOTAUpdateDialogProvider(p: { | ||||
|             </DialogContentText> | ||||
|  | ||||
|             <FormControl> | ||||
|               <FormLabel>Deployment target</FormLabel> | ||||
|               <FormLabel>Gender</FormLabel> | ||||
|               <RadioGroup | ||||
|                 name="radio-buttons-group" | ||||
|                 value={allDevices} | ||||
|   | ||||
							
								
								
									
										615
									
								
								custom_consumption/Cargo.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										615
									
								
								custom_consumption/Cargo.lock
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -5,8 +5,8 @@ edition = "2024" | ||||
|  | ||||
| [dependencies] | ||||
| env_logger = "0.11.8" | ||||
| log = "0.4.28" | ||||
| clap = { version = "4.5.49", features = ["derive", "env"] } | ||||
| egui = "0.32.3" | ||||
| eframe = "0.32.3" | ||||
| log = "0.4.27" | ||||
| clap = { version = "4.5.37", features = ["derive", "env"] } | ||||
| egui = "0.31.1" | ||||
| eframe = "0.31.1" | ||||
| lazy_static = "1.5.0" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user