Andrea Ciliberti
b835695b0b
Changed example names to keep the standard
3 years ago
Meziu
c01fa4de30
Merge pull request #42 from Meziu/example/futures-tokio
...
Basic Tokio example
3 years ago
AzureMarker
fd9b58498d
IT WORKS
...
Needs some fixes in pthread-3ds.
Made the log less noisy and added some comments.
3 years ago
AzureMarker
8bf2b276cf
Turn off randomness in tokio::select when more than one future is ready
3 years ago
AzureMarker
282044068b
Use the new Ps struct
3 years ago
AzureMarker
368cf8bc0c
Increase stack size and add more detailed logs
...
The default stack size is super small: 4096 bytes. This was causing the
stack to overflow during normal processing. This was also not detected,
so it corrupted the heap and led to odd behavior or aborts.
See this long comment for more details and explanation:
https://github.com/Meziu/ctru-rs/pull/42#issuecomment-1030724973
I bumped the stack size to 2MiB, which is the default for Rust's std
threads. I have a few ideas to fix the underlying issues here (add a
guard struct like std does for stack overflows, move 3ds-specific stuff
like affinity into std but keep the impl in ctru-rs via linker hacks).
Also added some more logging.
3 years ago
AzureMarker
133df927c0
Add thread locals example to make sure they work
3 years ago
AzureMarker
5b75bf5e83
Merge branch 'master' into example/futures-tokio
3 years ago
Andrea Ciliberti
8ed7c97a5d
Simple functions added to Ps and HashMap example
3 years ago
Andrea Ciliberti
ab728c75c1
Merge branch 'feature/ps-module' of https://github.com/ian-h-chamberlain/ctru-rs
3 years ago
Meziu
24ec4f2fc1
Merge pull request #36 from AzureMarker/example/futures-basic
...
Add a basic futures example
3 years ago
AzureMarker
88315aec61
Group together thread info calls
3 years ago
AzureMarker
56b056d721
Merge branch 'master' into example/futures-tokio
3 years ago
Andrea Ciliberti
54085101f3
Bumped ctru-sys to latest libctru version
3 years ago
Meziu
2ed36b9a97
Merge pull request #40 from Meziu/fix/duplicate-dependencies
3 years ago
AzureMarker
c061240dfc
Add futures-tokio-basic example (not working yet)
...
There's some issues with the example right now. See
https://github.com/Meziu/ctru-rs/pull/36#issuecomment-1028617954
3 years ago
AzureMarker
82eded005e
Remove duplicate dependencies by patching, and add back links field
...
We don't want duplicate ctru-sys crates in the dependency graph. Same
for libc. We can patch them here to avoid any issues.
Now that we don't have duplicate ctru-sys crates, we can add back the
links field. This field is important because it warns us when there are
two crates linking to the same library (ex. duplicate ctru-sys crates).
3 years ago
Ian Chamberlain
cb15f99486
Add docstring for PS module
3 years ago
Ian Chamberlain
f2f64da50a
Add basic Ps module which only has init()
3 years ago
AzureMarker
39adc8590e
Enable the system core by setting our time limit percentage
3 years ago
AzureMarker
e4d76ea4e7
Merge branch 'master' into example/futures-basic
3 years ago
AzureMarker
c13c1c8c68
Run executor thread on system core
3 years ago
Andrea Ciliberti
77f673e9d9
Removed link field in ctru-sys
3 years ago
Andrea Ciliberti
fbd873432c
Revert "Removed link field in ctru-sys"
...
This reverts commit c59de27f85
.
3 years ago
Andrea Ciliberti
c3d19204b9
Merge branch 'master' of https://github.com/Meziu/ctru-rs
3 years ago
AzureMarker
8835951f7d
Fix clippy warning about unused screen field
3 years ago
Andrea Ciliberti
c59de27f85
Removed link field in ctru-sys
3 years ago
Meziu
c39454f57a
Merge pull request #35 from ian-h-chamberlain/errors/split-and-debug
3 years ago
Ian Chamberlain
0326e9ea9d
Address review comments for Debug impl
3 years ago
Meziu
9f0984a455
Merge pull request #37 from AzureMarker/fix/unused-screen
3 years ago
AzureMarker
aebf347a00
Fix clippy warning about unused screen field
3 years ago
AzureMarker
5c5ac7ef66
Ignore IDE files
3 years ago
AzureMarker
4dd2196971
Add a basic futures example
3 years ago
Ian Chamberlain
92c37b00b7
Add translations of result macros + debug impl
3 years ago
Meziu
b0e73b98ef
Merge pull request #33 from AzureMarker/update/libc
3 years ago
Meziu
8ba1bb28fd
Merge pull request #29 from ian-h-chamberlain/example/graphics-bitmap
3 years ago
AzureMarker
1402dacc5f
Update libc to the upstream
...
Our PR merged.
3 years ago
Ian Chamberlain
9aac807407
Address review comments
...
Keep RawFrameBuffer alive as long as the Screen is, to ensure the Gfx is
not dropped while the FrameBuffer is alive.
3 years ago
Meziu
e98b0a97aa
Merge pull request #28 from Meziu/fix/new-panic-exit
3 years ago
Ian Chamberlain
98e026373e
Use a struct to represent the raw frame buffer
...
I chose the name RawFrameBuffer in case we'd like to provide a "safer"
alternative API at some point.
3 years ago
Andrea Ciliberti
9ea0232902
Removed ANSI formatting from panic hook
3 years ago
Meziu
038ed7b248
Merge pull request #30 from AzureMarker/tweak/file-explorer-improvements
3 years ago
Ian Chamberlain
be94b04d1d
Use better image conversion command
...
This looks more correct on the device to my eye and is a bit simpler.
3 years ago
AzureMarker
d3df72e22f
Prevent popping the last segment of a path (ex. / or romfs:/)
3 years ago
AzureMarker
f87e2ad0f7
Move romfs folder into examples folder
3 years ago
Ian Chamberlain
be4784e3bc
Use bottom-only framebuffer API for "left"
3 years ago
Ian Chamberlain
793a95073b
First pass of graphics bitmap example
3 years ago
Andrea Ciliberti
ea80b57880
Added check for Console existence on panic
3 years ago
Meziu
1b743711d8
Update ctru-rs/src/lib.rs
...
Co-authored-by: Ian Chamberlain <ian-h-chamberlain@users.noreply.github.com>
3 years ago
Andrea Ciliberti
aa2ca2c486
Fixed merge conflict
3 years ago