Skip to content

Commit

Permalink
layout for optional pt things
Browse files Browse the repository at this point in the history
  • Loading branch information
jmwample committed Jun 16, 2024
1 parent cc357ae commit f3000f3
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/ptrs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ repository = "https://github.com/jmwample/ptrs"


[features]
default = []
default = ["tor", "water"]
debug = []
tor = []
water = []

[lib]
name = "ptrs"
Expand Down
9 changes: 9 additions & 0 deletions crates/ptrs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<InRW>
where
InRW: AsyncRead + AsyncWrite + Send + Sync + Unpin + 'static,
Expand Down
Empty file added crates/ptrs/src/tor.rs
Empty file.
7 changes: 7 additions & 0 deletions crates/ptrs/src/water.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@


/// This trait allows for conversion to a format that can be compiled into a WATER binary.
pub trait Soluble {
}

// impl<I> Soluble for Box<dyn ClientBuilder<I>> {}

0 comments on commit f3000f3

Please sign in to comment.