casbin-rs / axum-casbin Goto Github PK
View Code? Open in Web Editor NEWAxum authorization middleware based on Casbin
Home Page: https://github.com/casbin/casbin-rs
License: Apache License 2.0
Axum authorization middleware based on Casbin
Home Page: https://github.com/casbin/casbin-rs
License: Apache License 2.0
Like other repos such as: https://github.com/casbin-rs/sqlx-adapter
[{
"resource": "/Users/zml/Workspace/rust/cecs/backend/src/lib.rs",
"owner": "rustc",
"code": {
"value": "Click for full compiler diagnostic",
"target": {
"$mid": 1,
"external": "rust-analyzer-diagnostics-view:/diagnostic%20message?6#file%3A%2F%2F%2FUsers%2Fzml%2FWorkspace%2Frust%2Fcecs%2Fbackend%2Fsrc%2Flib.rs",
"path": "/diagnostic message",
"scheme": "rust-analyzer-diagnostics-view",
"query": "6",
"fragment": "file:///Users/zml/Workspace/rust/cecs/backend/src/lib.rs"
}
},
"severity": 8,
"message": "type mismatch resolving <Route as tower_service::Service<Request<Body>>>::Response == axum::http::Response<http_body::combinators::box_body::UnsyncBoxBody<axum::body::Bytes, axum_core::error::Error>>
\nstruct axum_core::error::Error
and struct axum::Error
have similar names, but are actually distinct types\nperhaps two different versions of crate axum_core
are being used?\nrequired for CasbinAuthMiddleware<Route>
to implement tower_service::Service<Request<Body>>
",
"source": "rustc",
"startLineNumber": 36,
"startColumn": 10,
"endLineNumber": 36,
"endColumn": 15,
"relatedInformation": [
{
"startLineNumber": 6,
"startColumn": 1,
"endLineNumber": 6,
"endColumn": 17,
"message": "struct axum_core::error::Error
is defined in crate axum_core
",
"resource": "/Users/zml/.cargo/registry/src/github.com-1ecc6299db9ec823/axum-core-0.2.9/src/error.rs"
},
{
"startLineNumber": 6,
"startColumn": 1,
"endLineNumber": 6,
"endColumn": 17,
"message": "struct axum::Error
is defined in crate axum_core
",
"resource": "/Users/zml/.cargo/registry/src/github.com-1ecc6299db9ec823/axum-core-0.3.0/src/error.rs"
}
]
}]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.