File tree 3 files changed +9
-2
lines changed
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.5.1
2
+
3
+ - fix: RunContext needs to be decelared Sync (even though Workers are
4
+ single-threaded)
5
+
1
6
## 0.5.0
2
7
3
8
- feature: support for oauth - see wasm-service-oauth crate
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " wasm-service"
3
- version = " 0.5.0 "
3
+ version = " 0.5.1 "
4
4
authors = [
" stevelr <[email protected] >" ]
5
5
edition = " 2018"
6
6
license = " MIT OR Apache-2.0"
Original file line number Diff line number Diff line change @@ -34,10 +34,12 @@ pub use httpdate::HttpDate;
34
34
#[ derive( Debug ) ]
35
35
pub struct RunContext {
36
36
/// queue of deferred messages
37
- //pub log_queue: Mutex<LogQueue>,
38
37
pub log_queue : RefCell < LogQueue > ,
39
38
}
40
39
40
+ // workers are single-threaded
41
+ unsafe impl Sync for RunContext { }
42
+
41
43
impl RunContext {
42
44
/// log message (used by log! macro)
43
45
pub fn log ( & self , entry : LogEntry ) {
You can’t perform that action at this time.
0 commit comments