We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e070f16 + ba5d88e commit 520f628Copy full SHA for 520f628
.github/workflows/cargo-build.yml
@@ -18,3 +18,12 @@ jobs:
18
- uses: actions/checkout@v3
19
- name: Build
20
run: cargo build --verbose
21
+
22
+ build-without-reqwest:
23
24
+ runs-on: ubuntu-latest
25
26
+ steps:
27
+ - uses: actions/checkout@v3
28
+ - name: Build
29
+ run: cargo build --verbose --no-default-features
src/v1/resources/shared.rs
@@ -1,3 +1,4 @@
1
+#[cfg(feature = "reqwest")]
2
use reqwest::header::HeaderMap;
3
use serde::{Deserialize, Serialize};
4
@@ -101,6 +102,7 @@ pub enum StopToken {
101
102
Array(Vec<String>),
103
}
104
105
106
impl From<HeaderMap> for Headers {
107
fn from(value: HeaderMap) -> Self {
108
if value.get("x-ratelimit-limit-requests").is_none()
0 commit comments