-
Notifications
You must be signed in to change notification settings - Fork 618
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
Replace version functions by constants #595
Conversation
Not sure how one would integrate the cargo package version, without some sort of clunky parsing of the toml file, unless there is some rust function for handling this that I am unaware of? Also, not sure I'd consider this breaking; technically it is, but realistically these methods are only being used internally in librespot, I haven't seen or heard of anyone using them outside of it. |
The cargo version was already implemented ( Spotifyd uses the |
Yeah that's fair enough. Wrt changing from With regards to the semver stuff you mentioned, it would be good to show the current version in the startup string as in many cases the commit sha isn't all that useful alone. possibly a format such as |
It's a
FWIW, I went overboard :-D
|
Yeah that is a bit overboard :P I think something similar could work though. I haven't checked the librespot startup message recently, but something like |
6ca48a4
to
bce4858
Compare
I've added in a version string CLI flag in the form of |
…ault to 'librespot'
99113b9
to
4beb3d5
Compare
I think we're probably good to go on this. |
So do you want to merge this before 0.2? Is there anything at all that blocks 0.2? |
Since a breaking change is coming anyway, we could also replace the
fn
s in the version module byconst
s, which is closer to their actual purpose I think. I removed those strings that weren't used, but they could be added anytime. Removing them would be a breaking change.Before merging it, the following questions should be answered.
const
s really necessary?