Started revisional update

Fortune for termprogress's current commit: Half blessing − 半吉
small-refactor
Avril 3 weeks ago
parent 5147a1b0dc
commit c2d875cc40
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -2,25 +2,27 @@
name = "termprogress"
description = "A terminal progress bar renderer with status and spinners"
license = "GPL-3.0-or-later"
version = "0.10.0"
# TODO: After full interface update & correction, bump version to `0.11.0` instead or a revision.
version = "0.10.0-r1"
authors = ["Avril <flanchan@cumallover.me>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["size"]
default = ["size", "reactive"]
# Use terminal size when drawing bars.
size = ["terminal_size"]
# React to `SIGWINCH` when `stdout` is a terminal (linux only.)
# TODO: React to `SIGWINCH` when output stream is a terminal (linux only.)
reactive = []
[dependencies]
atomic_refcell = "0.1.10"
stackalloc = "1.2.0"
terminal_size = {version = "0.1", optional = true}
[build-dependencies]
rustc_version = "0.2"

@ -6,6 +6,9 @@ fn main() {
// Assert we haven't travelled back in time
assert!(version().unwrap().major >= 1);
println!("cargo::rustc-check-cfg=cfg(nightly)");
println!("cargo::rustc-check-cfg=cfg(stable)");
// Set cfg flags depending on release channel
match version_meta().unwrap().channel {
Channel::Stable => {

@ -2,6 +2,8 @@
#![allow(dead_code)]
//TODO: XXX: Change default output to `stderr`, **NOT** stdout, ffs... Also add allow custom stream output. Change behaviour that if `not isatty(S)` with `terminal_size` feature enabled an error is returned instead of *guessing* default sizes when it's not (caller can force by `unwrap_or*(50)`.)
macro_rules! flush {
($stream:expr) => {
{

Loading…
Cancel
Save