Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aneoconsulting/rusftp

SFTP library based on russh
https://github.com/aneoconsulting/rusftp

Last synced: about 1 month ago
JSON representation

SFTP library based on russh

Awesome Lists containing this project

README

        

# RUSFTP

![Crates.io License](https://img.shields.io/crates/l/rusftp)
![Crates.io Version](https://img.shields.io/crates/v/rusftp)
![docs.rs](https://img.shields.io/docsrs/rusftp)

This is a SFTP implmentation based on [russh](https://crates.io/crates/russh).

Links:
- [github](https://github.com/aneoconsulting/rusftp)
- [crates](https://crates.io/crates/rusftp)
- [docs](https://docs.rs/rusftp/)

# Rationale

Why another SFTP library?

When I started to work on this project, there were no pure Rust async SFTP client library.

# Design principles

`rusftp` is designed using the following principles:
- No panics
- No locking
- Shared client
- User facing types have no dependent lifetimes
- Futures are `Send` + `Sync` + `'static`
- Futures are eager

So you can take a `SftpClient`, clone it, and use it behind a shared referenced.
You can start multiple SFTP requests concurrently, even from multiple threads.

# Features

- [x] Client
- [x] Concurrent requests
- [x] Cloneable `SftpClient` and `File`
- [x] File (`tokio::io` abstraction)
- [x] Dir (`futures::stream` abstraction)
- [x] All supported requests and messages
- [x] Path abstraction
- [ ] Support for well known SFTP extensions
- [ ] User defined extensions
- [ ] Support for direct Byte stream (ie: no [`russh`])

- [ ] Server
- Protocol Version
- [x] version 3
- [ ] version 4
- [ ] version 5
- [ ] version 6