Release 2.0.0

- Remove deprecated RiotApi constructors.
pull/34/head
Mingwei Samuel 2021-09-27 19:49:11 -07:00
parent 8d2bcfe694
commit fed9c07e7f
2 changed files with 1 additions and 17 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "riven" name = "riven"
version = "2.0.0-rc.3" version = "2.0.0"
authors = ["Mingwei Samuel <mingwei.samuel@gmail.com>"] authors = ["Mingwei Samuel <mingwei.samuel@gmail.com>"]
repository = "https://github.com/MingweiSamuel/Riven" repository = "https://github.com/MingweiSamuel/Riven"
description = "Riot Games API Library" description = "Riot Games API Library"

View File

@ -68,22 +68,6 @@ impl RiotApi {
} }
} }
/// Constructs a new instance from the given [RiotApiConfig](crate::RiotApiConfig), consuming it.
#[deprecated(since = "2.0", note = "use `RiotApi::new(config)` instead")]
pub fn with_config(config: RiotApiConfig) -> Self {
Self::new(config)
}
/// Constructs a new instance from the given API key, using default configuration.
///
/// `api_key` should be a Riot Games API key from
/// [https://developer.riotgames.com/](https://developer.riotgames.com/),
/// and should look like `"RGAPI-01234567-89ab-cdef-0123-456789abcdef"`.
#[deprecated(since = "2.0", note = "use `RiotApi::new(api_key)` instead")]
pub fn with_key(api_key: impl AsRef<[u8]>) -> Self {
Self::new(api_key)
}
/// This method should generally not be used directly. Consider using endpoint wrappers instead. /// This method should generally not be used directly. Consider using endpoint wrappers instead.
/// ///
/// Creates a `RequestBuilder` instance with the given parameters, for use with the `execute*()` methods. /// Creates a `RequestBuilder` instance with the given parameters, for use with the `execute*()` methods.