mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[PR #106] [MERGED] Extern crate, Cargo.toml cleanup #247
Labels
No labels
Stale
bug
discussion
enhancement
good first issue
good first issue
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rspotify#247
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/ramsayleung/rspotify/pull/106
Author: @marioortizmanero
Created: 8/12/2020
Status: ✅ Merged
Merged: 8/13/2020
Merged by: @ramsayleung
Base:
master← Head:extern-crate📝 Commits (10+)
5073244remove extern crate for 'log'c1dda8eremove unnecessary 'base64' and 'env_logger'8415079remove extern crate for 'chrono'6c917a2remove extern crate for 'url'629aab7remove extern crate for 'rand'335eb01remove extern crate for 'percent_encoding'5cfdc1cremove extern crate for 'dotenv'1196fa2remove extern crate for 'lazy_static'22c914bremove extern crate for 'itertools'418347aremove extern crate for 'failure'📊 Changes
168 files changed (+77 additions, -418 deletions)
View changed files
📝
Cargo.toml(+15 -74)📝
README.md(+0 -4)📝
examples/add_to_queue.rs(+0 -2)📝
examples/album.rs(+0 -2)📝
examples/album_tracks.rs(+0 -2)📝
examples/albums.rs(+0 -2)📝
examples/artist.rs(+0 -2)📝
examples/artist_related_artists.rs(+0 -2)📝
examples/artist_top_tracks.rs(+0 -1)📝
examples/artists.rs(+0 -2)📝
examples/artists_albums.rs(+0 -2)📝
examples/audio_analysis.rs(+0 -2)📝
examples/audio_features.rs(+0 -2)📝
examples/audios_features.rs(+0 -2)📝
examples/blocking/add_to_queue.rs(+0 -1)📝
examples/blocking/artist_top_tracks.rs(+0 -2)📝
examples/blocking/categories.rs(+0 -3)📝
examples/blocking/check_users_saved_shows.rs(+0 -2)📝
examples/blocking/current_playback.rs(+0 -2)📝
examples/blocking/current_playing.rs(+0 -2)...and 80 more files
📄 Description
extern crateis no longer needed after Rust 2018, so I've removed all of them, usingusein its place.I also removed some unnecessary crates:
base64: not used at allenv_logger: not used at allurl: not used at allitertools: only used once inclient.rs, found a cleaner solution to avoid usingiproductAnd other small improvements in
Cargo.toml.The one thing I don't know how to solve is the
reqwest-related features. Wouldn't it make sense to just remove theseextern crate? TheCargo.tomlwill already make sure the correct features forreqwestare being used.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.