Skip to content

Commit

Permalink
RSDK-1871 - Mdns support in rust-utils (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuqdog authored May 2, 2023
1 parent 0021cb4 commit a43e42a
Show file tree
Hide file tree
Showing 4 changed files with 296 additions and 56 deletions.
10 changes: 6 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,13 @@ http = "0.2.7"
http-body = {version = "0.4.4"}
hyper = { version = "0.14.20", features = ["full"] }
interceptor = "0.8.0"
interfaces = "0.0.8"
libc = {version = "0.2"}
log = "0.4.17"
# TODO: We are using a commit hash to include a bug fix that has not yet been
# merged in a crate. Once the new crate is released, please use that instead
# of the git revision below. As of this comment the latest version is `3.0.0`.
mdns = { git = "https://github.com/stuqdog/mdns.git", rev = "5d85dc4bf60e4a7f665d797d3f30d7216118dd3b" }
nalgebra = "0.31.4"
prost = "0.10"
prost-types = "0.10"
Expand All @@ -44,10 +49,7 @@ tower-http = { version = "0.3.3", features = ["add-extension","auth","propagate-
tracing = {version = "0.1.34"}
tracing-subscriber = {version = "0.3.11", features = ["env-filter"]}
webpki-roots = "0.21.1"
# TODO: We are using a commit hash to include a bug fix that has not yet been
# released in a crate. Once the new crate is released, please use that instead
# of the git revision below. As of this comment the latest version is `0.7.1`.
webrtc = { git = "https://github.com/webrtc-rs/webrtc.git", rev = "5aa49c03a183a610b44fe01e9531508e4fddecb1" }
webrtc = "0.7.2"

[dev-dependencies]
async-stream = "0.3.3"
Expand Down
4 changes: 2 additions & 2 deletions examples/src/echo/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ async fn main() -> Result<()> {
let creds = dial::RPCCredentials::new(
None,
"robot-location-secret".to_string(),
"<your secret here>".to_string(),
"<your location secret here>".to_string(),
);

let c = dial::DialOptions::builder()
.uri("<your robot address here>")
.uri("<your robot uri here>")
.with_credentials(creds)
.allow_downgrade()
.connect()
Expand Down
Loading

0 comments on commit a43e42a

Please sign in to comment.