XAMPPRocky / octocrab

A modern, extensible GitHub API Client for Rust.
Other
1.06k stars 258 forks source link

Wasm build by adding `default-client` feature gate #591

Closed wooden-worm closed 5 months ago

wooden-worm commented 6 months ago

This enables wasm build by adding a new default-client feature and putting all wasm incompatible code behind it.

On wasm targets users can supply their own Service<Request<String>, Response = Response<B>> + Send + 'static.

Fixes https://github.com/XAMPPRocky/octocrab/issues/366 https://github.com/XAMPPRocky/octocrab/issues/224