Giter Site home page Giter Site logo

How to just serve? about rust-ipfs HOT 7 CLOSED

matthiasbeyer avatar matthiasbeyer commented on May 27, 2024
How to just serve?

from rust-ipfs.

Comments (7)

koivunej avatar koivunej commented on May 27, 2024

how to just serve the IPFS repository?

I'm not really sure what you are asking, however the actual p2p capabilities are mostly missing or their integration partially implemented in this implementation even if rust-libp2p would have near complete-ish implementations available.

there is no "main loop" thingy

This is true. The idea is that ipfs would be a library, as such, the user's application would ensure that there is a runtime which lives long enough. You can find an "application example" in under the http/, maybe that clears some parts of this up.

from rust-ipfs.

matthiasbeyer avatar matthiasbeyer commented on May 27, 2024

Yeah, I found the http example and am currently playing with its ideas... although when my app shuts down I get

Error: Invalid argument (os error 22)

And I don't know where this is coming from...

from rust-ipfs.

koivunej avatar koivunej commented on May 27, 2024

Error: Invalid argument ...

This does not appear to come from within this repository, and it doesn't sound familiar at least. What operating system are you using?

from rust-ipfs.

matthiasbeyer avatar matthiasbeyer commented on May 27, 2024

I'm running on Linux. I also do not get a backtrace with RUST_BACKTRACE with this... so I am really confused where this is coming from actually.

from rust-ipfs.

koivunej avatar koivunej commented on May 27, 2024

Maybe you could find it by removing all other output and breaking on stdout (or stderr) writes.

from rust-ipfs.

matthiasbeyer avatar matthiasbeyer commented on May 27, 2024

Good suggestion, thanks! But it did not work at all.

from rust-ipfs.

matthiasbeyer avatar matthiasbeyer commented on May 27, 2024
Error: Invalid argument (os error 22)

Meh, that was actually my fault and bad error messages. Thanks for your support, though ❤️ ! It seems that I am getting somewhere with this crate! I'll close this now as I think it is resolved for me, or will be soonish!

from rust-ipfs.

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.