mirror of
https://github.com/floor-licker/polyfill-rs.git
synced 2026-08-24 01:48:08 +00:00
docs: versioning
This commit is contained in:
Generated
+1
-1
@@ -2667,7 +2667,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "polyfill-rs"
|
name = "polyfill-rs"
|
||||||
version = "0.2.1"
|
version = "0.2.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"alloy-primitives",
|
"alloy-primitives",
|
||||||
"alloy-signer",
|
"alloy-signer",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "polyfill-rs"
|
name = "polyfill-rs"
|
||||||
version = "0.2.1"
|
version = "0.2.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["Julius Tranquilli <julius@example.com>"]
|
authors = ["Julius Tranquilli <julius@example.com>"]
|
||||||
description = "The Fastest Polymarket Client On The Market."
|
description = "The Fastest Polymarket Client On The Market."
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ Add to your `Cargo.toml`:
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
[dependencies]
|
[dependencies]
|
||||||
polyfill-rs = "0.2.1"
|
polyfill-rs = "0.2.2"
|
||||||
```
|
```
|
||||||
|
|
||||||
Replace your imports:
|
Replace your imports:
|
||||||
@@ -120,7 +120,7 @@ All benchmarks use identical testing methodology and are reproducible on any mac
|
|||||||
1. **Update Cargo.toml:**
|
1. **Update Cargo.toml:**
|
||||||
```toml
|
```toml
|
||||||
# Before: polymarket-rs-client = "0.x.x"
|
# Before: polymarket-rs-client = "0.x.x"
|
||||||
polyfill-rs = "0.2.1"
|
polyfill-rs = "0.2.2"
|
||||||
```
|
```
|
||||||
|
|
||||||
2. **Update imports:**
|
2. **Update imports:**
|
||||||
@@ -278,7 +278,7 @@ let client = ClobClient::new("https://clob.polymarket.com");
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
[dependencies]
|
[dependencies]
|
||||||
polyfill-rs = "0.2.1"
|
polyfill-rs = "0.2.2"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Basic Usage
|
## Basic Usage
|
||||||
|
|||||||
+3
-3
@@ -37,7 +37,7 @@ pub fn create_optimized_client() -> Result<Client, reqwest::Error> {
|
|||||||
// Compression - all algorithms enabled by default in reqwest
|
// Compression - all algorithms enabled by default in reqwest
|
||||||
.gzip(true) // Ensure gzip is enabled
|
.gzip(true) // Ensure gzip is enabled
|
||||||
// User agent for identification
|
// User agent for identification
|
||||||
.user_agent("polyfill-rs/0.1.1 (high-frequency-trading)")
|
.user_agent("polyfill-rs/0.2.2 (high-frequency-trading)")
|
||||||
.build()
|
.build()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -62,7 +62,7 @@ pub fn create_colocated_client() -> Result<Client, reqwest::Error> {
|
|||||||
// Disable compression in co-located environments (CPU vs network tradeoff)
|
// Disable compression in co-located environments (CPU vs network tradeoff)
|
||||||
.gzip(false)
|
.gzip(false)
|
||||||
.no_brotli() // Disable brotli compression
|
.no_brotli() // Disable brotli compression
|
||||||
.user_agent("polyfill-rs/0.1.1 (colocated-hft)")
|
.user_agent("polyfill-rs/0.2.2 (colocated-hft)")
|
||||||
.build()
|
.build()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@ pub fn create_internet_client() -> Result<Client, reqwest::Error> {
|
|||||||
.http1_title_case_headers()
|
.http1_title_case_headers()
|
||||||
// Enable compression (gzip and brotli are enabled by default)
|
// Enable compression (gzip and brotli are enabled by default)
|
||||||
.gzip(true)
|
.gzip(true)
|
||||||
.user_agent("polyfill-rs/0.1.1 (internet-trading)")
|
.user_agent("polyfill-rs/0.2.2 (internet-trading)")
|
||||||
.build()
|
.build()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user