Improve Markdown table formatting (#647)

This commit is contained in:
Cl00e9ment 2022-04-03 15:02:43 +02:00 committed by GitHub
parent c90f3190df
commit 2e5ba7431f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 26 deletions

View File

@ -135,23 +135,22 @@ features = ["event-stream"]
``` ```
| Feature | Description | | Feature | Description |
| :----- | :----- | |:---------------|:---------------------------------------------|
| `event-stream` | `futures::Stream` producing `Result<Event>`.| | `event-stream` | `futures::Stream` producing `Result<Event>`. |
| `serde`| Se/dese/rializing of events. | | `serde` | Se/dese/rializing of events. |
### Dependency Justification ### Dependency Justification
| Dependency | Used for | Included | | Dependency | Used for | Included |
| :----- | :----- | :----- |:---------------|:---------------------------------------------------------------------------------|:--------------------------------------|
| `bitflags` | `KeyModifiers`, those are differ based on input.| always | `bitflags` | `KeyModifiers`, those are differ based on input. | always |
| `parking_lot` | locking `RwLock`s with a timeout, const mutexes. | always | `parking_lot` | locking `RwLock`s with a timeout, const mutexes. | always |
| `libc` | UNIX terminal_size/raw modes/set_title and several other lowlevel functionality. | UNIX only | `libc` | UNIX terminal_size/raw modes/set_title and several other lowlevel functionality. | UNIX only |
| `Mio` | event readiness polling, waking up poller | UNIX only | `Mio` | event readiness polling, waking up poller | UNIX only |
| `signal-hook`| signalhook is used to handle terminal resize SIGNAL with Mio. | UNIX only | `signal-hook` | signalhook is used to handle terminal resize SIGNAL with Mio. | UNIX only |
| `winapi`| Used for low-level windows system calls which ANSI codes can't replace | windows only | `winapi` | Used for low-level windows system calls which ANSI codes can't replace | windows only |
| `futures-core`| For async stream of events | only with `event-stream` feature flag | `futures-core` | For async stream of events | only with `event-stream` feature flag |
| `serde`| Se/dese/rializing of events | only with `serde` feature flag | `serde` | Se/dese/rializing of events | only with `serde` feature flag |
### Other Resources ### Other Resources

View File

@ -40,7 +40,7 @@ _Languages & Frameworks_ -> _Rust_ -> _Rustfmt_ -> _Run rustfmt on save_.
### Max Line Length ### Max Line Length
| Type | Max line length | | Type | Max line length |
| :--- | ---: | |:---------------------|----------------:|
| Code | 100 | | Code | 100 |
| Comments in the code | 120 | | Comments in the code | 120 |
| Documentation | 120 | | Documentation | 120 |

View File

@ -12,11 +12,11 @@ The examples are compatible with the latest release.
│   └── event-* │   └── event-*
│   └── stderr │   └── stderr
``` ```
| File Name | Description | Topics | File Name | Description | Topics |
| :------- | :------- | :------- | |:----------------------------|:-------------------------------|:------------------------------------------|
| `examples/interactive-test` | interactive, walk trough, demo | cursor, style, event | `examples/interactive-test` | interactive, walk trough, demo | cursor, style, event |
| `event-*`| event reading demos | (async) event reading | `event-*` | event reading demos | (async) event reading |
| `stderr` | crossterm over stderr demo | raw mode, alternate screen, custom output | `stderr` | crossterm over stderr demo | raw mode, alternate screen, custom output |
| `is_tty` | Is this instance a tty ? | tty | | `is_tty` | Is this instance a tty ? | tty |
## Run examples ## Run examples