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

add label derive macro #3

Merged
merged 2 commits into from
Nov 18, 2023
Merged

add label derive macro #3

merged 2 commits into from
Nov 18, 2023

Conversation

jdonszelmann
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@AZWN AZWN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good (apart from failing doctests; but those can be set to ignore if needed). A few inline questions, mainly for my own understanding.

@@ -42,14 +42,14 @@ jobs:
command: fmt
args: --all -- --check
test:
name: Test Stable
name: Test Beta
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this is done temporarily, to use the new impl-stuff?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed, in 6 weeks this can be put back!

Comment on lines +9 to +10
scopegraphs-lib = {path="../scopegraphs-lib"}
scopegraphs-macros = {path="../scopegraphs-macros"}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How will this work when we (eventually) publish the crate. Will the reexport take care that everything in these libraries is available?

Copy link
Collaborator Author

@jdonszelmann jdonszelmann Nov 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed, scopegraphs is like a facade library, it simply reexports all these lower level libs, but it is what users will import. Later we aren't just going to use paths, but also version these, but there are tools for that. Terts has a lot of experience with this from uutils, I hope he knows what works best here :)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah cargo-release or something like that will probably work well. (In uutils we do all of this with a super ugly bash script 😄)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doing it like this also makes compilation efficient. scopegraphs-macros can now compile entirely independently from scopegraphs-lib, in parallel.

@jdonszelmann
Copy link
Collaborator Author

The doctest arealso failing on the target branch, and is probably a bigger problem we have to solve later once there is some kind of actual implementation of the type.

@AZWN AZWN merged commit 5e7bed6 into name-resolution Nov 18, 2023
5 of 9 checks passed
@jdonszelmann jdonszelmann deleted the label-macro branch November 24, 2023 15:14
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

Successfully merging this pull request may close these issues.

3 participants