Skip to content
/ fshare Public

Rust implementation of Command-line File-Sharing tool using HTTP in localhost🦀

Notifications You must be signed in to change notification settings

qumaraa/fshare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

fshare

Official Rust implementation of Command-line File-Sharing tool 🦀.

Send videos,photos,files(.txt,.zipand many more!)

MIT License Version

Run

cargo run <command> <path>

Commands (v1.0)

send - Sends the file to the server for download.

⚙️ About

fshare version Dependencies Version
v1.0 ActixWeb 4.5.1
qrcode 0.14.0
local-ip-address 0.6.1
rand 0.8.5
actix-files 0.6.5

Port Generation

let port = rng.gen_range(49152..=65535);
let srv = HttpServer::new({
       /**/
    })
    .bind(("0.0.0.0", port.clone())) /* <- binds to a local network with a randomly generated port */
    .unwrap()
    .run();

    /*
      Sometimes it may happen that the code can generate
      a port that is used by the operating system or other programs, but it's not critical.
    */

Example 🖥️


image

About

Rust implementation of Command-line File-Sharing tool using HTTP in localhost🦀

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published