This commit is contained in:
kodjomoustapha 2023-11-14 09:58:38 +01:00
parent c675030b59
commit 76d3460fa1
2 changed files with 25 additions and 2 deletions

View file

@ -17,7 +17,7 @@ Mangayomi is free an open source manga reader and anime streaming cross-platefor
## Features
Features include:
* [Supports external sources](https://github.com/kodjodevf/mangayomi-extensions)
* [Supports external sources](https://github.com/kodjodevf/mangayomi-extensions), utilizing the capabilities of the [dart_eval](https://pub.dev/packages/dart_eval) package
* Online reading from a variety of sources
* Watch anime from a variety of sources
* Local reading of downloaded content
@ -52,7 +52,7 @@ Get the app from our [releases page](https://github.com/kodjodevf/mangayomi/rele
## Using Rust Inside Flutter
This project leverages Flutter for GUI and Rust for the backend logic,
This project use Rust for the [auto-image-cropper](https://github.com/ritiek/auto-image-cropper) crate,
utilizing the capabilities of the
[Rinf](https://pub.dev/packages/rinf) framework.
@ -94,6 +94,7 @@ flutter run
For detailed instructions on writing Rust and Flutter together,
please refer to Rinf's [documentation](https://rinf-docs.cunarist.com).
## License
Copyright 2023 Moustapha Kodjo Amadou

View file

@ -1,7 +1,29 @@
/* MIT License
Copyright (c) 2017 Ritiek Malhotra
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.*/
use crate::bridge::api::{RustOperation, RustRequest, RustResponse};
use image::{DynamicImage, GenericImageView, ImageOutputFormat, ImageResult, Rgba};
use prost::Message;
use std::io::Cursor;
pub struct Point {
pub x: u32,
pub y: u32,