Ian Chamberlain
6b409cdcae
Add support for reading files to file-explorer
3 years ago
AzureMarker
12ba4278c6
Remove stack size overrides now that std defaults to 2MiB
3 years ago
AzureMarker
15763bac1d
Use the new ThreadBuilderExt trait
3 years ago
AzureMarker
e2a0e61742
Fix HashMap test referring to old thread builder
3 years ago
AzureMarker
e986a5a1da
Remove sysconf stub since it's now implemented in linker-fix
3 years ago
AzureMarker
a6b102f156
Update to use std threads
...
Yay! Deleting code is nice.
3 years ago
Meziu
56f4b3352a
Merge pull request #41 from ian-h-chamberlain/testing/custom-test-framework
...
Use custom test framework to `cargo test` !
3 years ago
Ian Chamberlain
91c2c587d9
Remove unnecessary escape characters
3 years ago
Ian Chamberlain
6beed43fe3
Address review comments
...
- Switch to single-threaded test and fix thread-local hashmap issue.
- Use apt loop instead of `loop {}` , and wait for vblank.
- Remove extraneous pthread stub.
3 years ago
Ian Chamberlain
b839fc3330
Merge remote-tracking branch 'upstream/master' into testing/custom-test-framework
3 years ago
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
Ian Chamberlain
75727fd3e9
Fix build and tweak some options
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
Ian Chamberlain
4ea3ab4769
First pass of using custom test runner
...
It works!
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