-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
56 lines (49 loc) · 1.75 KB
/
Copy pathCargo.toml
File metadata and controls
56 lines (49 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[package]
name = "uni_error"
version = "0.11.4"
authors = ["Scott Meeuwsen <smeeuwsen@gmail.com>"]
license = "MIT OR Apache-2.0"
description = "A simple, universal error type for Rust"
repository = "https://github.com/nu11ptr/uni_error"
documentation = "https://docs.rs/uni_error"
keywords = ["error", "error-handling"]
categories = ["rust-patterns", "no-std"]
readme = "README.md"
edition = "2024"
[features]
default = ["std"]
backtrace = ["std"]
std = []
# Axum specific IntoResponse implementation. Enable one or the other, not both.
axum_code = ["dep:axum", "dep:http"]
axum_code2 = ["dep:axum", "dep:http"]
# Generic HTTP status code (if not using Axum). Enable one or the other, not both.
http_code = ["dep:http"]
http_code2 = ["dep:http"]
# Tonic specific Code/Status implementation. Enable one or the other, not both.
tonic_code = ["dep:tonic"]
tonic_code2 = ["dep:tonic"]
# ConnectRPC specific ErrorCode/ConnectError implementation. Enable one or the other, not both.
connect_code = ["dep:connectrpc"]
connect_code2 = ["dep:connectrpc"]
[dependencies.axum]
# Axum hasn't hit 1.0 yet, and 0.1 and up implement IntoResponse the way we need, so make this as broad as possible.
version = "> 0.1, < 2.0"
default-features = false
optional = true
[dependencies.http]
version = "1"
default-features = false
optional = true
[dependencies.tonic]
# Tonic hasn't hit 1.0 yet, and 0.1 and up implement Code/Status the way we need, so make this as broad as possible.
version = ">= 0.1, < 2.0"
default-features = false
optional = true
[dependencies.connectrpc]
# ConnectRPC hasn't hit 1.0 yet. The ErrorCode/ConnectError API used here is available from 0.2 onward.
version = ">= 0.2, < 1.0"
default-features = false
optional = true
[package.metadata.docs.rs]
features = ["backtrace", "std"]