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

Unable to use macros with "renamed" sails package #580

Open
breathx opened this issue Oct 14, 2024 · 1 comment
Open

Unable to use macros with "renamed" sails package #580

breathx opened this issue Oct 14, 2024 · 1 comment

Comments

@breathx
Copy link
Member

breathx commented Oct 14, 2024

Problem

if I put this in toml
sails = { package = "sails-rs", version = "*" }
macros will fail. need to handle it somehow (maybe analogue with codec/scaleinfo macros)

Steps

/ .. /

Possible Solution

No response

Notes

No response

Relevant Log Output

Click to expand/collapse

<Paste your log here>

@vobradovich
Copy link
Member

Renamed crate is supported via crate parameter
#[program(crate = sails_rename)]
See proxy example https://github.com/gear-tech/sails/blob/master/examples/proxy/src/lib.rs

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