Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.5.0 #11

Merged
merged 48 commits into from
Jan 7, 2025
Merged
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
a7a8cd0
chore: confirmed link works
c-git Jul 24, 2024
89bee32
chore: dev version bump
c-git Jan 1, 2025
26b6e03
fix: remove accidental web-sys feature
c-git Jan 1, 2025
50cf84d
fix: export all of reqwest and not just client
c-git Jan 1, 2025
911e16c
chore: enable comment wrapping
c-git Jan 1, 2025
82261df
docs: record what tye yield_now feature is for
c-git Jan 1, 2025
5557da7
chore: cargo update to resolve dep vulnerability
c-git Jan 1, 2025
a09d2f1
chore: remove reqwest as dev dependency
c-git Jan 1, 2025
ce2fbf5
chore: add bacon config to run example
c-git Jan 1, 2025
b6f2012
chore: enable reqwest default features by default
c-git Jan 1, 2025
79af9a6
chore: add features to enable reqwest features
c-git Jan 1, 2025
a3403c2
chore: save todo
c-git Jan 2, 2025
09531bd
chore: switch to wasm pr version of reqwest (test)
c-git Jan 3, 2025
46b62e0
docs: clean up trade off section
c-git Jan 3, 2025
c9b8954
docs: remove example not sure it's adding value
c-git Jan 3, 2025
e3c07a8
docs: update how features are documented
c-git Jan 3, 2025
350a8f5
docs: add links to referenced types
c-git Jan 3, 2025
ba4f602
docs: make link actually be a link
c-git Jan 3, 2025
1805d67
feat: add helper type to reduce boilerplate
c-git Jan 3, 2025
cc9a73d
test: streamline example testing
c-git Jan 4, 2025
c2c7082
feat: add support for end user errors
c-git Jan 4, 2025
ec86cfd
feat: export oneshot as it's needed for DataState
c-git Jan 4, 2025
21edbb2
chore: rename example to make space
c-git Jan 4, 2025
4239db9
feat: add example that uses DataState
c-git Jan 4, 2025
6c9990d
chore: enable the yield now feature in vscode
c-git Jan 4, 2025
1acce7d
docs: add spaces between features for readability
c-git Jan 4, 2025
70ecf9f
feat: provide boilerplate with lib
c-git Jan 4, 2025
dfeb7d3
refactor: simplify example
c-git Jan 4, 2025
ded1294
feat: notify even if sending response fails
c-git Jan 4, 2025
518fab0
style: apply rustfmt line wrapping
c-git Jan 4, 2025
409e191
chore: remove TODO
c-git Jan 4, 2025
a702553
docs: revise docs
c-git Jan 4, 2025
7254254
docs: add example for `fetch_plus`
c-git Jan 4, 2025
d4405c6
refactor: restructure code to reduce total lines
c-git Jan 4, 2025
d4776f6
feat: move all public bounds into traits except spawn
c-git Jan 5, 2025
505dda3
test: update example to match code
c-git Jan 5, 2025
eb443c5
ci: update from template
c-git Jan 5, 2025
dda1232
feat: add must_use to make mistakes harder
c-git Jan 5, 2025
341f7fb
feat: remove send bounds in WASM for all traits
c-git Jan 5, 2025
80c3cba
feat: add protection for users
c-git Jan 5, 2025
7dc6765
feat: make it easier to find problems with egui
c-git Jan 5, 2025
1ed0a0d
feat: ensure callers of egui_get also get warned
c-git Jan 5, 2025
f81c69e
feat: add debug bound on error types
c-git Jan 5, 2025
fa7977e
fix: add a one loop tolerance for no progress
c-git Jan 5, 2025
8b310be
chore: switch to latest version of reqwest
c-git Jan 7, 2025
4198f14
ci: add job to check links
c-git Jan 7, 2025
c319484
chore: upgrade from http to https
c-git Jan 7, 2025
109f71d
chore: version bump 0.5.0
c-git Jan 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: streamline example testing
c-git committed Jan 4, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit cc9a73d44b99820e712ee00e4ff26f98b285b712
2 changes: 2 additions & 0 deletions .github/workflows/general.yml
Original file line number Diff line number Diff line change
@@ -23,6 +23,8 @@ jobs:
steps:
- uses: wykies/checkout@main
- uses: wykies/setup-rust-toolchain@main
- name: Run examples
run: cargo test --all-features --examples
- name: Run tests
run: cargo test --all-features

10 changes: 3 additions & 7 deletions bacon.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
default_job = "run_example" # Made default to remember to run it

# This one is more important it tests for deadlock
[jobs.run_example]
command = ["cargo", "run", "--features=yield_now", "--example", "loop_yield"]
[jobs.test_examples]
command = ["cargo", "test", "--features=yield_now", "--examples"]
need_stdout = true
allow_warnings = true

[keybindings]
e = "job:run_example"
e = "job:test_examples"
4 changes: 2 additions & 2 deletions examples/loop_yield.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Native and WASM require different main functions but after that it should be
// the same Uses yield but yield isn't available yet for wasm_bindgen_futures so
// the same. Uses yield but yield isn't available yet for wasm_bindgen_futures so
// uses a workaround found (poll-promise might be better)

use reqwest_cross::fetch;
use reqwest_cross::{fetch, reqwest};

#[cfg(all(not(target_arch = "wasm32"), feature = "native-tokio"))]
#[tokio::main]
4 changes: 2 additions & 2 deletions examples/simple_fetch.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Native and WASM require different main functions but after that it should be
// the same
// the same. This example shows how to do a simple fetch.

use reqwest_cross::fetch;
use reqwest_cross::{fetch, reqwest};

#[cfg(all(not(target_arch = "wasm32"), feature = "native-tokio"))]
#[tokio::main]