# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.74.1" name = "up-rust" version = "0.2.0" build = "build.rs" include = [ "/src/*", "/examples/*", "/up-spec/up-core-api/uprotocol/*", "/build.rs", "/Cargo.toml", "/README.md", ] autobins = false autoexamples = false autotests = false autobenches = false description = "The Eclipse uProtocol Rust Language Library" readme = "README.md" keywords = [ "uProtocol", "SDK", "communication", ] categories = ["api-bindings"] license = "Apache-2.0" repository = "https://github.com/eclipse-uprotocol/up-rust" [package.metadata.docs.rs] all-features = true [profile.release] opt-level = 3 lto = "fat" codegen-units = 1 [lib] name = "up_rust" path = "src/lib.rs" [[example]] name = "simple_notify" path = "examples/simple_notify.rs" required-features = [ "communication", "util", ] [[example]] name = "simple_publish" path = "examples/simple_publish.rs" required-features = [ "communication", "util", ] [[example]] name = "simple_rpc" path = "examples/simple_rpc.rs" required-features = [ "communication", "util", ] [dependencies.async-trait] version = "0.1" [dependencies.bytes] version = "1.6.1" [dependencies.mediatype] version = "0.19" [dependencies.protobuf] version = "3.3" features = ["with-bytes"] [dependencies.rand] version = "0.8" [dependencies.thiserror] version = "1.0.52" optional = true [dependencies.tokio] version = "1.35" optional = true default-features = false [dependencies.tracing] version = "0.1.35" features = [ "log", "std", ] default-features = false [dependencies.uriparse] version = "0.6" [dependencies.uuid-simd] version = "0.8" features = [ "std", "detect", ] default-features = false [dev-dependencies.mockall] version = "0.12.1" [dev-dependencies.test-case] version = "3.3" [dev-dependencies.tokio] version = "1.35" features = [ "macros", "rt", "rt-multi-thread", "sync", "time", ] default-features = false [build-dependencies.protobuf-codegen] version = "3.3" [build-dependencies.protoc-bin-vendored] version = "3.0" [features] communication = [ "usubscription", "dep:thiserror", "tokio/sync", "tokio/time", ] default = ["communication"] udiscovery = [] usubscription = [] util = ["tokio/sync"] utwin = []