Daniel Albl and Evan Almloff
18dca07e4b
Use a gen in PartialEq for UseSharedState ( #1389 )
...
* Special case UseFutureDep for UseSharedState
* Add 'gen' to UseSharedState for use in 'PartialEq'
* Update 'gen' in 'UseSharedState::new'
* Don't require PartialEq for T in UseSharedState
---------
Co-authored-by: Evan Almloff <evanalmloff@gmail.com >
2023-09-13 12:10:03 -05:00
Daniel Albl
555f4d5834
Add 'with' and 'with_mut' to 'use_shared_state' ( #1353 )
2023-08-15 13:27:19 -05:00
Jonathan Kelley
39e89c1fac
Bump crate versions, fix any publish errors
2023-07-31 18:49:54 -07:00
niedzwiedzw
337697a886
test with forked version of debug-cell
2023-07-13 20:12:28 +02:00
niedzwiedzw
60d6137f39
better display for locations in panic messages
2023-07-12 16:36:17 +02:00
niedzwiedzw
9154b0f8ea
pass the information on previous caller on clone
2023-07-12 16:24:39 +02:00
niedzwiedzw
af091c5bf8
turns out Result combinators are not marked with #[trace_caller], so it must be written without function nesting in order to work
2023-07-12 16:20:19 +02:00
niedzwiedzw
3fa519563e
prevent inlining
2023-07-12 12:27:17 +02:00
niedzwiedzw
760d93716f
also track previous caller in the in debug mode to show the conflicting borrow
2023-07-12 02:53:48 +02:00
niedzwiedzw
9da32d5465
oh yeah, tracking itself should also be debug-only
2023-07-12 01:53:00 +02:00
niedzwiedzw
b8c14ce35c
make location diagnostics optional (only available in debug mode)
2023-07-12 01:38:50 +02:00
niedzwiedzw
43e3304eaf
track caller for easier debugging
2023-07-12 01:19:20 +02:00
niedzwiedzw
f159779af4
make thiserror a workspace dependency everywhere else
2023-07-11 22:54:24 +02:00
niedzwiedzw
469a7ac0af
better diagnostics for use_shared_state
2023-07-11 21:41:52 +02:00
Marc Espín
a3654fd0b8
Update use_shared_state.rs
2023-06-20 19:13:34 +02:00
Evan Almloff
2dd40ec202
add docs to remaining items
2023-03-02 12:02:12 -06:00
Evan Almloff
88198fc47c
remove static bound on owner
2023-03-02 11:59:25 -06:00
Evan Almloff
d238481936
reduce indirection and remove some unnecessary methods
2023-03-02 11:54:21 -06:00
Evan Almloff
f5c058a2eb
make use_shared_state usable in static futures
2023-03-02 11:42:02 -06:00
Jonathan Kelley
0bf4725639
fix: namespacing of dynamic attributes
2022-12-07 15:11:51 -08:00
Jonathan Kelley
a61daf220d
feat: context api overhaul
2022-12-02 16:24:49 -08:00
Reinis Mazeiks
d734dc5b46
Remove argument from use_hook closure ( #496 )
...
Also; update docs for said function
2022-07-11 15:50:56 -04:00
Jonathan Kelley
cd7ee47e40
fix: make clippy happier with rust 1.63
2022-06-30 16:35:33 -04:00
Jonathan Kelley
f2979cb12a
feat: apply local router changes
2022-03-04 13:16:37 -05:00
Ilya Maximov
916dc64402
style: format againkjdfakbjfbkasjd
2022-02-23 20:00:01 +01:00
Ilya Maximov
bda4a71a72
feat: change schedule_update's Rc to an Arc
...
BREAKING CHANGE
2022-02-23 19:47:17 +01:00
Dave Rolsky
00ff54bb3b
Fix typo in comment in use_shared_state.rs
2022-01-29 10:43:10 -06:00
Alexandre Kirszenberg
b6903bf558
Enable clippy
2022-01-08 16:35:26 +01:00
Jonathan Kelley
75fa7b4aa6
fix: make tests pass
2022-01-03 01:12:39 -05:00
Jonathan Kelley
d1560450ba
wip: remove runner on hook and then update docs
2022-01-02 02:15:04 -05:00
Jonathan Kelley
a4f280d163
feat: more API updates
2021-12-28 23:20:01 -05:00
Jonathan Kelley
8daf7a6ed8
wip: go back to noisy lifetime solution
2021-12-14 02:27:59 -05:00
Jonathan Kelley
0545d27182
wip: make warnings go away
2021-12-13 00:16:05 -05:00
Jonathan Kelley
597a0456f5
wip: update hooks
2021-12-13 00:14:47 -05:00
Jonathan Kelley
1e4a599d14
wip: rename fc to component
2021-12-09 21:19:31 -05:00
Jonathan Kelley
8814977eee
wip: docs
2021-11-30 22:48:05 -05:00
Jonathan Kelley
a21020ea57
wip: bubbling in progress
2021-11-11 21:34:20 -05:00
Jonathan Kelley
8acdd2ea83
feat: it compiles once more
2021-11-11 16:36:51 -05:00
Jonathan Kelley
2933e4bc11
wip: major cleanups to scheduler
2021-11-06 23:11:17 -04:00
Jonathan Kelley
1e6e5e611b
wip: move examples around
2021-11-03 15:13:50 -04:00
Jonathan Kelley
fda2ebc2a2
feat: improve safety
2021-10-25 15:05:17 -04:00
Jonathan Kelley
478255f40d
fix: all the bugs!
2021-10-11 18:40:00 -04:00
Jonathan Kelley
4a4c7afca7
feat: shared state mechanisms
2021-10-11 15:35:20 -04:00