Comments (8)
@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.
Thanks @GenericNerd @benwis I have tried it and it works as expected.
from tower-governor.
I'm not really sure, if you'd like to try it I suspect it could work.
from tower-governor.
Big +1 for this
from tower-governor.
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.
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.
Just want to say
cargo build --no-default-features
does not build anymore with this change. The point of using String is to makeaxum
optional because this crate is named astower-governor
. Imagine people not usingaxum
. Must be shocking right?If you really want to force
axum
on everyone please consider change the crate name toaxum-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.
Just want to say
cargo build --no-default-features
does not build anymore with this change. The point of using String is to makeaxum
optional because this crate is named astower-governor
. Imagine people not usingaxum
. Must be shocking right?If you really want to force
axum
on everyone please consider change the crate name toaxum-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)
- Error reported on axum version 0.6.1 HOT 3
- Unable To Extract Key!
- Referencing a Governor in a struct HOT 1
- Any example using tonic? HOT 1
- rethink error handling. HOT 9
- consider making axum an optional dependency. HOT 2
- Remove `axum` feature in the documentation HOT 5
- Cannot create a function with `RateLimitingMiddleware` HOT 3
- Error: undeclared crate or module `axum` HOT 1
- Use `Arc` + `Weak` to improve use in frameworks and libraries HOT 1
- feat req: Allow other "identifiers" than IP HOT 1
- Limit an I/O throughput? HOT 2
- [SECURITY] bump governor dependency to 0.6.0
- status code 429 will be fiddled to 200 if no bufferlayer is used HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tower-governor.