Skip to content

Commit 89da729

Browse files
committed
Fix example
Signed-off-by: C0D3 M4513R <28912031+C0D3-M4513R@users.noreply.github.com>
1 parent a55e344 commit 89da729

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ native-tls = ["reqwest/native-tls"]
2424
rustls = ["reqwest/rustls"]
2525

2626
[dev-dependencies]
27-
tokio = { version = '1', features = ['macros', 'rt-multi-thread'] }
27+
tokio = { version = '1', features = ['macros', 'rt-multi-thread'] }
28+
reqwest = { version = '^0.13', features = ['native-tls']}

generate.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ sed -i 's/^description = ".*"/description = "VRChat API Client for Rust"/' Cargo
2828
find src -type f -exec sed -i '/^\s*\/\/\/\s*$/d' {} \;
2929

3030
#Fix example
31-
printf "\n[dev-dependencies]\ntokio = { version = '1', features = ['macros', 'rt-multi-thread'] }" >> Cargo.toml
31+
# tokio as an async runtime
32+
# reqwest to enable some tls handling in reqwest via feature unification (since we can't enable features of our own library for examples?)
33+
printf "\n[dev-dependencies]\ntokio = { version = '1', features = ['macros', 'rt-multi-thread'] }\nreqwest = { version = '^0.13', features = ['native-tls']}" >> Cargo.toml
3234

3335
find src/ -type f -name "*.rs" -exec sed -i 's/models::models/models/g' {} +
3436
find src/ -type f -name "*.rs" -exec sed -i -E "s/(::)?std::path::PathBuf/crate::patches::better_file_upload::File<'_>/g" {} +

0 commit comments

Comments
 (0)