Ecosyste.ms: Awesome

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

https://github.com/Hirevo/mega-rs

An API client library for interacting with MEGA from Rust
https://github.com/Hirevo/mega-rs

api-client cloud-storage end-to-end-encryption mega privacy

Last synced: 3 months ago
JSON representation

An API client library for interacting with MEGA from Rust

Lists

README

        

mega-rs


An API client library for interacting with MEGA





crates.io version



crates.io download count



docs.rs docs



crate license

About
-----

This is an (unofficial) API client library for interacting with MEGA's API using Rust.

This library aims to implement most (if not all) interactions with MEGA's API in pure Rust.

This allows Rust applications to access MEGA without needing to depend on the [MEGAcmd] command-line tool being installed on the host system.

It can also allow for more fine-grained control over how the operations are carried-out, like downloading nodes concurrently.

[MEGAcmd]: https://github.com/meganz/MEGAcmd

Features
--------

> All features marked as not yet implemented are ideas of things that could be done, and not necessarily an indication of it currently being worked on.

> These are also non-exhaustive, so if there is a feature that you'd like to see done, feel free to open an issue to show your interest in it, regardless of whether it is mentionned in this list or not.

> If you wish to contribute to this project, feel free to use this list to see if there is something you would be interested to either work on, or simply sharing some of your knowledge on how it could be achieved.

- [x] Login with MEGA
- [x] MFA support
- [x] Session resumption (deserialization)
- [x] Session serialization
- [x] Get storage quotas
- [x] Listing nodes
- [x] Downloading nodes
- [x] Uploading nodes
- [x] Creating folders
- [x] Renaming, moving and deleting nodes
- [ ] Chunked file downloads (downloading/uploading multiple chunks in parallel)
- [x] Timeout support
- [x] Retries (exponential-backoff) support
- [x] Downloading thumbnails and preview images
- [x] Uploading thumbnails and preview images
- [x] Listing and downloading from public shared links
- [x] Listing and downloading from password-protected shared links
- [ ] Creating public shared links to owned nodes
- [ ] Creating password-protected shared links to owned nodes
- [ ] Support for privately-shared nodes (direct shares between MEGA contacts)
- [x] Server-to-Client events support

Examples
--------

You can see examples of how to use this library by looking at [**the different examples available**](https://github.com/Hirevo/mega-rs/tree/main/examples).

License
-------

Licensed under either of

- Apache License, Version 2.0 (LICENSE-APACHE or )
- MIT license (LICENSE-MIT or )

at your option.

### Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.