From f3000f3904a11ddafc5e6933f63da38c1c28abce Mon Sep 17 00:00:00 2001 From: jmwample <8297368+jmwample@users.noreply.github.com> Date: Sun, 16 Jun 2024 08:34:14 -0600 Subject: [PATCH] layout for optional pt things --- crates/ptrs/Cargo.toml | 4 +++- crates/ptrs/src/lib.rs | 9 +++++++++ crates/ptrs/src/tor.rs | 0 crates/ptrs/src/water.rs | 7 +++++++ 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 crates/ptrs/src/tor.rs create mode 100644 crates/ptrs/src/water.rs diff --git a/crates/ptrs/Cargo.toml b/crates/ptrs/Cargo.toml index aabef24..6d7bc62 100644 --- a/crates/ptrs/Cargo.toml +++ b/crates/ptrs/Cargo.toml @@ -12,8 +12,10 @@ repository = "https://github.com/jmwample/ptrs" [features] -default = [] +default = ["tor", "water"] debug = [] +tor = [] +water = [] [lib] name = "ptrs" diff --git a/crates/ptrs/src/lib.rs b/crates/ptrs/src/lib.rs index e80cee8..bb7833e 100644 --- a/crates/ptrs/src/lib.rs +++ b/crates/ptrs/src/lib.rs @@ -18,6 +18,15 @@ pub use helpers::*; mod log; pub mod orport; +#[cfg(feature="tor")] +pub mod tor; + + +#[cfg(feature="water")] +pub mod water; + + + pub trait PluggableTransport where InRW: AsyncRead + AsyncWrite + Send + Sync + Unpin + 'static, diff --git a/crates/ptrs/src/tor.rs b/crates/ptrs/src/tor.rs new file mode 100644 index 0000000..e69de29 diff --git a/crates/ptrs/src/water.rs b/crates/ptrs/src/water.rs new file mode 100644 index 0000000..f1c8651 --- /dev/null +++ b/crates/ptrs/src/water.rs @@ -0,0 +1,7 @@ + + +/// This trait allows for conversion to a format that can be compiled into a WATER binary. +pub trait Soluble { +} + +// impl Soluble for Box> {}