Actix-web: Can not compile with Bazel: use of undeclared type or module `fail_ure`

Created on 8 Apr 2020  路  6Comments  路  Source: actix/actix-web

Hi, I'm trying to compile the following actix-web example in my Bazel project: https://github.com/actix/examples/tree/master/multipart
and I have ended up with the following error:

error[E0433]: failed to resolve: use of undeclared type or module `fail_ure`
   --> third_party/cargo/vendor/actix-http-1.0.1/src/error.rs:968:24
    |
968 | impl ResponseError for fail_ure::Error {}
    |                        ^^^^^^^^ use of undeclared type or module `fail_ure`

error: aborting due to previous error

I vendored all the dependencies from https://github.com/actix/examples/blob/master/multipart/Cargo.toml
by means of cargo-raze.

@JohnTitor I know you have already encountered this problem in the past. Any ideas how to fix it?

duplicate

All 6 comments

I think there's no actionable item on our side as explained in the issue: https://github.com/actix/actix-web/issues/1318#issuecomment-584707321

But the failure crate will be deprecated in the near future, see internal thread for the context.
So I'd like to remove the dependency and the feature rather than introduce an actual fix.

@JohnTitor Does that mean that it is impossible to compile actix-web with Bazel until the failure crate is deprecated?

@DmitryRusakovKodiak Or you can disable that feature if you don't need.

@JohnTitor Ok, how to disable it?

@dnrusakov failure is part of the default features, you'll have to disable them. In Cargo.toml this would be default-features = false.

I'd like to close this issue in favor of Rob's comment.
Just fyi, I've submitted the PR to remove that dep and feature, though we still have renamed deps.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mcelkys picture mcelkys  路  4Comments

bedax picture bedax  路  3Comments

kocoten1992 picture kocoten1992  路  3Comments

joshsleeper picture joshsleeper  路  3Comments

cheolgyu picture cheolgyu  路  3Comments