mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #595] [MERGED] Replace version functions by constants #989
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#989
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/librespot-org/librespot/pull/595
Author: @Johannesd3
Created: 2/9/2021
Status: ✅ Merged
Merged: 2/26/2021
Merged by: @ashthespy
Base:
dev← Head:const_versions📝 Commits (5)
09e506eReplace version functions by constants85be0d0Adjust documentationbce4858Add semver constant, rename "build id" env varc8e45abModified startup message4beb3d5Add version string CLI parameter, set name to optional parameter, default to 'librespot'📊 Changes
6 files changed (+43 additions, -53 deletions)
View changed files
📝
connect/src/spirc.rs(+1 -1)📝
core/build.rs(+2 -1)📝
core/src/config.rs(+1 -1)📝
core/src/connection/mod.rs(+3 -3)📝
core/src/version.rs(+12 -39)📝
src/main.rs(+24 -8)📄 Description
Since a breaking change is coming anyway, we could also replace the
fns in the version module byconsts, 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.
consts really necessary?🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.