xosnrdev / rce-runner

MIT License
0 stars 1 forks source link

[FEATURE REQUEST]: Offline compatibility for use on mobile applications #2

Closed struckchure closed 1 month ago

struckchure commented 1 month ago

Description

As stated in #1 , having offline support and portability for mobile applications would make it possible to have a fully function text editor (close to an IDE) on mobile (Android and iOS). For this to be possible, series of requirements would need to be met, obviously. But the end product is to have that can work with Java/Kotlin (Android) and Swift/Objective-C (iOS)

Target Frameworks

Native Modules for React Native Platform Channels for Flutter

Although, it this works for react native and flutter, I believe it should work for any other major mobile framework.

xosnrdev commented 1 month ago

Thanks for submitting the proposal! Pls feel free to go ahead and open a pull request for this. It would be great to collaborate on getting this implemented!

struckchure commented 1 month ago

@xosnrdev

Not too sure, but it feels like some dependencies are missing, or would you be able to add some setup instructions to the readme file?

$ cargo run
   Compiling once_cell v1.20.0
   Compiling napi-sys v2.4.0
   Compiling bitflags v2.6.0
   Compiling napi-derive-backend v1.0.74
   Compiling napi v2.16.10
   Compiling napi-derive v2.16.12
   Compiling rce-runner v0.0.0 (/Users/mohammed/Projects/rce-runner)
error[E0433]: failed to resolve: use of undeclared crate or module `serde`
 --> src/rce_runner/language.rs:4:10
  |
4 | #[derive(serde::Deserialize, Debug)]
  |          ^^^^^ use of undeclared crate or module `serde`

error[E0433]: failed to resolve: use of undeclared crate or module `serde`
  --> src/main.rs:76:10
   |
76 | #[derive(serde::Serialize, Debug)]
   |          ^^^^^ use of undeclared crate or module `serde`

error[E0433]: failed to resolve: use of undeclared crate or module `serde`
   --> src/main.rs:113:10
    |
113 | #[derive(serde::Deserialize, Debug)]
    |          ^^^^^ use of undeclared crate or module `serde`

error[E0433]: failed to resolve: use of undeclared crate or module `serde`
   --> src/main.rs:121:10
    |
121 | #[derive(serde::Deserialize, Debug)]
    |          ^^^^^ use of undeclared crate or module `serde`

error: cannot find attribute `serde` in this scope
 --> src/rce_runner/language.rs:5:3
  |
5 | #[serde(rename_all = "lowercase")]
  |   ^^^^^

error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
  --> src/main.rs:25:21
   |
25 |             let _ = serde_json::to_writer(io::stdout(), &run_result)
   |                     ^^^^^^^^^^ use of undeclared crate or module `serde_json`

error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
  --> src/main.rs:73:5
   |
73 |     serde_json::to_writer(stdout, &run_result).map_err(Error::SerializeRunResult)
   |     ^^^^^^^^^^ use of undeclared crate or module `serde_json`

error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
   --> src/main.rs:144:5
    |
144 |     serde_json::from_reader(reader).map_err(Error::ParseRequest)
    |     ^^^^^^^^^^ use of undeclared crate or module `serde_json`

error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
   --> src/main.rs:263:24
    |
263 |     SerializeRunResult(serde_json::Error),
    |                        ^^^^^^^^^^ use of undeclared crate or module `serde_json`

error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
   --> src/main.rs:252:18
    |
252 |     ParseRequest(serde_json::Error),
    |                  ^^^^^^^^^^ use of undeclared crate or module `serde_json`

For more information about this error, try `rustc --explain E0433`.
error: could not compile `rce-runner` (bin "rce-runner") due to 10 previous errors
struckchure commented 1 month ago

@xosnrdev

Not too sure, but it feels like some dependencies are missing, or would you be able to add some setup instructions to the readme file?

$ cargo run
   Compiling once_cell v1.20.0
   Compiling napi-sys v2.4.0
   Compiling bitflags v2.6.0
   Compiling napi-derive-backend v1.0.74
   Compiling napi v2.16.10
   Compiling napi-derive v2.16.12
   Compiling rce-runner v0.0.0 (/Users/mohammed/Projects/rce-runner)
error[E0433]: failed to resolve: use of undeclared crate or module `serde`
 --> src/rce_runner/language.rs:4:10
  |
4 | #[derive(serde::Deserialize, Debug)]
  |          ^^^^^ use of undeclared crate or module `serde`

error[E0433]: failed to resolve: use of undeclared crate or module `serde`
  --> src/main.rs:76:10
   |
76 | #[derive(serde::Serialize, Debug)]
   |          ^^^^^ use of undeclared crate or module `serde`

error[E0433]: failed to resolve: use of undeclared crate or module `serde`
   --> src/main.rs:113:10
    |
113 | #[derive(serde::Deserialize, Debug)]
    |          ^^^^^ use of undeclared crate or module `serde`

error[E0433]: failed to resolve: use of undeclared crate or module `serde`
   --> src/main.rs:121:10
    |
121 | #[derive(serde::Deserialize, Debug)]
    |          ^^^^^ use of undeclared crate or module `serde`

error: cannot find attribute `serde` in this scope
 --> src/rce_runner/language.rs:5:3
  |
5 | #[serde(rename_all = "lowercase")]
  |   ^^^^^

error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
  --> src/main.rs:25:21
   |
25 |             let _ = serde_json::to_writer(io::stdout(), &run_result)
   |                     ^^^^^^^^^^ use of undeclared crate or module `serde_json`

error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
  --> src/main.rs:73:5
   |
73 |     serde_json::to_writer(stdout, &run_result).map_err(Error::SerializeRunResult)
   |     ^^^^^^^^^^ use of undeclared crate or module `serde_json`

error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
   --> src/main.rs:144:5
    |
144 |     serde_json::from_reader(reader).map_err(Error::ParseRequest)
    |     ^^^^^^^^^^ use of undeclared crate or module `serde_json`

error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
   --> src/main.rs:263:24
    |
263 |     SerializeRunResult(serde_json::Error),
    |                        ^^^^^^^^^^ use of undeclared crate or module `serde_json`

error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
   --> src/main.rs:252:18
    |
252 |     ParseRequest(serde_json::Error),
    |                  ^^^^^^^^^^ use of undeclared crate or module `serde_json`

For more information about this error, try `rustc --explain E0433`.
error: could not compile `rce-runner` (bin "rce-runner") due to 10 previous errors

Nevermind, I just sent a PR for it in #3

xosnrdev commented 1 month ago

@struckchure, I apologize for not informing you earlier, but this repository contains outdated changes for the rce-runner. The rce-runner has been relocated to the following organization: ToolKitHub/rce-runner. I will be archiving this repository shortly. Thank you for your understanding.

struckchure commented 1 month ago

@struckchure, I apologize for not informing you earlier, but this repository contains outdated changes for the rce-runner. The rce-runner has been relocated to the following organization: ToolKitHub/rce-runner. I will be archiving this repository shortly. Thank you for your understanding.

Alright, no problem

Let's transfer this issue there then

xosnrdev commented 1 month ago

@struckchure, I apologize for not informing you earlier, but this repository contains outdated changes for the rce-runner. The rce-runner has been relocated to the following organization: ToolKitHub/rce-runner. I will be archiving this repository shortly. Thank you for your understanding.

Alright, no problem

Let's transfer this issue there then

bet