-
Notifications
You must be signed in to change notification settings - Fork 7
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
Restructuring psibase macros #870
Conversation
e5f4f90
to
260bf16
Compare
f60e1b9
to
3c50f06
Compare
…e; repo is building
…f attrs and mod working; code compiles
…yet split into modules
ce554f8
to
1629e23
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can also add your unit tests to CI/CD in rust/CMakeLists.txt
if they belong
} | ||
}; | ||
|
||
service_macro_impl(attr, before); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
service
macro should expand without requiring ause
to provide its deps
Does this actually check that the generated TokenStream compiles though?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it only tests that the macro doesn't find syntax it doesn't recognize.
56a35bb
to
4291bab
Compare
Was this addressed? |
It is now. |
This PR restructures the psibase_macros into a 3-project workspace for easier dev/testing.
In addition to the 3-project structure, it also splits service_macro.rs into separate files for better readability/maintainability.
There are a couple of TODOs but only in the test files and are notes for tests I can add; nothing functionally missing from this PR.
All files in the
rust/psibase_macros/psibase-macros-lib/src/service_macro/
dir is unmodified code simply spilt out from the single formerlyrust/psibase_macros/psibase-macros-lib/src/service_macro.rs
into more bite-sized chunks.