forked from eclipse-uprotocol/up-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
93 lines (83 loc) · 2.36 KB
/
Cargo.toml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
################################################################################
# Copyright (c) 2023 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
################################################################################
[package]
categories = ["api-bindings"]
description = "The Eclipse uProtocol Rust Language Library"
edition = "2021"
include = [
"/src/*",
"/examples/*",
"/up-spec/up-core-api/uprotocol/*",
"/build.rs",
"/Cargo.toml",
"/README.md",
]
keywords = ["uProtocol", "SDK", "communication"]
license = "Apache-2.0"
name = "up-rust"
readme = "README.md"
repository = "https://github.com/eclipse-uprotocol/up-rust"
rust-version = "1.74.1"
version = "0.2.0"
[features]
default = ["communication"]
communication = ["usubscription", "dep:thiserror", "tokio/sync", "tokio/time"]
udiscovery = []
usubscription = []
utwin = []
util = ["tokio/sync"]
[dependencies]
async-trait = { version = "0.1" }
bytes = { version = "1.7" }
mediatype = "0.19"
protobuf = { version = "3.5", features = ["with-bytes"] }
rand = { version = "0.8" }
thiserror = { version = "1.0", optional = true }
tokio = { version = "1.40", default-features = false, optional = true }
tracing = { version = "0.1", default-features = false, features = [
"log",
"std",
] }
uriparse = { version = "0.6" }
uuid-simd = { version = "0.8", default-features = false, features = [
"std",
"detect",
] }
[build-dependencies]
protobuf-codegen = { version = "3.5" }
protoc-bin-vendored = { version = "3.0" }
[dev-dependencies]
mockall = "0.13"
test-case = { version = "3.3" }
tokio = { version = "1.40", default-features = false, features = [
"macros",
"rt",
"rt-multi-thread",
"sync",
"time",
] }
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
[package.metadata.docs.rs]
all-features = true
[[example]]
name = "simple_notify"
required-features = ["communication", "util"]
[[example]]
name = "simple_publish"
required-features = ["communication", "util"]
[[example]]
name = "simple_rpc"
required-features = ["communication", "util"]