Giter Club home page Giter Club logo

Comments (6)

Ivshti avatar Ivshti commented on July 21, 2024

Unless Tide is more stable, we should go with Tower or Hyper; Actix-web might be an overkill and may be pretty unsafe

from stremio-core.

Ivshti avatar Ivshti commented on July 21, 2024

This is a Tide version but it has problems:

  • CORS middleware returns bad request if origin header is not passed: http-rs/tide#318
  • Tide's performance is nowhere near hyper
  • Tide says they're not production ready

https://github.com/Ivshti/stremio-addon

from stremio-core.

Ivshti avatar Ivshti commented on July 21, 2024

there are new options to consider, namely hyper with futures 0.3

from stremio-core.

sleeyax avatar sleeyax commented on July 21, 2024

I'd like to put my two cents into this...

Tide has changed a lot in the past few months. As of today I have to agree that it's still not ready for production yet, but it's getting close. It runs asynchronously using futures 0.3 and CORS will no longer be an issue when this PR gets merged. That being said, I messed around with your old example-addon using a feature version of tide and it turned out pretty well so far.

Hyper is certainly a good choice too as it's gaining popularity and claims to be production ready, but I think you need to consider if you also need the HTTP client that comes with it? It probably depends; if you're sticking to an example addon that does a few basic API calls or something, sure. But if you're planning to extend it to a full SDK (referring to issue #11), I think it's better to leave the HTTP client of choice to the addon developer and keep the SDK crate as less bloated as possible.

from stremio-core.

Ivshti avatar Ivshti commented on July 21, 2024

@sleeyax your SDK is very impressive, thank you for the contribution!

re tide: I'm sure it's rapidly improving; I don't really have the knowledge to say which one is better for our goals, but we've used hyper before (the futures 0.1 versions), and we're using it in production right now - and we're very happy

Also, having a http client is a good thing. But yes, keeping it out is a good call too.

Since all of the dev effort is focused on delivering 5.0, we don't really have the time to develop a Rust SDK.

If you feel yours is mature enough to build something (seems to me that it is), I suggest you submit a PR to add it to https://github.com/Stremio/stremio-addon-sdk/blob/master/docs/examples.md and also to the README (I Suggest a "Rust version" paragraph under "Examples & tutorials", saying something like "There is a third-party Rust version built on stremio-core developed by sleeyax here").

from stremio-core.

sleeyax avatar sleeyax commented on July 21, 2024

@Ivshti

Thanks :)

I'd like to add a few more things and then I'll open that PR you suggested.

from stremio-core.

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.