-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
async #23
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Damn - I meant to merge this not squash it. C'est la vie. |
orhun
pushed a commit
that referenced
this pull request
Dec 15, 2023
* new: Initial commit π * Update README.md * feat: tokio sleep β¨ * feat: remove async for increment and decrement β¨ * feat: decrease complexity of app struct β¨ * feat: remove ActionHandler β¨ * docs: Update README.md π * feat: More simplifications β¨ * feat: Add Error event β¨ * feat: Add trace_dbg macro β¨ * Create Makefile.toml * Create rustfmt.toml * Create cd.yml * Create .gitkeep * Update README.md * feat: keypress should not delay tick β¨ * feat: Remove async trait β¨ * docs: Update README.md π * feat: More simplifications β¨ * feat: Add time delay β¨ * feat: Tick after every increment or decrement β¨ * feat: Use ActionHandler β¨ * feat: Change time sleep to 5 seconds β¨ * feat: Change tick rate to 50 β¨ * feat: Separate render loop β¨ * feat: Decrease logging of Tick β¨ * feat: Replace RwLock with action channel implementation β¨ * chore: reformat β»οΈ * feat: Add ExitProcessing β¨ * feat: Add event handler tokio task β¨ * feat: Remove action handler and make more tokio tasks β¨ * feat: Cleaner exit β¨ * feat: Better variable names β¨ * feat: Refactor tx and rx for Action β¨ * feat: Add build.rs with shadow β¨ * feat: Update version string β¨ * feat: Reorganize utils β¨ * feat: Use libc exit codes β¨ * feat: Use precommit config β¨ * style: Make clippy happy π * refactor: move version to main.rs π¦ * feat: Drop shadow β¨ * feat: Update build.rs β¨ * feat: Update main.rs β¨ * feat: Add cliff.toml β¨ * feat: Simplify β¨ * feat: Remove current_exe_path β¨ * feat: Rename tui.rs to terminal.rs β¨ * feat: Rename TuiHandler to TerminalHandler β¨ * feat: Rename task to handle β¨ * feat: Reorder import β¨ * docs: Update README.md π * feat: Add signal handler to suspend and resume β¨ * feat: Reduce CPU utilization to 5% β¨ * feat: Rename TuiMsg to Message β¨ * chore: rename variables β»οΈ * feat: Separate app tick rate and render tick rate β¨ * chore: rename variables β»οΈ * docs: Update README.md π * chore: Rename variables β»οΈ * fix: bug in tick rate interval in event π * feat: Add docs β¨ * docs: Update index.qmd π * docs: Update part1.qmd π * docs: Update tutorial π * docs: Update part2.qmd π * docs: Update part3.qmd π * docs: Update parts π * docs: Update tutorial π * feat: Use terminal.rs and event.rs β¨ * docs: Update tutorial π * feat: Use tokio::sync::Notify instead of oneshot::Sender<()> β¨ * feat: Fix cargo clippy β¨ * feat: Use tokio_util::sync::CancellationToken instead of tokio::sync::Notify β¨ * feat: Use Message::Suspend β¨ * feat: Use action::Action β¨ * feat: Move should_quit and should_suspend to root app β¨ * feat: Use TuiTask and EventTask β¨ * feat: Make methods on app private β¨ * feat: Add TuiTask methods β¨ * feat: Refactor TerminalHandlerTask and EventHandlerTask to separate files β¨ * feat: Use tx.clone().unwrap() in home β¨ * docs: Update tutorial π * feat: Simplify app.run β¨ * feat: Simplify event and terminal β¨ * docs: Update tutorial π * feat: Make get_data_dir and get_config_dir return Result<PathBuf> instead β¨ * feat: Fix naming β¨ * feat: Implement Deref for Tui β¨ * docs: Update tutorial π * docs: Add faq π * docs: Update faq π * chore: Update files β»οΈ * fix: event documentation π * feat: Remove on_*_event functions β¨ * feat: Add serde β¨ * chore: Update files β»οΈ * feat: Rename from ratatui-template to ratatui-async-template β¨ * fix: link π * docs: Update documentation π * docs: Update documentation π * docs: Update documentation π * docs: Update documentation π * docs: Use mdbook instead π * docs: Add catppuccin π * docs: Add linkcheck π * docs: Fix CI π * docs: Disable playground π * docs: Update github workflow π * docs: Update documentation π * docs: Update documentation π * docs: Make CI mdbook plugins install faster π * docs: Use cache π * docs: Better permissions on github π * chore: Add workflow dispatch β»οΈ * chore: Remove catppuccin mdbook plugin install from ci β»οΈ * chore: Add bin to cargo cache β»οΈ * Update docs.yml * chore: Update cache β»οΈ * chore: Update docs.yml β»οΈ * chore: Update docs.yml β»οΈ * chore: Update docs.yml β»οΈ * chore: Update docs.yml β»οΈ * docs: add site-url for mdbook π * docs: fix content on ci π * docs: Fix sentence π * docs: fix 01-structure π * docs: Fix 01-structure π * docs: Add KeyEventPress example π * chore: Cache binaries for mdbook on CI β»οΈ * Update 01-structure.md * docs: update structure * docs: Update main.rs book section * docs: Update action.rs * docs: Update index.qmd * docs: Rename files * feat: Remove copy trait β¨ * feat: Add rust toolchain β¨ * feat: Use if let β¨ * Update 04-structure.md * feat: Use color eyre β¨ * fix: Remove is_markdown_file function π * docs: Update about string π * feat: Use a simpler structure * chore: Remove cliff.toml β»οΈ * feat: Don't use RUST_LOG environment variable β¨ * feat: better error handling β¨ * docs: Update screenshot in README.md * docs: Update README text π * docs: Remove tui-logger π * feat: Add default keymap β¨ * chore: Change components/mod.rs to components.rs β»οΈ * feat: Add FpsCounter component β¨ * feat: Better logging β¨ * feat: better error reporting β¨ * feat: Use tick rate and frame rate β¨ * feat: Add register action handler β¨ * fix: Change F1 to f1 to key event to string π * feat: Add test for key event to string β¨ * docs: Fix include π * feat: Add cargo generate template β¨ * docs: Update README.md π * docs: Update README.md and index.md π * chore: Update ci.yml β»οΈ * feat: Update template for ratatui-counter β¨ * docs: Update documentation π * feat: Remove Cargo files from root β¨ * docs: Better documentation for configuration π * feat: Add .envrc β¨ * feat: Add .envrc β¨ * docs: Update instructions for running demo π * feat: Better configuration handling β¨ * feat: Better configuration handling in counter β¨ * docs: Update README.md π * Update README.md * feat: Update styling β¨ * feat: Show current key presses β¨ * feat: Make cli.rs use short and long args β¨ * docs: Update README.md * docs: Update README.md π * feat: Update version string β¨ * feat: Add authors to the template β¨ * feat: Add ci and cd to template β¨ * feat: Better authors and package name β¨ * feat: Ignore log files β¨ * feat: Add more crossterm feature support β¨ * feat: Make tui build constructors β¨ * feat: Move mode to separate file β¨ * docs: Update README.md * docs: Update README.md π * docs: Update README.md π * docs: Update README.md π * docs: Update documentation π * feat: Change default render rate to 4fps β¨ * docs: Update README.md * feat: Use rhai script for cargo generate β¨ * feat: Add source for rhai script β¨ * feat: Change spelling β¨ * feat: Better prompt message β¨ * docs: Update README.md π * docs: Add docstring in template π * feat: Add Fps component to template β¨ * feat: Add optional rustfmt.toml β¨ * docs: Update README.md π * docs: Update README.md π * docs: Update README.md with better headings π * docs: Update README.md for more clarity π * docs: Update README.md by moving gifs around π * docs: Update README.md intro gif π * docs: Update README.md * docs: Update README.md * fix: Persist git info π * feat: Use strum β¨ (#20) * chore: Rename to async template β»οΈ (#21) * Update docs to make it relevant to both templates --------- Co-authored-by: Dheepak Krishnamurthy <[email protected]>
orhun
pushed a commit
that referenced
this pull request
Dec 15, 2023
* new: Initial commit π * Update README.md * feat: tokio sleep β¨ * feat: remove async for increment and decrement β¨ * feat: decrease complexity of app struct β¨ * feat: remove ActionHandler β¨ * docs: Update README.md π * feat: More simplifications β¨ * feat: Add Error event β¨ * feat: Add trace_dbg macro β¨ * Create Makefile.toml * Create rustfmt.toml * Create cd.yml * Create .gitkeep * Update README.md * feat: keypress should not delay tick β¨ * feat: Remove async trait β¨ * docs: Update README.md π * feat: More simplifications β¨ * feat: Add time delay β¨ * feat: Tick after every increment or decrement β¨ * feat: Use ActionHandler β¨ * feat: Change time sleep to 5 seconds β¨ * feat: Change tick rate to 50 β¨ * feat: Separate render loop β¨ * feat: Decrease logging of Tick β¨ * feat: Replace RwLock with action channel implementation β¨ * chore: reformat β»οΈ * feat: Add ExitProcessing β¨ * feat: Add event handler tokio task β¨ * feat: Remove action handler and make more tokio tasks β¨ * feat: Cleaner exit β¨ * feat: Better variable names β¨ * feat: Refactor tx and rx for Action β¨ * feat: Add build.rs with shadow β¨ * feat: Update version string β¨ * feat: Reorganize utils β¨ * feat: Use libc exit codes β¨ * feat: Use precommit config β¨ * style: Make clippy happy π * refactor: move version to main.rs π¦ * feat: Drop shadow β¨ * feat: Update build.rs β¨ * feat: Update main.rs β¨ * feat: Add cliff.toml β¨ * feat: Simplify β¨ * feat: Remove current_exe_path β¨ * feat: Rename tui.rs to terminal.rs β¨ * feat: Rename TuiHandler to TerminalHandler β¨ * feat: Rename task to handle β¨ * feat: Reorder import β¨ * docs: Update README.md π * feat: Add signal handler to suspend and resume β¨ * feat: Reduce CPU utilization to 5% β¨ * feat: Rename TuiMsg to Message β¨ * chore: rename variables β»οΈ * feat: Separate app tick rate and render tick rate β¨ * chore: rename variables β»οΈ * docs: Update README.md π * chore: Rename variables β»οΈ * fix: bug in tick rate interval in event π * feat: Add docs β¨ * docs: Update index.qmd π * docs: Update part1.qmd π * docs: Update tutorial π * docs: Update part2.qmd π * docs: Update part3.qmd π * docs: Update parts π * docs: Update tutorial π * feat: Use terminal.rs and event.rs β¨ * docs: Update tutorial π * feat: Use tokio::sync::Notify instead of oneshot::Sender<()> β¨ * feat: Fix cargo clippy β¨ * feat: Use tokio_util::sync::CancellationToken instead of tokio::sync::Notify β¨ * feat: Use Message::Suspend β¨ * feat: Use action::Action β¨ * feat: Move should_quit and should_suspend to root app β¨ * feat: Use TuiTask and EventTask β¨ * feat: Make methods on app private β¨ * feat: Add TuiTask methods β¨ * feat: Refactor TerminalHandlerTask and EventHandlerTask to separate files β¨ * feat: Use tx.clone().unwrap() in home β¨ * docs: Update tutorial π * feat: Simplify app.run β¨ * feat: Simplify event and terminal β¨ * docs: Update tutorial π * feat: Make get_data_dir and get_config_dir return Result<PathBuf> instead β¨ * feat: Fix naming β¨ * feat: Implement Deref for Tui β¨ * docs: Update tutorial π * docs: Add faq π * docs: Update faq π * chore: Update files β»οΈ * fix: event documentation π * feat: Remove on_*_event functions β¨ * feat: Add serde β¨ * chore: Update files β»οΈ * feat: Rename from ratatui-template to ratatui-async-template β¨ * fix: link π * docs: Update documentation π * docs: Update documentation π * docs: Update documentation π * docs: Update documentation π * docs: Use mdbook instead π * docs: Add catppuccin π * docs: Add linkcheck π * docs: Fix CI π * docs: Disable playground π * docs: Update github workflow π * docs: Update documentation π * docs: Update documentation π * docs: Make CI mdbook plugins install faster π * docs: Use cache π * docs: Better permissions on github π * chore: Add workflow dispatch β»οΈ * chore: Remove catppuccin mdbook plugin install from ci β»οΈ * chore: Add bin to cargo cache β»οΈ * Update docs.yml * chore: Update cache β»οΈ * chore: Update docs.yml β»οΈ * chore: Update docs.yml β»οΈ * chore: Update docs.yml β»οΈ * chore: Update docs.yml β»οΈ * docs: add site-url for mdbook π * docs: fix content on ci π * docs: Fix sentence π * docs: fix 01-structure π * docs: Fix 01-structure π * docs: Add KeyEventPress example π * chore: Cache binaries for mdbook on CI β»οΈ * Update 01-structure.md * docs: update structure * docs: Update main.rs book section * docs: Update action.rs * docs: Update index.qmd * docs: Rename files * feat: Remove copy trait β¨ * feat: Add rust toolchain β¨ * feat: Use if let β¨ * Update 04-structure.md * feat: Use color eyre β¨ * fix: Remove is_markdown_file function π * docs: Update about string π * feat: Use a simpler structure * chore: Remove cliff.toml β»οΈ * feat: Don't use RUST_LOG environment variable β¨ * feat: better error handling β¨ * docs: Update screenshot in README.md * docs: Update README text π * docs: Remove tui-logger π * feat: Add default keymap β¨ * chore: Change components/mod.rs to components.rs β»οΈ * feat: Add FpsCounter component β¨ * feat: Better logging β¨ * feat: better error reporting β¨ * feat: Use tick rate and frame rate β¨ * feat: Add register action handler β¨ * fix: Change F1 to f1 to key event to string π * feat: Add test for key event to string β¨ * docs: Fix include π * feat: Add cargo generate template β¨ * docs: Update README.md π * docs: Update README.md and index.md π * chore: Update ci.yml β»οΈ * feat: Update template for ratatui-counter β¨ * docs: Update documentation π * feat: Remove Cargo files from root β¨ * docs: Better documentation for configuration π * feat: Add .envrc β¨ * feat: Add .envrc β¨ * docs: Update instructions for running demo π * feat: Better configuration handling β¨ * feat: Better configuration handling in counter β¨ * docs: Update README.md π * Update README.md * feat: Update styling β¨ * feat: Show current key presses β¨ * feat: Make cli.rs use short and long args β¨ * docs: Update README.md * docs: Update README.md π * feat: Update version string β¨ * feat: Add authors to the template β¨ * feat: Add ci and cd to template β¨ * feat: Better authors and package name β¨ * feat: Ignore log files β¨ * feat: Add more crossterm feature support β¨ * feat: Make tui build constructors β¨ * feat: Move mode to separate file β¨ * docs: Update README.md * docs: Update README.md π * docs: Update README.md π * docs: Update README.md π * docs: Update documentation π * feat: Change default render rate to 4fps β¨ * docs: Update README.md * feat: Use rhai script for cargo generate β¨ * feat: Add source for rhai script β¨ * feat: Change spelling β¨ * feat: Better prompt message β¨ * docs: Update README.md π * docs: Add docstring in template π * feat: Add Fps component to template β¨ * feat: Add optional rustfmt.toml β¨ * docs: Update README.md π * docs: Update README.md π * docs: Update README.md with better headings π * docs: Update README.md for more clarity π * docs: Update README.md by moving gifs around π * docs: Update README.md intro gif π * docs: Update README.md * docs: Update README.md * fix: Persist git info π * feat: Use strum β¨ (#20) * chore: Rename to async template β»οΈ (#21) * Update docs to make it relevant to both templates --------- Co-authored-by: Dheepak Krishnamurthy <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
d4cb726 is the only relevant change