You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It fails because the graphql.pest file is expected to be relative to the src directory of the async-graphql-parser package.
I believe the issue here is simply that cargo-raze always generates the rust_library target at the root of the repo.
I worked around this by forking the project and copying the graphql.pest file into the root src directory.
But the build of the azure_storage crate fails with:
error[E0412]: cannot find type `AzureError` in this scope
--> external/raze__azure_storage__0_1_0/sdk/storage/src/core/client.rs:37:41
|
37 | ) -> Result<PerformRequestResponse, AzureError>;
| ^^^^^^^^^^ not found in this scope
|
help: consider importing one of these items
|
1 | use azure_core::prelude::AzureError;
|
1 | use crate::core::AzureError;
I have not figured out how I can work around this issue.
The text was updated successfully, but these errors were encountered:
It seems like git crates are not very reliable compared to crates pulled from crate registries.
I have 2 examples where I needed to use unpublished crates and cargo-raze and they both failed to build with cargo-raze
Example 1:
I needed to use https://github.com/async-graphql/async-graphql/tree/actix-web-v4 to resolve transitive dependency issues in my workspace.
I tried adding the packages to my Cargo.toml file:
It fails because the
graphql.pest
file is expected to be relative to thesrc
directory of theasync-graphql-parser
package.I believe the issue here is simply that cargo-raze always generates the
rust_library
target at the root of the repo.I worked around this by forking the project and copying the
graphql.pest
file into the rootsrc
directory.Example 2:
I need to use https://github.com/Azure/azure-sdk-for-rust but they have not published them to crates.io yet.
I tried adding them to my
Cargo.toml
:But the build of the
azure_storage
crate fails with:I have not figured out how I can work around this issue.
The text was updated successfully, but these errors were encountered: