laizy
fb19ebde17
add Sync
constraint for RwLock to prevent memory unsafety ( #479 )
2019-11-08 08:56:55 +00:00
Yoshua Wuyts
335bd34470
Add "std" feature flag ( #476 )
...
* core feature
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
* introduce std + default features
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
* test std features on ci
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
* finish up all features
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
* Fix task_local macro
* Remove crossbeam-channel and futures-timer from std
* Move future::timeout() behind cfg_default
2019-11-07 23:56:58 +00:00
Stjepan Glavina
bc24503382
Fix deadlock when all receivers are dropped ( #474 )
...
* Fix deadlock when all receivers are dropped
* Add a comment to explain the behavior of try_send
* Disable clippy
2019-11-07 22:01:36 +00:00
Yoshua Wuyts
a064a5b13e
Merge pull request #459 from stjepang/expose-ext-traits
...
Expose extension traits in preludes
2019-11-07 02:48:50 +01:00
Stjepan Glavina
c34e0f8a35
Update futures to 0.3 ( #463 )
...
* Update futures to 0.3
* Fix a search-and-replace error
* Fix imports in tests
* Fix an import
2019-11-06 20:20:27 +00:00
Stjepan Glavina
93b01e36ed
Clippy fixes ( #462 )
2019-11-06 19:29:17 +00:00
Stjepan Glavina
a757cc02dc
Expose extension traits in preludes
2019-11-06 00:21:32 +01:00
Stjepan Glavina
6d421de992
Fix another clippy warning
2019-11-05 10:16:00 +00:00
Stjepan Glavina
5874392397
Fix a clippy warning
2019-11-04 18:48:49 +01:00
Stjepan Glavina
e9edadffc7
Fix a deadlock in channel
2019-11-04 18:15:12 +01:00
Stjepan Glavina
20cdf73bb0
Simplify RwLock using WakerSet ( #440 )
2019-11-04 02:40:55 +01:00
Stjepan Glavina
78614c6c1d
Clarify blocking in channel docs ( #448 )
2019-11-03 22:19:04 +01:00
Stjepan Glavina
87de4e1598
Add utility type WakerSet to the sync module ( #390 )
...
* Add utility type Registry to the sync module
* Remove unused import
* Split unregister into complete and cancel
* Refactoring and renaming
* Split remove() into complete() and cancel()
* Rename to WakerSet
* Ignore clippy warning
* Ignore another clippy warning
* Use stronger SeqCst ordering
2019-11-01 02:45:50 +01:00
Yoshua Wuyts
3a06a1211b
Add feedback from review
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-10-29 10:56:33 +01:00
Yoshua Wuyts
5f8e2cbd4a
add mod level docs for sync
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-10-28 00:34:27 +01:00
Stjepan Glavina
b2fe91385b
Add channel behind unstable feature flag ( #380 )
...
* Add channel behind unstable feature flag
* Don't check tests without unstable feature flag
* Fix typos
* Remove useless attribute
2019-10-23 17:02:03 +01:00
Taiki Endo
2abf5ca891
Deny warnings on CI ( #378 )
...
* Deny warnings on CI
* Fix some clippy warnings
2019-10-23 20:20:59 +09:00
Stjepan Glavina
ec23632f3e
Cleanup: replace cfg-if with our macros ( #361 )
...
* Cleanup: replace cfg-if with our macros
* Prefix macros with cfg_
* Remove #[macro_export] from internal macros
2019-10-17 19:17:49 +02:00
k-nasa
9d9543c46b
refactor: Remove needless main fn
2019-10-13 16:33:02 +09:00
Stjepan Glavina
de01a5c5b7
Stabilize io::Cursor
2019-10-09 17:19:34 +02:00
k-nasa
f08fcd0bbb
refactor
2019-10-01 18:08:24 +09:00
Yoshua Wuyts
06862d47c3
update Barrier example to match std::sync::Barrier 1:1
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-09-29 04:21:48 +02:00
Yoshua Wuyts
0b39306b74
fix barrier tests
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-09-26 17:24:24 +02:00
Yoshua Wuyts
c23cc769ee
mark sync::Barrier as unstable
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-09-26 16:34:44 +02:00
dignifiedquire
b77b72d333
feat: implement sync::Barrier
...
Based on the implementation in https://github.com/tokio-rs/tokio/pull/1571
2019-09-25 21:10:06 +02:00
Yoshua Wuyts
fa31c6347e
expose sync::{Arc,Weak}
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-09-19 18:28:17 +02:00
Yoshua Wuyts
63ad786768
remove async_await feature gate
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-08-21 00:29:35 -07:00
Stjepan Glavina
e459bd048e
Cleanup and docs
2019-08-14 04:22:37 +02:00
Stjepan Glavina
019c8085f4
Cleanup examples
2019-08-14 03:47:39 +02:00
Stjepan Glavina
a430e27819
Cleanup, docs, fmt
2019-08-12 18:00:21 +02:00
Stjepan Glavina
3f4a56abdc
Reformat doc examples
2019-08-09 02:56:59 +02:00
Florian Gilcher
5b0a6269a9
Initial commit
2019-08-08 14:44:48 +02:00