commit_hash
stringlengths
40
40
author
stringlengths
1
57
date
timestamp[s]date
2010-07-26 04:45:09
2026-04-14 18:21:10
message
stringlengths
8
1.39M
diff
stringlengths
68
51.2k
files_changed
int64
1
136
insertions
int64
0
2.35k
deletions
int64
0
1.9k
cd5fb82fa371f228979dc655e93cdcddb3563d1c
Alex Crichton
2015-06-17T05:51:24
Er, maybe winapi *does* compile on unix!
diff --git a/Cargo.toml b/Cargo.toml index df21e09..bc8dcc1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,9 +12,6 @@ description = """ A terminal formatting library """ -[target.i686-pc-windows-gnu] -dependencies = { winapi = "0.1", kernel32-sys = "0.1" } -[target.x86_64-pc-windows-gnu] -dependencies = { winapi =...
1
3
6
7190174765fc2e81a822208d319f6013918df8e3
Alex Crichton
2015-06-15T05:59:44
Er, maybe winapi doesn't compile on unix
diff --git a/Cargo.toml b/Cargo.toml index 90acff0..df21e09 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "term" -version = "0.2.8" +version = "0.2.9" authors = ["The Rust Project Developers"] license = "MIT/Apache-2.0" readme = "README.md" @@ -12,6 +12,9 @@ description = """ A termi...
1
7
4
1b2cb7c6ff067e0836866211f5fcbc79fd6bc936
Alex Crichton
2015-06-15T05:57:38
Bump to 0.2.8
diff --git a/Cargo.toml b/Cargo.toml index da18c39..90acff0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "term" -version = "0.2.7" +version = "0.2.8" authors = ["The Rust Project Developers"] license = "MIT/Apache-2.0" readme = "README.md"
1
1
1
74fb1ecb561e8b74176f08301a9869e9edb27b7b
Alex Crichton
2015-06-13T23:45:49
Just depend on windows crates on all platforms They're #[cfg]'d out to be noops anyway
diff --git a/Cargo.toml b/Cargo.toml index ef9f6a5..da18c39 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,10 +12,6 @@ description = """ A terminal formatting library """ -[target.i686-pc-windows-gnu.dependencies] -winapi = "0.1" -kernel32-sys = "0.1" - -[target.x86_64-pc-windows-gnu.dependencies] +[dependencies] ...
1
1
5
6822aed1980f572f5d241c7bacf6971b5e2775ed
Alex Crichton
2015-06-05T17:53:16
Add attribute to make crate unstable at compile time If included in the upstream Rust build this will be required
diff --git a/src/lib.rs b/src/lib.rs index 22287e9..ea4a10b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -62,6 +62,11 @@ html_playground_url = "http://play.rust-lang.org/")] #![deny(missing_docs)] #![cfg_attr(test, deny(warnings))] +#![cfg_attr(rust_build, feature(staged_api))] +#![cfg_attr(rust_build, staged_...
1
5
0
991b9d7c12433f901624ee3ce5aa5f3bbf0599f2
Ben S
2015-05-27T18:03:07
Fix a tiny typo
diff --git a/src/lib.rs b/src/lib.rs index 3bcb984..22287e9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -76,7 +76,7 @@ pub mod terminfo; #[cfg(windows)] mod win; -/// Alias for stderr terminals. +/// Alias for stdout terminals. pub type StdoutTerminal = Terminal<Output=Stdout> + Send; /// Alias for stderr termina...
1
1
1
62df682a5a602d264836d772c5e75de0c7405bef
Alex Crichton
2015-05-03T07:06:03
More typos
diff --git a/src/lib.rs b/src/lib.rs index b029d38..f3696bd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,7 +19,7 @@ //! # Usage //! //! This crate is [on crates.io](https://crates.io/crates/term) and can be -//! used by adding `rand` to the dependencies in your project's `Cargo.toml`. +//! used by adding `term` t...
1
1
1
dfa3d8d464d17fbac33bfdc4f93003899740960e
Alex Crichton
2015-05-03T07:01:55
Don't use `"*"`
diff --git a/src/lib.rs b/src/lib.rs index eac3262..133b157 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -23,12 +23,12 @@ //! //! ```toml //! [dependencies] -//! -//! term = "*" +//! +//! term = "0.2" //! ``` -//! +//! //! and this to your crate root: -//! +//! //! ```rust //! extern crate term; //! ```
1
4
4
cf2e3772ddf0f4747958e52a253ebb7eb09b5399
Steve Klabnik
2015-05-02T20:05:27
Add usage in tree
diff --git a/src/lib.rs b/src/lib.rs index d5e55e7..eac3262 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -16,6 +16,23 @@ //! a [terminfo][ti] database, and `WinConsole`, which uses the [Win32 Console //! API][win]. //! +//! # Usage +//! +//! This crates is [on crates.io](https://crates.io/crates/term) and can be +//!...
1
17
0
4dde2fbcb3ddb044b53e85110493605583f6b6d9
Steven Allen
2015-05-02T01:11:17
Rename unwrap to into_inner. Convention. [breaking-change]
diff --git a/src/lib.rs b/src/lib.rs index c4dab01..0395434 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -221,5 +221,5 @@ pub trait Terminal: Write { fn get_mut<'a>(&'a mut self) -> &'a mut Self::Output; /// Returns the contained stream, destroying the `Terminal` - fn unwrap(self) -> Self::Output where Se...
3
3
3
58ab4ebf4098caf613abf17751a3b43b411d50f3
Steven Allen
2015-05-02T01:09:02
Get rid of UnwrappableTerminal trait. Unless I'm mistaken, this only existed to ensure that Terminal is object safe. However, it's now possible to specify `Self: Sized` on methods to exclude them from objects so the extra trait should be unnecessary. [breaking-change]
diff --git a/src/lib.rs b/src/lib.rs index d5e55e7..c4dab01 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -219,10 +219,7 @@ pub trait Terminal: Write { /// Gets a mutable reference to the stream inside fn get_mut<'a>(&'a mut self) -> &'a mut Self::Output; -} -/// A terminal which can be unwrapped. -pub trai...
3
4
12
0aa14a82ba1b25f381a3ded569784a6295d63b43
Steven Allen
2015-05-01T03:00:48
Use an associated type for the terminal output handle type. [breaking-change]
diff --git a/src/lib.rs b/src/lib.rs index de8628f..d5e55e7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -60,9 +60,9 @@ pub mod terminfo; mod win; /// Alias for stderr terminals. -pub type StdoutTerminal = Terminal<Stdout> + Send; +pub type StdoutTerminal = Terminal<Output=Stdout> + Send; /// Alias for stderr termi...
3
17
11
6abed5b59c0d4b063d7fc153db1f4ae8a3c42822
Peter Atashian
2015-04-28T21:42:59
Add Windows implementations for some things: `delete_line` `cursor_up` and `carriage_return` Also switch to using `CONOUT$` to get a handle to the output buffer Also use `Result` a bit more Signed-off-by: Peter Atashian <retep998@gmail.com>
diff --git a/src/lib.rs b/src/lib.rs index 669e3a8..de8628f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT +// Copyright 2013-2015 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and ...
2
117
28
10cc9f23b42d5d305899e0e46b706624fc24f65b
Adam Solove
2015-04-25T00:47:47
Add support for terminfo normalized carriage return.
diff --git a/src/lib.rs b/src/lib.rs index 65bafc2..669e3a8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -205,6 +205,12 @@ pub trait Terminal<T: Write>: Write { /// if there was an I/O error. fn delete_line(&mut self) -> io::Result<bool>; + /// Moves the cursor to the left edge of the current line. + /...
2
10
0
4c9e41d5b26e3f1cddaf936275e54aefeec0eec1
Adam Solove
2015-04-24T01:27:06
Add terminfo implementation of cursor_up and delete_line.
diff --git a/src/lib.rs b/src/lib.rs index 9ecbaa5..65bafc2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -193,6 +193,18 @@ pub trait Terminal<T: Write>: Write { /// was an I/O error. fn reset(&mut self) -> io::Result<bool>; + /// Moves the cursor up one line. + /// + /// Returns `Ok(true)` if the cu...
2
20
0
971548a6902ea53f3e4d579a7a872ed0da621f38
Alex Crichton
2015-04-05T06:49:20
Bump to 0.2.7
diff --git a/Cargo.toml b/Cargo.toml index 9e8327a..ef9f6a5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "term" -version = "0.2.6" +version = "0.2.7" authors = ["The Rust Project Developers"] license = "MIT/Apache-2.0" readme = "README.md"
1
1
1
0d1c1f98e3a3824d861e41e2dfac7dd1983dd942
Ivan Ukhov
2015-04-05T04:29:14
Update unary negation of unsigned integers
diff --git a/src/win.rs b/src/win.rs index fe64e64..16aee60 100644 --- a/src/win.rs +++ b/src/win.rs @@ -86,7 +86,7 @@ impl<T: Write+Send> WinConsole<T> { // terminal! Admittedly, this is fragile, since stderr could be // redirected to a different console. This is good enough for ...
1
2
2
62b067cb2122966c861c0e66b9fe78ff6d37cb21
Alex Crichton
2015-04-03T01:32:20
Bump to 0.2.6
diff --git a/Cargo.toml b/Cargo.toml index 3f5c04f..9e8327a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "term" -version = "0.2.5" +version = "0.2.6" authors = ["The Rust Project Developers"] license = "MIT/Apache-2.0" readme = "README.md" diff --git a/src/lib.rs b/src/lib.rs index a...
3
6
6
2c08e44e0123f54a382e3814d6ab6b7e423f5e64
Alex Crichton
2015-04-02T16:42:05
Bump to 0.2.5
diff --git a/Cargo.toml b/Cargo.toml index 3c71a38..3f5c04f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "term" -version = "0.2.4" +version = "0.2.5" authors = ["The Rust Project Developers"] license = "MIT/Apache-2.0" readme = "README.md" diff --git a/src/lib.rs b/src/lib.rs index 8...
4
5
6
d7eeb4431e023639bd90eb68e1d74bdde24aec00
Alex Crichton
2015-04-01T22:53:10
Deny warnings when testing
diff --git a/src/lib.rs b/src/lib.rs index eec7585..899fbe6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -45,6 +45,7 @@ html_playground_url = "http://play.rust-lang.org/")] #![feature(io, convert)] #![deny(missing_docs)] +#![cfg_attr(test, deny(warnings))] use std::io::prelude::*;
1
1
0
b6826c5647f7b70fcaf8485e138078cea3c05708
Steven Allen
2015-04-01T22:33:52
Avoid unnecessary allocation
diff --git a/src/terminfo/searcher.rs b/src/terminfo/searcher.rs index 6922691..207d5e0 100644 --- a/src/terminfo/searcher.rs +++ b/src/terminfo/searcher.rs @@ -27,7 +27,7 @@ pub fn get_dbpath_for_term(term: &str) -> Option<PathBuf> { // Find search directory match env::var_os("TERMINFO") { - Some(di...
1
1
1
2b707033762ed575e725a4a90589de6b459c464a
Steven Allen
2015-04-01T22:33:41
update to the latest rustc
diff --git a/src/lib.rs b/src/lib.rs index 0502ce0..eec7585 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -43,7 +43,7 @@ html_favicon_url = "http://www.rust-lang.org/favicon.ico", html_root_url = "http://doc.rust-lang.org/nightly/", html_playground_url = "http://play.rust-lang.org/")] -#![feature(...
2
1
2
e090ec814eb886ddf8eef3a4db0c9f9da18e72ba
Alex Crichton
2015-03-30T23:01:37
Bump to 0.2.4
diff --git a/Cargo.toml b/Cargo.toml index 80ad3da..3c71a38 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "term" -version = "0.2.3" +version = "0.2.4" authors = ["The Rust Project Developers"] license = "MIT/Apache-2.0" readme = "README.md"
1
1
1
3a3c0e1ea321d0ed94a1a74446db9f61f1828b7b
Alex Crichton
2015-03-30T23:00:03
Fix dep on kernel32-sys
diff --git a/Cargo.toml b/Cargo.toml index f6784bf..80ad3da 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,9 +13,9 @@ A terminal formatting library """ [target.i686-pc-windows-gnu.dependencies] -winapi = "*" -kernel32-sys = "*" +winapi = "0.1" +kernel32-sys = "0.1" [target.x86_64-pc-windows-gnu.dependencies] -w...
2
5
5
a07a1b302485c68b58606f040bbfeefa7e6f19d9
Alex Crichton
2015-03-26T18:49:29
Bump to 0.2.3, fix build on windows
diff --git a/Cargo.toml b/Cargo.toml index 7bae4a0..f6784bf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "term" -version = "0.2.2" +version = "0.2.3" authors = ["The Rust Project Developers"] license = "MIT/Apache-2.0" readme = "README.md" diff --git a/src/win.rs b/src/win.rs index a...
2
2
2
52f001619e6deca77db9f54f9aa23a1aa6bec11a
Alex Crichton
2015-03-25T16:34:06
Bump to 0.2.2
diff --git a/Cargo.toml b/Cargo.toml index 3c4fced..7bae4a0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "term" -version = "0.2.1" +version = "0.2.2" authors = ["The Rust Project Developers"] license = "MIT/Apache-2.0" readme = "README.md" diff --git a/src/lib.rs b/src/lib.rs index 2...
4
12
11
9ee29a806a0845ef27251fd9cd2b25b4b36ee034
Alex Crichton
2015-03-21T03:28:18
Bump to 0.2.1
diff --git a/Cargo.toml b/Cargo.toml index 3b3032c..3c4fced 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "term" -version = "0.2.0" +version = "0.2.1" authors = ["The Rust Project Developers"] license = "MIT/Apache-2.0" readme = "README.md"
1
1
1
75489a1575e7badf2fe14a8f083cb7d540a190a6
O01eg
2015-03-20T16:49:33
Upgrade to rustc 1.0.0-dev (7f53b943f 2015-03-19) Renamed FileNotFound to NotFound.
diff --git a/src/terminfo/mod.rs b/src/terminfo/mod.rs index 97db6ef..5146e53 100644 --- a/src/terminfo/mod.rs +++ b/src/terminfo/mod.rs @@ -94,7 +94,7 @@ impl TermInfo { /// Create a TermInfo for the named terminal. pub fn from_name(name: &str) -> Result<TermInfo, Error> { get_dbpath_for_term(name)....
1
1
1
820f5a2e6e5ddd38fd343260e8cab6409c688399
Alex Crichton
2015-03-18T22:49:26
Remove dependence on the path_ext feature
diff --git a/src/lib.rs b/src/lib.rs index 647496f..283bdb6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,9 +11,9 @@ //! Terminal formatting library. //! //! This crate provides the `Terminal` trait, which abstracts over an [ANSI -//! Terminal][ansi] to provide color printing, among other things. There are two imp...
2
10
9
43034b91d9028b807abc31a0e8d398145f24eaf2
Alex Crichton
2015-03-16T17:31:16
Bump to 0.2.0
diff --git a/Cargo.toml b/Cargo.toml index a57ef7a..3b3032c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "term" -version = "0.1.13" +version = "0.2.0" authors = ["The Rust Project Developers"] license = "MIT/Apache-2.0" readme = "README.md"
1
1
1
8d00fe4041a5678936509a2be40741f642ebd083
Alex Crichton
2015-03-16T17:24:51
Reduce usage of unstable apis
diff --git a/src/lib.rs b/src/lib.rs index c486a74..647496f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -43,7 +43,7 @@ html_favicon_url = "http://www.rust-lang.org/favicon.ico", html_root_url = "http://doc.rust-lang.org/nightly/", html_playground_url = "http://play.rust-lang.org/")] -#![feature(...
4
9
9
93e337a2aa4a903b3e763e7620e23b25aa87b9fc
Alex Crichton
2015-03-16T17:22:38
Remove byteorder dependency and clean up some style
diff --git a/Cargo.toml b/Cargo.toml index 4382379..a57ef7a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,9 +12,6 @@ description = """ A terminal formatting library """ -[dependencies] -byteorder = "*" - [target.i686-pc-windows-gnu.dependencies] winapi = "*" kernel32-sys = "*" diff --git a/src/lib.rs b/src/lib...
6
38
41
f7a76f666ad1361c5584bb88772f2ed940a3c646
Steven Allen
2015-03-15T21:34:58
Use new-io prelude instead of importing directly This should make migrating easier.
diff --git a/src/lib.rs b/src/lib.rs index e7a214e..55e976d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -20,7 +20,7 @@ //! //! ```no_run //! extern crate term; -//! use std::io::Write; +//! use std::io::prelude::*; //! //! fn main() { //! let mut t = term::stdout().unwrap(); @@ -48,11 +48,14 @@ extern crat...
4
17
6
6004b2554d565880777445e73c8e6e983ee7a20d
Steven Allen
2015-03-15T21:20:34
The path feature is no longer needed.
diff --git a/src/lib.rs b/src/lib.rs index c1562fa..e7a214e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -43,7 +43,7 @@ html_favicon_url = "http://www.rust-lang.org/favicon.ico", html_root_url = "http://doc.rust-lang.org/nightly/", html_playground_url = "http://play.rust-lang.org/")] -#![feature(...
1
1
1
c203f438cc44919fe4b205d4d913cbbf453a90f9
Steven Allen
2015-03-11T15:12:54
Don't handle interrupts and don't allow partial reads
diff --git a/src/terminfo/parser/compiled.rs b/src/terminfo/parser/compiled.rs index adaf69c..b9aa31f 100644 --- a/src/terminfo/parser/compiled.rs +++ b/src/terminfo/parser/compiled.rs @@ -158,17 +158,17 @@ pub static stringnames: &'static[&'static str] = &[ "cbt", "_", "cr", "csr", "tb "OTG3", "OTG1", "OTG4", "OT...
1
12
18
c2c938c5602c0be7dd82a19c21a96a6e82ef0d71
Steven Allen
2015-03-07T02:03:13
Port to new io This is a [breaking-change]
diff --git a/Cargo.toml b/Cargo.toml index a57ef7a..4382379 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,6 +12,9 @@ description = """ A terminal formatting library """ +[dependencies] +byteorder = "*" + [target.i686-pc-windows-gnu.dependencies] winapi = "*" kernel32-sys = "*" diff --git a/src/lib.rs b/src/lib...
6
123
97
d4660e2eb1c306415aaf5c1dbabd91dc4b101720
Steven Allen
2015-02-28T18:23:25
term no longer depends on log All error information is returned to the application via Results.
diff --git a/Cargo.toml b/Cargo.toml index 4107170..a57ef7a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,9 +12,6 @@ description = """ A terminal formatting library """ -[dependencies] -log = "0.2.0" - [target.i686-pc-windows-gnu.dependencies] winapi = "*" kernel32-sys = "*" diff --git a/src/lib.rs b/src/lib.r...
2
0
5
f478fb7a0b0754921ea7da9f241579d6da30f151
Steven Allen
2015-02-22T21:35:38
Use collect instead of a for+insert/push. Also, use range syntax.
diff --git a/src/terminfo/parser/compiled.rs b/src/terminfo/parser/compiled.rs index 97dbac8..9f7a846 100644 --- a/src/terminfo/parser/compiled.rs +++ b/src/terminfo/parser/compiled.rs @@ -234,50 +234,40 @@ pub fn parse(file: &mut old_io::Reader, longnames: bool) for names section".to_string()); ...
1
31
49
bc73cb668bb7e3d01665a4f1263cbf735039acdc
Steven Allen
2015-02-27T23:01:02
Audit isize/usize. Use the correct integer types instead of defaulting to isize/usize. Specifically, numbers stored in a terminfo database are always i16 >= -1 and offsets should always be unsigned.
diff --git a/src/terminfo/mod.rs b/src/terminfo/mod.rs index 17aefbf..44c38a9 100644 --- a/src/terminfo/mod.rs +++ b/src/terminfo/mod.rs @@ -149,7 +149,7 @@ impl<T: Writer+Send> Terminal<T> for TerminfoTerminal<T> { fn fg(&mut self, color: color::Color) -> IoResult<bool> { let color = self.dim_if_necessar...
2
23
19
9e3fcb2b532c2befb9d3fa4d54eafdff033bfff2
Steven Allen
2015-02-22T20:34:23
Carefully check signed sizes when parsing. ...instead of just casting everywhere. This commit also gets rid of an assert because an invalid terminfo database shouldn't cause a panic.
diff --git a/src/terminfo/parser/compiled.rs b/src/terminfo/parser/compiled.rs index e0e3ff6..97dbac8 100644 --- a/src/terminfo/parser/compiled.rs +++ b/src/terminfo/parser/compiled.rs @@ -177,34 +177,49 @@ pub fn parse(file: &mut old_io::Reader, longnames: bool) let magic = try!(file.read_le_u16()); if magic...
1
39
21
303a49af3f414e3292c990a5c5e41ddc7bdc22df
Steven Allen
2015-02-22T19:40:19
Replace uint/int with usize/isize
diff --git a/src/lib.rs b/src/lib.rs index 7980c4a..5862773 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -42,7 +42,7 @@ html_favicon_url = "http://www.rust-lang.org/favicon.ico", html_root_url = "http://doc.rust-lang.org/nightly/", html_playground_url = "http://play.rust-lang.org/")] -#![feature(...
5
40
40
e91df5a31fd55b5510c9c625db567de8a5c9be64
Alex Crichton
2015-02-26T17:53:40
Bump to 0.1.13
diff --git a/Cargo.toml b/Cargo.toml index 1913796..4107170 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "term" -version = "0.1.12" +version = "0.1.13" authors = ["The Rust Project Developers"] license = "MIT/Apache-2.0" readme = "README.md" diff --git a/src/lib.rs b/src/lib.rs index...
3
4
2
8edcdf18ec34805bfaa348f7b3b1babe653ce99b
Steven Allen
2015-02-22T19:33:03
Use autoderef for slicing
diff --git a/src/terminfo/mod.rs b/src/terminfo/mod.rs index 26773c0..b452532 100644 --- a/src/terminfo/mod.rs +++ b/src/terminfo/mod.rs @@ -76,7 +76,7 @@ impl TermInfo { /// Create a TermInfo based on current environment. pub fn from_env() -> Result<TermInfo, Error> { let term = match env::var("TERM...
2
7
7
9081e1ee4e7a70abbdf82987e0464d5e4ed95961
Alex Crichton
2015-02-19T16:11:09
Bump to 0.1.12
diff --git a/Cargo.toml b/Cargo.toml index c45d6fc..1913796 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "term" -version = "0.1.11" +version = "0.1.12" authors = ["The Rust Project Developers"] license = "MIT/Apache-2.0" readme = "README.md" diff --git a/src/lib.rs b/src/lib.rs index...
5
16
35
73c68ec20d1a712f137bb3501ec86aa20691d1d2
Alex Crichton
2015-02-04T18:21:22
Bump to 0.1.11
diff --git a/Cargo.toml b/Cargo.toml index 9664527..c45d6fc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "term" -version = "0.1.10" +version = "0.1.11" authors = ["The Rust Project Developers"] license = "MIT/Apache-2.0" readme = "README.md"
1
1
1
302782547ae3fba1a9ec593512a9bfa7706f8361
Alex Crichton
2015-02-04T18:19:25
Fix windows
diff --git a/src/win.rs b/src/win.rs index d6428dc..ffde7b2 100644 --- a/src/win.rs +++ b/src/win.rs @@ -15,7 +15,7 @@ extern crate "kernel32-sys" as kernel32; extern crate winapi; -use std::io::IoResult; +use std::old_io::IoResult; use Attr; use color; @@ -117,8 +117,8 @@ impl<T: Writer+Send> WinConsole<T> { ...
1
3
3
952e8212987a92d4f4ee878b0292402880a48058
Alex Crichton
2015-02-03T16:20:22
Use feature attributes
diff --git a/src/lib.rs b/src/lib.rs index 3c81ba6..cdeec38 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,7 +19,6 @@ //! # Examples //! //! ```no_run -//! # #![allow(unstable)] //! extern crate term; //! //! fn main() { @@ -43,9 +42,8 @@ html_favicon_url = "http://www.rust-lang.org/favicon.ico", ...
2
3
5
98332af955b588c293e30f06fc659ac36f7a6255
Alex Crichton
2015-01-28T17:39:44
Bump to 0.1.10
diff --git a/Cargo.toml b/Cargo.toml index 8ebd48c..9664527 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "term" -version = "0.1.9" +version = "0.1.10" authors = ["The Rust Project Developers"] license = "MIT/Apache-2.0" readme = "README.md"
1
1
1
140b248d18c2da736df6df8007ffa014720ac7d5
Zachary Bush
2015-01-28T17:35:48
Update for rust nightly
diff --git a/Cargo.toml b/Cargo.toml index 7653d79..8ebd48c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ A terminal formatting library """ [dependencies] -log = "0.1.0" +log = "0.2.0" [target.i686-pc-windows-gnu.dependencies] winapi = "*" diff --git a/src/lib.rs b/src/lib.rs index fd59a2c..3c81ba6...
5
18
18
144e0eb8b01df37dced4f2c28a674a8664802a0b
Alex Crichton
2015-01-23T16:50:19
Bump to 0.1.9
diff --git a/Cargo.toml b/Cargo.toml index 6f02614..7653d79 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "term" -version = "0.1.8" +version = "0.1.9" authors = ["The Rust Project Developers"] license = "MIT/Apache-2.0" readme = "README.md" diff --git a/src/terminfo/mod.rs b/src/termi...
3
19
16
28fec0e71764d0458c866d28505f9be9ba04149d
Steven Allen
2015-01-19T17:21:18
Fix a typo that broke the windows build thanks @retep998 (and sorry about that).
diff --git a/src/win.rs b/src/win.rs index 0febdee..c966cdc 100644 --- a/src/win.rs +++ b/src/win.rs @@ -110,7 +110,7 @@ impl<T: Writer+Send> WinConsole<T> { /// Returns `None` whenever the terminal cannot be created for some /// reason. - pub fn new(out: T) -> Option<Winconsole<T>> { + pub fn new(out...
1
1
1
c17790f0853052b3cba7cf4d33d988dec3604f8e
Peter Atashian
2015-01-19T14:21:20
Switch to external crates for Windows FFI things. Signed-off-by: Peter Atashian <retep998@gmail.com>
diff --git a/Cargo.toml b/Cargo.toml index 276f915..6f02614 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,3 +14,11 @@ A terminal formatting library [dependencies] log = "0.1.0" + +[target.i686-pc-windows-gnu.dependencies] +winapi = "*" +kernel32-sys = "*" + +[target.x86_64-pc-windows-gnu.dependencies] +winapi = "...
2
16
25
ad1ddc95443cfc7f8fa55a2dc8b9738489d963a5
Michael Pankov
2015-01-18T14:56:55
Attr: derive a few more traits This is for use in downstream library which want to reference Attr type, but need it to implement more traits. One example is 'bread': https://github.com/mkpankov/bread
diff --git a/src/lib.rs b/src/lib.rs index 151a983..fd59a2c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -134,7 +134,7 @@ pub mod color { /// Most attributes can only be turned on and must be turned off with term.reset(). /// The ones that can be turned off explicitly take a boolean value. /// Color is also represent...
1
1
1
a6b13b6ebdf63bbb9f6c6a4b3d2f25b3423b5341
Steven Allen
2015-01-09T01:55:06
Move the TermInfo instantiation logic into TermInfo This makes it easier to use TermInfo independently of TerminfoTerminal.
diff --git a/src/terminfo/mod.rs b/src/terminfo/mod.rs index 338d4ba..46a9bef 100644 --- a/src/terminfo/mod.rs +++ b/src/terminfo/mod.rs @@ -11,14 +11,15 @@ //! Terminfo database interface. use std::collections::HashMap; -use std::io::IoResult; +use std::error::Error as ErrorTrait; +use std::io::{self, IoError, IoE...
3
93
69
807292f109b0915ae8c42cf60ee5ca5302cce785
Steven Allen
2015-01-09T01:50:08
Avoid unnecessarily boxing This excessive boxing appears to be left over from ~T days. This is a [breaking-change].
diff --git a/src/lib.rs b/src/lib.rs index 040b93b..151a983 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -53,71 +53,55 @@ pub use terminfo::TerminfoTerminal; #[cfg(windows)] pub use win::WinConsole; -use std::io::IoResult; +use std::io::{IoResult, LineBufferedWriter}; +use std::io::stdio::StdWriter; pub mod termi...
5
52
60
9e62af5d38c4a6a29befe440939c3d2958e4a7f1
Alex Crichton
2015-01-13T18:17:17
Bump to 0.1.8
diff --git a/Cargo.toml b/Cargo.toml index 3929b6d..276f915 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "term" -version = "0.1.7" +version = "0.1.8" authors = ["The Rust Project Developers"] license = "MIT/Apache-2.0" readme = "README.md"
1
1
1
13ac8484360b85af197f07311d8c7e0c68b3d3f1
Alex Crichton
2015-01-13T18:14:46
More windows fixes
diff --git a/src/lib.rs b/src/lib.rs index befb998..040b93b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -91,10 +91,12 @@ pub fn stdout() -> Option<Box<Terminal<WriterWrapper> + Send>> { /// Return a Terminal wrapping stdout, or None if a terminal couldn't be /// opened. pub fn stdout() -> Option<Box<Terminal<WriterW...
2
10
6
fb4f638e99bf00d49109984bdcb3a9889d26e647
Steven Allen
2015-01-09T01:41:48
Factor out terminal capability apply method Instead of repeating this code, factor it out into a helper function.
diff --git a/src/terminfo/mod.rs b/src/terminfo/mod.rs index 2f6e6bf..59959d9 100644 --- a/src/terminfo/mod.rs +++ b/src/terminfo/mod.rs @@ -20,8 +20,7 @@ use Terminal; use UnwrappableTerminal; use self::searcher::open; use self::parser::compiled::{parse, msys_terminfo}; -use self::parm::{expand, Variables}; -use se...
1
14
36
e7345f31040c0d1db066548ab793e2bc58f0b393
Alex Crichton
2015-01-13T17:40:31
Fix compile on windows, bump to 0.1.7
diff --git a/Cargo.toml b/Cargo.toml index bc33a8f..3929b6d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "term" -version = "0.1.6" +version = "0.1.7" authors = ["The Rust Project Developers"] license = "MIT/Apache-2.0" readme = "README.md" diff --git a/src/win.rs b/src/win.rs index f...
2
7
7
befe3ac82cb7392782322d515a1cb5988e52caee
Alex Crichton
2015-01-13T17:30:41
Bump to 0.1.6
diff --git a/Cargo.toml b/Cargo.toml index e2e4de5..bc33a8f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "term" -version = "0.1.5" +version = "0.1.6" authors = ["The Rust Project Developers"] license = "MIT/Apache-2.0" readme = "README.md"
1
1
1
2440b52d9f55c05bd5a17b522d5007e4b467c274
Markus Siemens
2015-01-11T12:26:17
Switch away from box expression syntax
diff --git a/src/lib.rs b/src/lib.rs index cafb578..befb998 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -91,7 +91,7 @@ pub fn stdout() -> Option<Box<Terminal<WriterWrapper> + Send>> { /// Return a Terminal wrapping stdout, or None if a terminal couldn't be /// opened. pub fn stdout() -> Option<Box<Terminal<WriterWra...
2
5
5
19f7bcf0c62ef5bec5f928380d0b14645ed85630
Alex Crichton
2015-01-11T05:10:29
Bump to 0.1.5
diff --git a/Cargo.toml b/Cargo.toml index e861b2f..e2e4de5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "term" -version = "0.1.4" +version = "0.1.5" authors = ["The Rust Project Developers"] license = "MIT/Apache-2.0" readme = "README.md" diff --git a/src/terminfo/mod.rs b/src/termi...
2
3
3
ef1eb73c047b0e259537b7d3b57453c35960ae20
Huon Wilson
2015-01-09T12:06:18
Actually bump the version number to 0.1.4.
diff --git a/Cargo.toml b/Cargo.toml index a950ae7..e861b2f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "term" -version = "0.1.3" +version = "0.1.4" authors = ["The Rust Project Developers"] license = "MIT/Apache-2.0" readme = "README.md"
1
1
1
8624eb033c0e8f47144e371d5cfd4c3283613b0d
Huon Wilson
2015-01-09T11:58:35
Bump to 0.1.4.
diff --git a/src/lib.rs b/src/lib.rs index 2c39415..5e2c3d9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,6 +19,7 @@ //! # Examples //! //! ```no_run +//! # #![allow(unstable)] //! extern crate term; //! //! fn main() { @@ -42,8 +43,9 @@ html_favicon_url = "http://www.rust-lang.org/favicon.ico", ...
4
21
20
2b50ab365b11dd58d1036348fa4905a78055443b
Steven Allen
2015-01-09T01:37:11
Correctly report failed resets. Instead of always returning `Ok(())`, return `Ok(false)` when reset is unsupported, `Ok(true)` when it succeeds, and `Err(e)` when there is an IoError. Additionally, cleanup the reset function a little. This is a [breaking-change].
diff --git a/src/lib.rs b/src/lib.rs index 2c39415..f9f87dd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -30,7 +30,7 @@ //! t.fg(term::color::RED).unwrap(); //! (writeln!(t, "world!")).unwrap(); //! -//! t.reset().unwrap(); +//! assert!(t.reset().unwrap()); //! } //! ``` //! @@ -198,8 +198,10 @@ pu...
3
23
22
c197602997b436317eae7706786ce3c3306b2605
Alex Crichton
2015-01-07T16:30:48
Bump to 0.1.3
diff --git a/Cargo.toml b/Cargo.toml index 75f53e2..a950ae7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "term" -version = "0.1.2" +version = "0.1.3" authors = ["The Rust Project Developers"] license = "MIT/Apache-2.0" readme = "README.md" diff --git a/src/lib.rs b/src/lib.rs index b...
2
3
10
d33ed11b683591e97aaee0bfa578921b4c635632
Corey Farwell
2015-01-06T02:35:35
Remove unnecessary int type suffix
diff --git a/src/lib.rs b/src/lib.rs index f794fcc..bdab0e2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -127,23 +127,23 @@ pub mod color { /// Number for a terminal color pub type Color = u16; - pub const BLACK: Color = 0u16; - pub const RED: Color = 1u16; - pub const GREEN: Color = 2u16; -...
1
17
17
4ccd1ef26390675032d7eb2d4c672258bfb36946
Corey Farwell
2015-01-06T02:26:04
Remove public enum reexports These were probably left over from pre-enum-namespacing [breaking-change]
diff --git a/src/lib.rs b/src/lib.rs index b4fc333..f794fcc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -146,38 +146,33 @@ pub mod color { pub const BRIGHT_WHITE: Color = 15u16; } -/// Terminal attributes -pub mod attr { - pub use self::Attr::*; - - /// Terminal attributes for use with term.attr(). - ...
3
54
57
8a89289b73d970c2e47088273d0d870ef329f552
Corey Farwell
2015-01-06T02:02:37
match cleanup, DRY
diff --git a/src/terminfo/parm.rs b/src/terminfo/parm.rs index 5f02508..60579af 100644 --- a/src/terminfo/parm.rs +++ b/src/terminfo/parm.rs @@ -497,16 +497,15 @@ fn format(val: Param, op: FormatOp, flags: Flags) -> Result<Vec<u8> ,String> { let mut s = match val { Number(d) => { let s = matc...
1
8
9
e430e5de89437d62f3770d7d8d93a6814c1de821
Corey Farwell
2015-01-06T01:55:48
Remove extraneous whitespace
diff --git a/src/terminfo/parser/compiled.rs b/src/terminfo/parser/compiled.rs index 1556d2e..8ca831e 100644 --- a/src/terminfo/parser/compiled.rs +++ b/src/terminfo/parser/compiled.rs @@ -186,7 +186,7 @@ pub fn parse(file: &mut io::Reader, longnames: bool) let string_offsets_count = try!(file.read_le_i16()) as in...
1
1
1
20c9ad8534f67335016ed46bda2d47d0b8051300
Corey Farwell
2015-01-06T01:55:24
Cleanup by utilizing unpacking for assignment
diff --git a/src/terminfo/parser/compiled.rs b/src/terminfo/parser/compiled.rs index fe96d7b..1556d2e 100644 --- a/src/terminfo/parser/compiled.rs +++ b/src/terminfo/parser/compiled.rs @@ -167,19 +167,11 @@ pub fn parse(file: &mut io::Reader, longnames: bool) } ) ); - let bnames; - let snames; - ...
1
4
12
fd6ad100a4ca6460bc5ab2decd4a393333d157f2
Corey Farwell
2015-01-06T01:52:28
Simplify Windows stdout/stderr methods
diff --git a/src/lib.rs b/src/lib.rs index c98b133..b4fc333 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -96,18 +96,10 @@ pub fn stdout() -> Option<Box<Terminal<WriterWrapper> + Send>> { /// Return a Terminal wrapping stdout, or None if a terminal couldn't be /// opened. pub fn stdout() -> Option<Box<Terminal<WriterW...
1
8
24
e61562f3037f6b6625e090a9671033f14e0c916b
Alex Crichton
2015-01-03T22:59:48
Update to rust master
diff --git a/Cargo.toml b/Cargo.toml index 6417f6e..75f53e2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "term" -version = "0.1.1" +version = "0.1.2" authors = ["The Rust Project Developers"] license = "MIT/Apache-2.0" readme = "README.md" diff --git a/src/lib.rs b/src/lib.rs index a...
5
19
17
5498ef9aa395997567719c93f15ec1a04c6d03bd
Alex Crichton
2014-12-29T18:14:59
Update to rust master
diff --git a/Cargo.toml b/Cargo.toml index 9611c16..6417f6e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "term" -version = "0.1.0" +version = "0.1.1" authors = ["The Rust Project Developers"] license = "MIT/Apache-2.0" readme = "README.md" diff --git a/src/terminfo/parm.rs b/src/term...
2
2
2
2206ea7fb059d8a0928d5ff62c06ecc790325226
Nicky Sielicki
2021-04-28T18:31:43
remove std::ascii::AsciiExt import Functionality previously behind this import is now inherent, and it is now deprecated.
diff --git a/src/lib.rs b/src/lib.rs index d54d654..ba60deb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -22,7 +22,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use std::ascii::AsciiExt; use std::str::FromStr; use self::RenameRule::*; @@ -165,4 +164,4 ...
1
1
2
27f1d7015275b4150846c86f3548d54d1de63ad3
Ted Driggs
2017-05-10T19:51:08
Renamed library; added Default impl for no-op renaming
diff --git a/Cargo.toml b/Cargo.toml index 4648644..255230d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,8 @@ [package] -name = "serde_case" -version = "0.1.0" +name = "ident_case" +version = "1.0.0" authors = ["Ted Driggs <ted.driggs@outlook.com>"] - -[dependencies] +license = "MIT/Apache-2.0" +description = ...
2
14
6
e4f3d0b3438b25c4663c391424be544a9b4200dc
Ted Driggs
2017-05-04T17:52:02
Add more trait impls
diff --git a/src/lib.rs b/src/lib.rs index 4ff6b6c..101f597 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -28,7 +28,7 @@ use std::str::FromStr; use self::RenameRule::*; /// A casing rule for renaming Rust identifiers. -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Eq, Clone, Copy)] pub enum RenameRule { ...
1
1
1
c116e5fa158ce5ae0e465c230283116ac0eaf01c
Ted Driggs
2017-05-03T19:26:45
Accept AsRef<str> instead of &str
diff --git a/src/lib.rs b/src/lib.rs index f2b6520..4ff6b6c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -48,7 +48,9 @@ pub enum RenameRule { impl RenameRule { /// Change case of a `PascalCase` variant. - pub fn apply_to_variant(&self, variant: &str) -> String { + pub fn apply_to_variant<S: AsRef<str>>(&se...
1
6
2
5f71dd3b2e33c6253a6f3bf6fb4ca98e78091072
Ted Driggs
2017-05-03T17:46:25
Add doc comment and more field tests
diff --git a/src/lib.rs b/src/lib.rs index 5c7a7f6..f2b6520 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -27,6 +27,7 @@ use std::str::FromStr; use self::RenameRule::*; +/// A casing rule for renaming Rust identifiers. #[derive(Debug, PartialEq)] pub enum RenameRule { /// Don't apply a default rename rule. @@...
1
3
0
891be0eea87b115a468c3c7c39a7a407d1be32fe
Steven Allen
2026-03-13T18:11:08
test: re-enable test_make_uds_conflict on redox (#400) This (hopefully) works better now that I've disabled SMP.
diff --git a/tests/namedtempfile.rs b/tests/namedtempfile.rs index 5b6c445..88e31bc 100644 --- a/tests/namedtempfile.rs +++ b/tests/namedtempfile.rs @@ -588,8 +588,7 @@ fn test_make_uds() { assert!(temp_sock.path().exists()); } -// This works(ish) on redox, but it's really slow. -#[cfg(all(unix, not(target_os =...
1
1
2
4f4f2d7ec2796044b9a1b81fd878229d35c2eb7a
Steven Allen
2026-03-11T20:32:26
test: explain why the temp_path_resolve_missing_cwd test is disabled on redox
diff --git a/tests/namedtempfile.rs b/tests/namedtempfile.rs index f10c833..5b6c445 100644 --- a/tests/namedtempfile.rs +++ b/tests/namedtempfile.rs @@ -332,8 +332,11 @@ fn temp_path_from_argument_types() { TempPath::try_from_path(PathBuf::new().into_boxed_path()).unwrap(); } -// This test only works on platfor...
1
5
2
e34e5748d66a48073ec8e1e6ba37338eecca4548
Steven Allen
2026-03-10T23:42:46
test: disable uds conflict test on redox It's just too slow.
diff --git a/tests/namedtempfile.rs b/tests/namedtempfile.rs index 3e97597..f10c833 100644 --- a/tests/namedtempfile.rs +++ b/tests/namedtempfile.rs @@ -585,7 +585,8 @@ fn test_make_uds() { assert!(temp_sock.path().exists()); } -#[cfg(unix)] +// This works(ish) on redox, but it's really slow. +#[cfg(all(unix, n...
1
2
1
772c795a27342089dd0dc48125b82454e75ac38d
Steven Allen
2026-03-10T21:24:52
test: add CWD guards This was the source of the race.
diff --git a/tests/namedtempfile.rs b/tests/namedtempfile.rs index df15c35..3e97597 100644 --- a/tests/namedtempfile.rs +++ b/tests/namedtempfile.rs @@ -6,6 +6,26 @@ use std::io::{self, Read, Seek, SeekFrom, Write}; use std::path::{Path, PathBuf}; use tempfile::{env, tempdir, Builder, NamedTempFile, TempPath}; +str...
1
28
8
2632fb9e9465b86141b5bbe47b07dbf5b7110072
Steven Allen
2026-03-10T19:37:10
fix: resolve relative paths when constructing `TempPath` 1. Try to transform relative paths into absolute paths in `TempPath::from_path` and silently proceed when we can't. 2. Deprecate `TempPath::from_path` and add `TempPath::try_from_path` as a replacement that propegates errors. reported by @meng-xu-cs fixes #39...
diff --git a/src/file/mod.rs b/src/file/mod.rs index b3d51c3..d2b5ec2 100644 --- a/src/file/mod.rs +++ b/src/file/mod.rs @@ -325,19 +325,66 @@ impl TempPath { self.disable_cleanup = disable_cleanup } - /// Create a new TempPath from an existing path. This can be done even if no - /// file exists a...
2
115
16
d35371725c084d8cfa83479c69ae55f2ab843e50
Anhad Singh
2026-02-23T15:52:16
feat(redox): implement persist() (#393) * misc(Cargo.toml): bump rustix to 1.1.4 Signed-off-by: Anhad Singh <andypython@protonmail.com> * feat(redox): implement persist() Signed-off-by: Anhad Singh <andypython@protonmail.com> --------- Signed-off-by: Anhad Singh <andypython@protonmail.com>
diff --git a/Cargo.toml b/Cargo.toml index 64178c2..929b5ed 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,7 +27,7 @@ once_cell = { version = "1.19.0", default-features = false, features = ["std"] } getrandom = { version = ">=0.3.0, <0.5", default-features = false, optional = true } [target.'cfg(any(unix, target_o...
2
3
11
64114d74349c53b0473ba15a06f64874a0fcb556
Tobias Stoeckmann
2026-02-19T16:57:02
Fix typos in documentation (#392) Typo found with codespell
diff --git a/src/env.rs b/src/env.rs index 4fdfdf8..4276b9a 100644 --- a/src/env.rs +++ b/src/env.rs @@ -39,7 +39,7 @@ pub fn override_temp_dir(path: &Path) -> Result<(), PathBuf> { /// directory is explicitly specified. /// /// This function simply delegates to [`std::env::temp_dir`] unless the default temporary di...
3
3
3
5a035729f067a3d1d2e24a194a0e856cf3144405
Georg Semmler
2025-12-16T18:01:16
Exclude CI scripts from published package (#384) During a dependency review we noticed that the tempfile crate includes a CI script. Such CI scripts shouldn't be there as they might, at some point become problematic. As of now they prevent any downstream user from enabling the `[bans.build.interpreted]` option of carg...
diff --git a/Cargo.toml b/Cargo.toml index d97f1f6..c767bcf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,8 @@ license = "MIT OR Apache-2.0" repository = "https://github.com/Stebalien/tempfile" description = "A library for managing temporary files and directories." +include = ["CHANGELOG.md", "Cargo.toml", ...
1
2
0
006c3fd55aa788e640f83a0aac54660e23e355e6
Steven Allen
2025-09-23T05:28:36
fix: use std::os::fd instead of std::os::wasi (#380) fixes #379
diff --git a/src/file/mod.rs b/src/file/mod.rs index 2ec88b7..b3d51c3 100644 --- a/src/file/mod.rs +++ b/src/file/mod.rs @@ -5,10 +5,10 @@ use std::fs::{self, File, OpenOptions}; use std::io::{self, Read, Seek, SeekFrom, Write}; use std::mem; use std::ops::Deref; -#[cfg(unix)] -use std::os::unix::io::{AsFd, AsRawFd,...
1
3
3
b0e6309a589799181bc1434fdcb3b3b07b9b070e
Redddy
2025-09-17T15:44:52
doc: Update COPYRIGHT link (#377) * doc: Update COPYRIGHT link * doc: Clean up copyright comments
diff --git a/src/dir/mod.rs b/src/dir/mod.rs index a7d7388..93a8d7c 100644 --- a/src/dir/mod.rs +++ b/src/dir/mod.rs @@ -1,6 +1,4 @@ -// Copyright 2015 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. +// Copyright 2015 Th...
1
1
3
2d6fc3fb5794c0e7fe6c944f72fd0e462480b101
Justin Yao Du
2025-09-13T22:29:19
Fix formatting in Builder::disable_cleanup documentation (#375)
diff --git a/src/lib.rs b/src/lib.rs index 6711e71..ae2a55c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -470,7 +470,7 @@ impl<'a, 'b> Builder<'a, 'b> { } /// Disable cleanup of the file/folder to even when the [`NamedTempFile`]/[`TempDir`] goes out - /// of scope. Prefer [`NamedTempFile::keep`] and `[`Te...
1
1
1
55d742cb5d37d51c5ee107ae6c3898deeb0cc592
Steven Allen
2025-09-09T16:08:16
chore: remove deprecated unstable feature flag
diff --git a/Cargo.toml b/Cargo.toml index d2170c5..fe21882 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,8 +40,6 @@ doc-comment = "0.3" [features] default = ["getrandom"] nightly = [] -# DEPRECATED unstable feature, will be removed in the near future. -unstable-windows-keep-open-tempfile = [] [package.metadata...
1
0
2
3c55387edee0d79041092f5abfbe899de4fbc8db
Steven Allen
2025-08-29T20:55:23
test: make sure we don't drop tempdirs early (#373)
diff --git a/tests/namedtempfile.rs b/tests/namedtempfile.rs index 578f41b..c453b52 100644 --- a/tests/namedtempfile.rs +++ b/tests/namedtempfile.rs @@ -332,7 +332,10 @@ fn test_change_dir() { let path = std::env::current_dir().unwrap().join(tmpfile.path()); std::env::set_current_dir(&dir_b).expect("failed to...
1
8
2
17bf644406959b75bf83d44fcfbd1dfa63d86730
Steven Allen
2025-08-29T20:48:00
doc(builder): clarify permissions (#372) fixes #313
diff --git a/src/lib.rs b/src/lib.rs index 64137ad..6711e71 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -202,7 +202,7 @@ const NUM_RETRIES: u32 = 65536; const NUM_RAND_CHARS: usize = 6; use std::ffi::OsStr; -use std::fs::OpenOptions; +use std::fs::{OpenOptions, Permissions}; use std::io; use std::path::Path; @@...
1
27
23
c7423f1761f569c60c504ffed0ef6e124430b162
Steven Allen
2025-08-29T20:16:15
doc(env): document the alternative to setting the tempdir (#371) alternative to #312, I wanted to leave the rest of the docs as-is.
diff --git a/src/env.rs b/src/env.rs index 4f27f00..4fdfdf8 100644 --- a/src/env.rs +++ b/src/env.rs @@ -1,6 +1,9 @@ use std::env; use std::path::{Path, PathBuf}; +#[cfg(doc)] +use crate::{tempdir_in, tempfile_in, Builder}; + // Once rust 1.70 is wide-spread (Debian stable), we can use OnceLock from stdlib. use o...
1
7
0
6c0c56198a274de88b877303fa28e6ad96699fa5
Steven Allen
2025-08-29T17:50:03
fix(doc): temp_dir doesn't check if writable
diff --git a/src/env.rs b/src/env.rs index b957451..4f27f00 100644 --- a/src/env.rs +++ b/src/env.rs @@ -34,7 +34,7 @@ pub fn override_temp_dir(path: &Path) -> Result<(), PathBuf> { /// This function simply delegates to [`std::env::temp_dir`] unless the default temporary directory /// has been override by a call to [...
1
1
1
48bff5f54c71a880ea7a9efb19e48be7b2eeb3d9
Steven Allen
2025-08-20T04:06:13
test(tempdir): configure tempdir on wasi
diff --git a/tests/tempdir.rs b/tests/tempdir.rs index c7ede56..cccd543 100644 --- a/tests/tempdir.rs +++ b/tests/tempdir.rs @@ -15,8 +15,18 @@ use std::path::Path; use tempfile::{Builder, TempDir}; +/// For the wasi platforms, `std::env::temp_dir` will panic. For those targets, configure the /tmp +/// directory i...
1
28
0
704a1d27520735e8922c58e84cd193365ceaedaf
Steven Allen
2025-08-20T04:02:16
test(tempdir): cleanup tempdir tests and run more tests on wasi 1. There wasn't a great reason to run each test in a separate temporary directory. 2. Some of the tests were clearly copypasta.
diff --git a/tests/tempdir.rs b/tests/tempdir.rs index c5ae896..c7ede56 100644 --- a/tests/tempdir.rs +++ b/tests/tempdir.rs @@ -12,14 +12,13 @@ use std::fs; use std::path::Path; -use std::sync::mpsc::channel; -use std::thread; use tempfile::{Builder, TempDir}; +#[test] fn test_tempdir() { let path = { -...
1
27
71
bd2b2674423ae6598070fab30e6627810ac282a9
Steven Allen
2025-05-11T20:32:27
feat: make it possible to disable cleanup in-place after creation (#355) This makes it possible to disable automatic cleanup of temporary files & directories _after_ they've been created. 1. Rename `Builder::keep` into `Builder::disable_cleanup` for consistency. `::keep` on `NamedTempDir`, `TempDir`, `TempPath`, etc....
diff --git a/src/dir/imp/any.rs b/src/dir/imp/any.rs index 512a54e..e938d87 100644 --- a/src/dir/imp/any.rs +++ b/src/dir/imp/any.rs @@ -10,7 +10,7 @@ fn not_supported<T>(msg: &str) -> io::Result<T> { pub fn create( path: PathBuf, permissions: Option<&std::fs::Permissions>, - keep: bool, + disable_clea...
7
143
62
d34afe99fd93bb13253128cc58dfc4032edfa5a5
Steven Allen
2025-05-10T17:14:03
doc: improve SpooledData documentation
diff --git a/src/spooled.rs b/src/spooled.rs index 6a50643..57ba9be 100644 --- a/src/spooled.rs +++ b/src/spooled.rs @@ -4,7 +4,10 @@ use std::fs::File; use std::io::{self, Cursor, Read, Seek, SeekFrom, Write}; use std::path::{Path, PathBuf}; -/// A wrapper for the two states of a `SpooledTempFile`. +/// A wrapper ...
1
4
1
6deb42e04ceb2f2c306510b1605d9548e77868e5
Steven Allen
2025-05-10T17:02:50
doc: make it easier to pick the correct tempfile constructor/type
diff --git a/src/dir/mod.rs b/src/dir/mod.rs index 837fd20..32f0a67 100644 --- a/src/dir/mod.rs +++ b/src/dir/mod.rs @@ -20,7 +20,7 @@ use crate::Builder; #[cfg(doc)] use crate::env; -/// Create a new temporary directory. +/// Create a new temporary directory. Also see [`tempdir_in`]. /// /// The `tempdir` functi...
4
22
12