GithubHelp home page GithubHelp logo

hirevo / mega-rs Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 2.0 312 KB

An API client library for interacting with MEGA from Rust

Home Page: https://crates.io/crates/mega

License: Apache License 2.0

Rust 100.00%
api-client cloud-storage end-to-end-encryption mega privacy

mega-rs's People

Contributors

hirevo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mega-rs's Issues

Asser_eq change to smth another

assert_eq!(&buffer[..4], b"MEGA");

/mega-0.7.3/src/attributes.rs:35:9
Library panic's on this place. Can u please change to another ?

CondensedMacMismatch When Over Quota

For some reason I've been getting these CondensedMacMismatch errors when in reality I've gone over my daily quota.

Is there an issue with reporting the EOVERQUOTA error? CondensedMacMismatch is kind of misleading.

FileAttributes is incomplete

mega-rs/src/utils.rs

Lines 22 to 27 in 89a9753

pub(crate) struct FileAttributes {
#[serde(rename = "n")]
pub name: String,
#[serde(rename = "c", skip_serializing_if = "Option::is_none")]
pub c: Option<String>,
}

FileAttributes is incomplete, and some attributes will be lost when deserialized and reserialized. Even if you don't need them now, you can use #[serde(flatten)] to capture them first.

    #[serde(flatten)]
    other: serde_json::Value,

https://github.com/meganz/webclient/blob/d7f2a8e053f32858016d6711c5dbbeace7858c3d/nodedec.js#L340-L508

In addition, FileNode should contain the mtime attribute, and the FileFingerprint/checksum should be generated and set it to the FileAttributes when uploading the file.

https://github.com/meganz/sdk/blob/7e2bb9e05804a773f4f719b9de6476e43379c830/src/node.cpp#L927-L970

Feauture request

It will be cool if you add a recovery code generator.
Sometimes mega blocks my account because of proxy.
With recovery code generator and login param i can use proxy freely.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.