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

Split into multiple crates #12

Open
K4rakara opened this issue Oct 2, 2020 · 0 comments
Open

Split into multiple crates #12

K4rakara opened this issue Oct 2, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@K4rakara
Copy link
Owner

K4rakara commented Oct 2, 2020

As it is currently, freshfetch takes 10 or more seconds to compile on my 12-core AMD Ryzen 5 2600 running at 3.4GHz. Thats a bit much, even for Rust. How can this be fixed? By splitting the code into multiple crates, you can reduce compilation time.

I was thinking 3 crates:

  • Core
  • ASCII Art
  • Info (the stuff that fetches system info)

Once its split into 3 crates, all we need to do is set up a Rust workspace.

Note: I'm not planning on implementing this for v0.1.3, rather for v0.2.0.

@K4rakara K4rakara added the enhancement New feature or request label Oct 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant