Giter Club home page Giter Club logo

Comments (8)

GenericNerd avatar GenericNerd commented on May 28, 2024 1

@itsbalamurali I've created a PR that resolves this issue by using a axum::body::Body type instead. Hopefully the PR is merged in :)

from tower-governor.

itsbalamurali avatar itsbalamurali commented on May 28, 2024 1

Thanks @GenericNerd @benwis I have tried it and it works as expected.

from tower-governor.

benwis avatar benwis commented on May 28, 2024

I'm not really sure, if you'd like to try it I suspect it could work.

from tower-governor.

GenericNerd avatar GenericNerd commented on May 28, 2024

Big +1 for this

from tower-governor.

benwis avatar benwis commented on May 28, 2024

Happy to merge, thanks @GenericNerd. Do you want to try it @itsbalamurali? I'll test it out today and put out a new release if so

from tower-governor.

fakeshadow avatar fakeshadow commented on May 28, 2024

Just want to say cargo build --no-default-features does not build anymore with this change. The point of using String is to make axum optional because this crate is named as tower-governor. Imagine people not using axum. Must be shocking right?

If you really want to force axum on everyone please consider change the crate name to axum-governor.

from tower-governor.

benwis avatar benwis commented on May 28, 2024

Just want to say cargo build --no-default-features does not build anymore with this change. The point of using String is to make axum optional because this crate is named as tower-governor. Imagine people not using axum. Must be shocking right?

If you really want to force axum on everyone please consider change the crate name to axum-governor.

For clarity's sake, I don't want to force Axum on everyone, and should have considered the impact it would have on non Axum users. I think there's some room here to either move more things behind the axum feature flag or perhaps move to the more generic Body type used by hyper? Or maybe both?

Are you using hyper?

from tower-governor.

GenericNerd avatar GenericNerd commented on May 28, 2024

Just want to say cargo build --no-default-features does not build anymore with this change. The point of using String is to make axum optional because this crate is named as tower-governor. Imagine people not using axum. Must be shocking right?

If you really want to force axum on everyone please consider change the crate name to axum-governor.

I didn't even consider that! I wonder if the best thing is to allow a more generic type for the constraint that allows both people using axum and those that don't to still use tower-governor. Not entirely sure how that would be approached though.

from tower-governor.

Related Issues (15)

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.