improve error management with thiserror use
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

- add thiserror dependency
- use distinct Error enum in lib and server
This commit is contained in:
Gwen Lg
2024-06-13 23:01:43 +02:00
parent 0d43729a02
commit 1ad5dfbe78
4 changed files with 112 additions and 32 deletions

View File

@ -21,6 +21,7 @@ zip = { version = "2.1.3", optional = true }
mktemp = { version = "0.5.0", optional = true }
rand = { version = "0.8.5", optional = true }
port_scanner = { version = "0.1.5", optional = true }
thiserror = "1.0.61"
[features]
embedded-server = ["zip", "mktemp", "rand", "port_scanner"]