-
Notifications
You must be signed in to change notification settings - Fork 232
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
Restructure the crates #549
Conversation
6ca035a
to
fa89686
Compare
@ChrisTitusTech This is ready to merge. There are literally no PRs open now, I'd merge ASAP. And yes, this is the only (correct) way to do this. |
This makes the codebase more complicated, and requires reversion or major modifications if a GUI is to be developed within this repository (which is on the roadmap). Is it not possible to include files within a parent directory within Cargo.toml? |
I think the opposite. Now we only have one crate (
No, unfortunately it's not. Already researched it. This seems to be the only way. Also, I've seen some major projects (nushell for example) do the exact same. |
Once again, a GUI is on the roadmap. A Cargo.toml including both the data for building a binary & workspace details in one also is not particularly simple.
Then, moving tabs into core will be necessary. However, moving the tui into the root directory won't accomplish anything necessary.
|
This comment was marked as outdated.
This comment was marked as outdated.
I don't understand your point here. What exactly is not simple? It's done perfectly in this PR.
Consider adding " - my personal opinion".
|
My personal opinion is that it makes the codebase more complicated. You disagree. It's a fact that it's not a necessary change. And it's a fact that the structure will need to be changed once more when work on a GUI, which is on the roadmap, begins. Yes, linutil core will be published on crates.io. That's how the TUI will be able to depend on it. What I was noting is that moving the tui outside of its own directory is not a necessity. |
It's neccessary to do this if we want to publish the crate.
We NEED a binary target in the main crate to make this possible. |
Moving tabs to core/, if necessary as you state, should occur. Versioning is also necessary, although I'm not completely sure why semver can't be used. But the last change, moving TUI into the root of the repository, must not be made. |
This should fix the issue. |
I understand that a GUI is on the roadmap perfectly. If we're looking at this from a GUI standpoint, your approach does make more sense. Committing the changes now.
Chris says that he wants to stick with date versioning. I know this is a worse idea, I suggested using semver aswell. |
Let me wrap my head around semver if it is better I'll figure out a way to implement it and dump my archaic date versioning. |
Co-authored-by: Liam <[email protected]>
394808e
to
ffd5275
Compare
This is a big big PR. Be careful.
Type of Change
Description
Restructured the project to be more intuitive and to be able to publish on crates.io.
0.1.0
->24.9.19
tabs
dir tocore/tabs
solinutil_core
can access it.Resolves #333
Testing
Compiles. Can publish.
Additional Information
C O N F L I C T S .
Checklist