Skip to content

Commit

Permalink
chore: fix cyclic dependency in ockam_transport_udp
Browse files Browse the repository at this point in the history
  • Loading branch information
metaclips committed Jul 3, 2024
1 parent 937f5c0 commit ec5e06b
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 13 deletions.
13 changes: 12 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[workspace]
resolver = "2"
members = [
"examples/rust/rendezvous",
"examples/rust/file_transfer",
"examples/rust/get_started",
"examples/rust/tcp_inlet_and_outlet",
Expand Down
25 changes: 25 additions & 0 deletions examples/rust/rendezvous/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[package]
name = "rendezvous"
version = "0.1.0"
authors = ["Ockam Developers"]
edition = "2021"
license = "Apache-2.0"
publish = false
rust-version = "1.56.0"

[dependencies]
ockam = { path = "../../../implementations/rust/ockam/ockam" }
ockam_core = { path = "../../../implementations/rust/ockam/ockam_core" }
ockam_macros = { path = "../../../implementations/rust/ockam/ockam_macros" }
ockam_node = { path = "../../../implementations/rust/ockam/ockam_node" }
ockam_transport_udp = { path = "../../../implementations/rust/ockam/ockam_transport_udp" }
tracing = { version = "0.1", default-features = false }

[[bin]]
name = "client"

[[bin]]
name = "echo_server"

[[bin]]
name = "rendezvous_server"
File renamed without changes.
10 changes: 0 additions & 10 deletions implementations/rust/ockam/ockam_transport_udp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,4 @@ tokio-util = { version = "0.7.11", features = ["net", "codec"] }
tracing = { version = "0.1", default-features = false }

[dev-dependencies]
ockam = { path = "../ockam", version = "^0.129.0" }
ockam_macros = { path = "../ockam_macros", version = "^0.34.0" }

[[example]]
name = "client"

[[example]]
name = "echo_server"

[[example]]
name = "rendezvous_server"
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use ockam::{errcode::Origin, Error};
use ockam_core::Result;
use ockam_core::{errcode::Origin, Error, Result};
use std::net::SocketAddr;
use tokio::net::UdpSocket;

Expand Down

0 comments on commit ec5e06b

Please sign in to comment.