Actix-web: Fails to build with bazel and cargo-raze. Error: use of undeclared type or module `fail_ure`

Created on 24 Jan 2020  路  8Comments  路  Source: actix/actix-web

The recent change broke my bazel build. Here's the error:

error[E0433]: failed to resolve: use of undeclared type or module `fail_ure`
   --> external/raze__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

Is there a way to work around it?

Most helpful comment

@sergeysova The failure crate is aliased to fail-ure so we can use the name as a feature flag, That version of cargo-tree musnt support the package="" aliasing. It's possible cargo-raze doesn't either.

All 8 comments

You should enable failure feature, then it should work fine.

How do I enable the feature in cargo-raze config?

Try to modify Cargo.toml (I'm not familiar with cargo-raze though).

image

@sergeysova The failure crate is aliased to fail-ure so we can use the name as a feature flag, That version of cargo-tree musnt support the package="" aliasing. It's possible cargo-raze doesn't either.

I think there is no action that we can take here?

Was this page helpful?
0 / 5 - 0 ratings