Skip to content

Commit

Permalink
* Set cargo's resolver to v2 in root Cargo.toml, to avoid the warning…
Browse files Browse the repository at this point in the history
… that cargo kept giving. (about it expecting v2 based on edition of packages, but not seeing that in the root Cargo.toml file)

* Re-enabled the "wrap_slow_macros" proc-macro. (or rather, the async-graphql components of it) [when doing testing of further optimizations, will re-disable it within a separate branch]
  • Loading branch information
Venryx committed Mar 26, 2024
1 parent 8fff83b commit 4ef3d34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ members = [
#"Packages/graphlink-server",
]

resolver = "2"

# NOTE: This file is not currently being used for build-flags. See ".cargo/config.toml" for rust build-flags.

#[profile.dev]
Expand Down
4 changes: 2 additions & 2 deletions Packages/rust-macros/src/wrap_async_graphql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ use crate::utils::{remove_token_sequences_for_derive_macros, remove_token_sequen
// ==========

// can set this flag to true temporarily, to make debugging easier
//pub const SKIP_AGQL_WRAPPING: bool = false;
pub const SKIP_AGQL_WRAPPING: bool = true;
pub const SKIP_AGQL_WRAPPING: bool = false;
//pub const SKIP_AGQL_WRAPPING: bool = true;

pub fn wrap_async_graphql_impl(input: TokenStream, force_proceed: bool) -> TokenStream {
if SKIP_AGQL_WRAPPING { return input; } // can set this flag to true temporarily, to make debugging easier
Expand Down

0 comments on commit 4ef3d34

Please sign in to comment.