Code Monkey home page Code Monkey logo

Comments (9)

Noah-Kennedy avatar Noah-Kennedy commented on May 25, 2024 1

I might have a go at it this weekend.

from alexandrie.

Hirevo avatar Hirevo commented on May 25, 2024 1

Yeah, I'm on board, it would indeed be better organised that way.

from alexandrie.

jcgruenhage avatar jcgruenhage commented on May 25, 2024 1

Just to mention that: We've already done this migration while alexandrie was in a hiatus. If you want to take that as a base, we can provide that code to y'all once gitlab is back up.

from alexandrie.

Hirevo avatar Hirevo commented on May 25, 2024 1

The migration is now complete and has landed, thank you all for having started this initiative.

@jcgruenhage Thank you for your proposition.
I think writing this migration from scratch has helped me learn the Axum framework in more detail than if I were to use an existing base, which is good to be able to maintain it more effectively later, so I think it worked out for the better that way.

from alexandrie.

Noah-Kennedy avatar Noah-Kennedy commented on May 25, 2024

If time is an issue here, I'd be willing to help with this.

from alexandrie.

Hirevo avatar Hirevo commented on May 25, 2024

Hi !

While I really like Tide's design as a web framework (from a DX perspective), I completely agree that keeping it has quite a few downsides, in terms of features as you mentioned, and also in terms of compile time and dependency count (due to runtime duplication).

Alexandrie has some dependencies that require running Tokio as a runtime anyway (aws-sdk-s3 for S3 storage and reqwest for external auth), so switching away from Tide would allow to drop async-std and only ship Tokio as the single async runtime.

Also, I was also considering using something like Leptos to allow for a more dynamic frontend for Alexandrie (instead of the .hbs templates, which can be impractical), but this was impossible as of now with Tide, and switching to Axum would make that a possible endeavour.

As you mentioned, I don't think migrating would take that much time and would most likely be a quite straightforward process.
Even session management can be migrated without much trouble, with axum_sessions also being based on async-session, just like tide's sessions.

I think I can get around to it rather soon, but if you wish to have a go at it yourself, I'd be happy to review and accept a PR.

from alexandrie.

Noah-Kennedy avatar Noah-Kennedy commented on May 25, 2024

A question: as part of this migration, is it alright if I move the repo to workspace dependencies, to make it easier to track things here?

from alexandrie.

Hirevo avatar Hirevo commented on May 25, 2024

You mean extracting declarations of dependencies that are common to multiple crates into the worspace's Cargo.toml ?

from alexandrie.

Noah-Kennedy avatar Noah-Kennedy commented on May 25, 2024

yes

from alexandrie.

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.