mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[PR #178] [CLOSED] Make cache file a optional feature #292
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#292
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/178
Author: @ramsayleung
Created: 1/16/2021
Status: ❌ Closed
Base:
master← Head:ramsay_cache_file_as_a_feature📝 Commits (10+)
2c8608cMake cache file a optional feature3426251make cache file a feature6ea6b96fix compile errorf8bfc3dMark unnecessary functions to private.f4326a7fix clippy lint.45e1450Fix compile error.6241976Merge branch 'master' into ramsay_cache_file_as_a_feature47e0b56Update CHANGELOG.02a368fRenam feature name fromcache_filetocache-file57eb22eread_token_cachefunction enabled withcache-filefeature.📊 Changes
7 files changed (+76 additions, -48 deletions)
View changed files
📝
CHANGELOG.md(+3 -0)📝
Cargo.toml(+2 -1)📝
examples/webapp/src/main.rs(+1 -2)📝
examples/with_refresh_token.rs(+1 -1)📝
src/client.rs(+3 -0)📝
src/lib.rs(+2 -6)📝
src/oauth2.rs(+64 -38)📄 Description
Description
Trying to fix #135 #96, make cache file as a optional feature.
Motivation and Context
The cache file feature is useful, but the API surface is some kind of verbose, like
do_somethinganddo_something_without_cache. The developers have to explicitly choosecachefunction orwithout_cachefunction to control the way of how does the cache file work? It would be more ergonomic to make cache file as a feature to offer the right to developers to control how does it work ?Dependencies
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Please also list any relevant details for your test configuration
Test
cache-filefeature by hand:request_client_token:request_user_token:🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.