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 cargo feature for building lemmy_api_common with mininum deps #2243

Merged
merged 1 commit into from
May 3, 2022

Conversation

Nutomic
Copy link
Member

@Nutomic Nutomic commented May 3, 2022

This change makes it possible to build only lemmy_api_common, without pulling in any of the heavy dependencies like diesel. Useful for building a Lemmy client while using the exact same structs for serde. I was mainly trying to minimize the usage of conditional compilation, but in the end there was still a lot of it necessary.

https://doc.rust-lang.org/cargo/reference/features.html

Times for cargo build -p lemmy_api_common:
before: 2m 46s
after: 32s

@Nutomic Nutomic requested a review from dessalines as a code owner May 3, 2022 11:35
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