Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Releases: mre/prettyprint

Version 0.8.1

20 Apr 09:10
@mre mre
0c30e35
Compare
Choose a tag to compare
Version 0.8.1 Pre-release
Pre-release

Enable using pure-rust regex by @dtolnay. (See #26)

Version 0.8.0

20 Apr 09:08
@mre mre
2c9ae32
Compare
Choose a tag to compare
Version 0.8.0 Pre-release
Pre-release

Supports loading custom syntaxsets and themesets by updating syntect to 4.1.0. (See #24)

Version 0.7.1

29 Aug 19:57
@mre mre
Compare
Choose a tag to compare
Version 0.7.1 Pre-release
Pre-release

Updated dependencies thanks to @botika.

Version 0.7.0

14 Jun 03:11
@mre mre
Compare
Choose a tag to compare
Version 0.7.0 Pre-release
Pre-release

This release adds support for reconfiguring an existing prettyprinter like so:

//! Run
//! ```
//! cargo run --example dynamic-config
//! ```

use prettyprint::{PrettyPrintError, PrettyPrinter};

fn main() -> Result<(), PrettyPrintError> {
    let print = PrettyPrinter::default()
        .language("rust")
        .grid(false)
        .line_numbers(false)
        .build()
        .unwrap();

    print.string("fn main() {")?;

    for x in 0..9 {
        let printer = print.configure().grid(true).build().unwrap();
        printer.string(format!("let x = {};", x))?;
    }

    print.string("}")
}

Credits go to @DrSensor (see #13 and #12).

Version 0.6.0

05 Apr 10:55
@mre mre
Compare
Choose a tag to compare
Version 0.6.0 Pre-release
Pre-release

This version adds support for printing to stderr like this:

use prettyprint::*;

let pring = PrettyPrinter::default()
    .paging_mode(PagingMode::Error)
    .build()?;

See #8. Thanks to @DrSensor.

Version 0.5.0

31 Mar 11:17
@mre mre
04d571e
Compare
Choose a tag to compare
Version 0.5.0 Pre-release
Pre-release
  • Add support for printing inside loops and closures. Thanks to @DrSensor.

Version 0.4.0

31 Mar 11:16
@mre mre
Compare
Choose a tag to compare
Version 0.4.0 Pre-release
Pre-release
  • Add support for listing supported themes.

Version 0.3.0

16 Jan 16:36
@mre mre
Compare
Choose a tag to compare
Version 0.3.0 Pre-release
Pre-release

Makes the PrettyPrint struct public, which fixes the documentation. Thanks to @mitsuhiko (#3).