https://github.com/killercup/rust-dbg-enhancer
reformats some subset of Rust's Debug style formatting
https://github.com/killercup/rust-dbg-enhancer
rust
Last synced: about 1 year ago
JSON representation
reformats some subset of Rust's Debug style formatting
- Host: GitHub
- URL: https://github.com/killercup/rust-dbg-enhancer
- Owner: killercup
- License: apache-2.0
- Created: 2019-07-01T14:15:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-01T15:10:17.000Z (over 6 years ago)
- Last Synced: 2025-01-01T08:17:33.952Z (about 1 year ago)
- Topics: rust
- Language: Rust
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# rust debug formatting enhancer
Simple tool that reformats some subset of Rust's Debug style formatting (`{:?}`)
to be easier readable (like `{:#?}`). Useful when you can't change the output
yourself.
[](https://travis-ci.org/killercup/rust-dbg-enhancer)
## Install
`cargo install --git https://github.com/killercup/rust-dbg-enhancer`
## Usage
Simple:
```console
$ echo 'Pair { rule: group, span: Span { str: "[Level2]", start: 204, end: 212 }, inner: [] }' | rust-dbg-enhancer
Pair {
rule: group,
span: Span {
str: "[Level2]'",
start: 204,
end: 212,
},
inner: [],
}
```
Using macOS copy-paste helpers:
```console
$ pbpaste | rust-dbg-enhancer
```
## License
Licensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
at your option.
### Contribution
Unless you explicitly state otherwise, any contribution intentionally
submitted for inclusion in the work by you, as defined in the Apache-2.0
license, shall be dual licensed as above, without any additional terms or
conditions.