dovepipe 0.1.6

used for sending files in rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use dovepipe::{send_file, Source};

#[tokio::main]
async fn main() {
    let port = 3456;
    println!("my ip: 127.0.0.1:{}", port);

    // Send the file with the send_file funciton
    send_file(
        Source::Port(port),
        "./examples/file_to_send.txt",
        "127.0.0.1:7890",
    )
    .await
    .expect("error when sending file");
}