Skip to content

Commit 4018694

Browse files
committed
add the partner feature for the partner api
1 parent 8ed2c89 commit 4018694

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@ tokio = { version = "1.43.1", features = ["full"] }
2727

2828
[dev-dependencies]
2929
tokio-test = "0.4.3"
30+
31+
[features]
32+
default = []
33+
partner = []

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,12 @@ pub mod steam_webapi_util;
7676
pub mod errors;
7777
mod macros; // This remains private
7878

79+
#[cfg(not(feature = "partner"))]
7980
const BASE: &str = "https://api.steampowered.com";
8081

82+
#[cfg(feature = "partner")]
83+
const BASE: &str = "https://partner.steam-api.com";
84+
8185
pub struct Steam {
8286
api_key: String,
8387
}

0 commit comments

Comments
 (0)