Use Errno as RPC error type

This commit is contained in:
pjht 2024-10-04 12:35:06 -05:00
parent 432a89e3e9
commit 5fb67ea4b5
Signed by: pjht
GPG Key ID: CA239FC6934E6F3A
2 changed files with 35 additions and 15 deletions

46
Cargo.lock generated
View File

@ -13,9 +13,9 @@ dependencies = [
[[package]]
name = "autocfg"
version = "1.3.0"
version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0"
checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
[[package]]
name = "bitflags"
@ -23,7 +23,7 @@ version = "2.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"
dependencies = [
"serde",
"serde 1.0.210 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
@ -69,7 +69,7 @@ dependencies = [
"bitflags",
"parking_lot",
"postcard",
"serde",
"serde 1.0.210",
]
[[package]]
@ -90,7 +90,7 @@ dependencies = [
"atomic-polyfill",
"hash32",
"rustc_version",
"serde",
"serde 1.0.210 (registry+https://github.com/rust-lang/crates.io-index)",
"spin",
"stable_deref_trait",
]
@ -106,9 +106,9 @@ dependencies = [
[[package]]
name = "libc"
version = "0.2.158"
version = "0.2.159"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439"
checksum = "561d97a539a36e26a9a5fad1ea11a3039a67714694aaa379433e580854bc3dc5"
[[package]]
name = "lock_api"
@ -154,7 +154,7 @@ dependencies = [
"embedded-io 0.6.1",
"heapless",
"postcard-derive",
"serde",
"serde 1.0.210 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
@ -188,9 +188,9 @@ dependencies = [
[[package]]
name = "redox_syscall"
version = "0.5.3"
version = "0.5.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2a908a6e00f1fdd0dfd9c0eb08ce85126f6d8bbda50017e74bc4a4b7d4a926a4"
checksum = "9b6dfecf2c74bce2466cabf93f6664d6998a69eb21e39f4207930065b27b771f"
dependencies = [
"bitflags",
]
@ -216,13 +216,29 @@ version = "1.0.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b"
[[package]]
name = "serde"
version = "1.0.210"
dependencies = [
"serde_derive 1.0.210",
]
[[package]]
name = "serde"
version = "1.0.210"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c8e3592472072e6e22e0a54d5904d9febf8508f65fb8552499a1abc7d1078c3a"
dependencies = [
"serde_derive",
"serde_derive 1.0.210 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "serde_derive"
version = "1.0.210"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.79",
]
[[package]]
@ -233,7 +249,7 @@ checksum = "243902eda00fad750862fc144cea25caca5e20d615af0a81bee94ca738f1df1f"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.77",
"syn 2.0.79",
]
[[package]]
@ -270,9 +286,9 @@ dependencies = [
[[package]]
name = "syn"
version = "2.0.77"
version = "2.0.79"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9f35bcdf61fd8e7be6caf75f429fdca8beb3ed76584befb503b1569faee373ed"
checksum = "89132cd0bf050864e1d38dc3bbc07a0eb8e7530af26344d3d2bbbef83499f590"
dependencies = [
"proc-macro2",
"quote",
@ -301,7 +317,7 @@ dependencies = [
name = "syslog_structs"
version = "0.1.0"
dependencies = [
"serde",
"serde 1.0.210",
]
[[package]]

View File

@ -7,3 +7,7 @@ edition = "2021"
file_rpc = { version = "0.1.0", path = "../file_rpc" }
syslog_msg_ipc = { version = "0.1.0", path = "../syslog/syslog_msg_ipc" }
syslog_rpc = { version = "0.1.0", path = "../syslog/syslog_rpc" }
[patch.crates-io]
serde = { path = "../serde/serde" }
serde_derive = { path = "../serde/serde_derive" }