Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support crate renames in macro expansions #1059

Open
uint opened this issue Jul 25, 2023 · 1 comment
Open

Support crate renames in macro expansions #1059

uint opened this issue Jul 25, 2023 · 1 comment

Comments

@uint
Copy link
Collaborator

uint commented Jul 25, 2023

Currently, the near-sdk crate is hardcoded into macro expansions.

The problem with that is users may wish to rename the near-sdk crate, unexpectedly breaking all macros.

It should at the very least be possible to customize the crate name in expanded code using an attribute like e.g. #[near_bindgen(crate = "near-sdk-alt)].

Something even better could also be investigated: rust-lang/futures-rs#2099

@ruseinov
Copy link
Contributor

ruseinov commented Oct 9, 2023

Will take this on in the near future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants