This commit is contained in:
Evan
2025-12-08 16:53:25 +00:00
parent ef6a6b958f
commit 90acdd8280
8 changed files with 13 additions and 15 deletions

View File

@@ -2,7 +2,7 @@
resolver = "3"
members = [
"rust/exo_pyo3_bindings",
"rust/iroh_networking",
"rust/networking",
]
[workspace.package]
@@ -22,7 +22,7 @@ opt-level = 3
# Common configurations include versions, paths, features, etc.
[workspace.dependencies]
## Crate members as common dependencies
iroh_networking = { path = "rust/iroh_networking" }
networking = { path = "rust/networking" }
extend = "1.2"

View File

@@ -20,25 +20,24 @@ doc = false
workspace = true
[dependencies]
iroh_networking = { workspace = true }
networking.workspace = true
# interop
pyo3 = { workspace = true, features = ["experimental-async"] }
pyo3-stub-gen = { workspace = true }
pyo3-async-runtimes = { workspace = true, features = ["attributes", "tokio-runtime", "testing"] }
pyo3-log = { workspace = true }
pyo3-stub-gen.workspace = true
# pyo3-async-runtimes = { workspace = true, features = ["attributes", "tokio-runtime", "testing"] }
pyo3-log.workspace = true
# macro dependencies
extend = { workspace = true }
extend.workspace = true
# async runtime
tokio = { workspace = true, features = ["full", "tracing"] }
# utility dependencies
postcard = { workspace = true, features = ["use-std"] }
thiserror = { workspace = true }
rand = { workspace = true }
n0-future = { workspace = true }
rand.workspace = true
n0-future.workspace = true
# Tracing

View File

@@ -6,11 +6,10 @@
mod allow_threading;
mod identity;
mod iroh_networking;
// mod examples;
mod networking;
use crate::identity::ident_submodule;
use crate::iroh_networking::networking_submodule;
use crate::networking::networking_submodule;
use pyo3::prelude::*;
use pyo3_stub_gen::define_stub_info_gatherer;

View File

@@ -4,8 +4,8 @@ use iroh::SecretKey;
use iroh::discovery::EndpointInfo;
use iroh::discovery::mdns::DiscoveryEvent;
use iroh_gossip::api::{ApiError, Event, GossipReceiver, GossipSender, Message};
use iroh_networking::ExoNet;
use n0_future::{Stream, StreamExt as _};
use networking::ExoNet;
use pyo3::exceptions::{PyRuntimeError, PyStopAsyncIteration};
use pyo3::prelude::*;
use pyo3::types::PyBytes;

View File

@@ -1,5 +1,5 @@
[package]
name = "iroh_networking"
name = "networking"
version.workspace = true
edition.workspace = true