support env var expansion in path attributes by grushton-lidya · Pull Request #489 · graphql-rust/graphql-client

@grushton-lidya

@grushton-lidya

@tomhoule

Hi @grushton-lidya ! Thanks for the PR. Sorry for the delay, nobody was really maintaining this crate. I'm coming back to more active maintainership now.

Naively, wouldn't the idea in this comment #339 (comment) work without additional support?

@grushton-lidya

It would but I believe there's a limitation, excerpt from here.

Eager macro expansion only happens in a limited number of built-in attributes, with #[doc] being the primary example that will benefit from this.

Indeed I believe I tried out the suggestion in #339 (comment) but couldn't get it to work.

@tomhoule

Ah ok, I'll try and confirm this. If it doesn't work in our derive, let's merge this PR.