Giter VIP home page Giter VIP logo

Comments (6)

holzschu avatar holzschu commented on August 17, 2024 1

For git, we already have lg2, which is based on libgit2, and that works. But "git with gpg" only works with the original git, not with any of the clones (neither gix nor libgit2).

Projects written in Rust fail at cross-compiling more often than not (because they depend on crates that depend on crates and somewhere at the bottom there is a crate that assumes the word is either Unix or Windows). So far, there has been only one project written in Rust that I could cross-compile to WebAssembly, ripgrep, and even that one required editing the code in several places (out of dozens of attempts).

from a-shell.

NobodyXu avatar NobodyXu commented on August 17, 2024 1

But "git with gpg" only works with the original git, not with any of the clones (neither gix nor libgit2)

Thanks, it's unfortunate that neither gix nor libgit2 support gpg.

from a-shell.

holzschu avatar holzschu commented on August 17, 2024

I'll have a look, but that sounds difficult: both git and gpg are GNU-licensed products, so they cannot be embedded in an AppStore release, they would have to be compiled to WebAssembly, and WebAssembly is not that good with network-based interactions.

from a-shell.

NobodyXu avatar NobodyXu commented on August 17, 2024

For git, you can consider gix, it is a library written in Rust, with low level API.

I think you'd able to compile to to wasm without filesystem, network access or process spawning using low-level API.

from a-shell.

NobodyXu avatar NobodyXu commented on August 17, 2024

Projects written in Rust fail at cross-compiling more often than not (because they depend on crates that depend on crates and somewhere at the bottom there is a crate that assumes the word is either Unix or Windows).

Yeah many do have that problem, but IIRC gix just fixed a cross compilation error related to wasm, so gix does care about that.

They also have a few configurable features, which could disable features relying on supporting network/threading.

from a-shell.

macOneOone avatar macOneOone commented on August 17, 2024

I'll have a look, but that sounds difficult: both git and gpg are GNU-licensed products, so they cannot be embedded in an AppStore release, they would have to be compiled to WebAssembly, and WebAssembly is not that good with network-based interactions.

Ok, thank you so much for the effort

from a-shell.

Related Issues (20)

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.