2022-04-03 21:34:47 -04:00
|
|
|
//! A modern, simple TCP tunnel in Rust that exposes local ports to a remote
|
|
|
|
|
//! server, bypassing standard NAT connection firewalls.
|
|
|
|
|
//!
|
|
|
|
|
//! This is the library crate documentation. If you're looking for usage
|
|
|
|
|
//! information about the binary, see the command below.
|
|
|
|
|
//!
|
|
|
|
|
//! ```shell
|
|
|
|
|
//! $ bore help
|
|
|
|
|
//! ```
|
|
|
|
|
//!
|
|
|
|
|
//! There are two components to the crate, offering implementations of the
|
|
|
|
|
//! server network daemon and client local forwarding proxy. Both are public
|
|
|
|
|
//! members and can be run programmatically with a Tokio 1.0 runtime.
|
|
|
|
|
|
|
|
|
|
#![forbid(unsafe_code)]
|
|
|
|
|
#![warn(missing_docs)]
|
|
|
|
|
|
|
|
|
|
pub mod client;
|
|
|
|
|
pub mod server;
|
|
|
|
|
|
2022-04-03 19:58:51 -04:00
|
|
|
#[cfg(test)]
|
|
|
|
|
mod tests {
|
|
|
|
|
#[test]
|
|
|
|
|
fn it_works() {
|
|
|
|
|
let result = 2 + 2;
|
|
|
|
|
assert_eq!(result, 4);
|
|
|
|
|
}
|
|
|
|
|
}
|