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

Move code to apub library #1795

Merged
merged 4 commits into from
Oct 6, 2021
Merged

Move code to apub library #1795

merged 4 commits into from
Oct 6, 2021

Conversation

Nutomic
Copy link
Member

@Nutomic Nutomic commented Sep 28, 2021

I moved a couple more things to the library (traits ApubObject, ActorType, also http signature handling and activity sending queue). This means that I had to move some trait impls into the db_schema crate (because impls can only be defined in the same crate with the struct, or in the same crate as the trait definition).

Following this, I think we can also merge the crates db_schema and db_queries again. They have to be compiled one after the other, so it doesnt help with compilation time at all to split the code this way.

There is still some apub code which needs to be moved to the library, mainly ObjectId, receive_activity(), FromApub, ToApub. I will take care of those in a later PR.

@Nutomic Nutomic marked this pull request as ready for review September 30, 2021 10:52
@Nutomic
Copy link
Member Author

Nutomic commented Sep 30, 2021

Ready to merge, even though the macro code is quite ugly.

Edit: maybe not, a lot more work to be done here.

@Nutomic Nutomic marked this pull request as draft September 30, 2021 13:16
@Nutomic
Copy link
Member Author

Nutomic commented Oct 5, 2021

Updated, see op. Now its really ready to merge.

@Nutomic Nutomic marked this pull request as ready for review October 5, 2021 09:52
@Nutomic Nutomic changed the title Remove dependency of apub_lib on LemmyContext Move code to apub library Oct 5, 2021
@Nutomic Nutomic mentioned this pull request Oct 5, 2021
@dessalines dessalines merged commit b96ce81 into main Oct 6, 2021
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.

2 participants