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 |
|---|---|---|---|---|---|---|---|
cbb3d4121479c0f1a1b32b767bcb6c97b979069c | Daggerbot | 2015-05-16T21:01:54 | Version bump to 1.1.0. | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index fe7cedd..91bd3e4 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11-dl"
-version = "1.0.1"
+version = "1.1.0"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0... | 2 | 2 | 2 |
fe708a9f6e22b562d93238cbbd59d1245ad83e06 | Daggerbot | 2015-05-16T20:50:40 | Added image format constants. Required by rust-layers. | diff --git a/src/xlib.rs b/src/xlib.rs
index 2ddc8c7..c2ad654 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -2699,6 +2699,11 @@ pub const GrabInvalidTime: c_int = 2;
pub const GrabNotViewable: c_int = 3;
pub const GrabFrozen: c_int = 4;
+// image format
+pub const XYBitmap: c_int = 0;
+pub const XYPixmap: c_int = 1... | 1 | 5 | 0 |
a4047be0b97242531fe349fabd9365420831b941 | Daggerbot | 2015-05-07T11:17:52 | Removed unused build dependency for x11-dl. | diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml
index 12526df..fe7cedd 100644
--- a/x11-dl/Cargo.toml
+++ b/x11-dl/Cargo.toml
@@ -8,7 +8,4 @@ repository = "https://github.com/Daggerbot/x11-rs.git"
[dependencies]
dylib = "*"
-libc = "*"
-
-[build-dependencies.x11]
-path = "../x11"
\ No newline at end of file
+lib... | 1 | 1 | 4 |
264dace0c8ca0ad3fc9e1f4b1516c06ea0b7bd4f | Daggerbot | 2015-05-07T10:11:45 | Removed feature gates from individual library modules. | diff --git a/src/lib.rs b/src/lib.rs
index f66c8e1..4163040 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -13,14 +13,9 @@ extern crate libc;
mod link;
mod internal;
-#[cfg(feature="glx")]
pub mod glx;
pub mod keysym;
-#[cfg(feature="xcursor")]
pub mod xcursor;
-#[cfg(feature="xf86vmode")]
pub mod xf86vmode;
-#[cf... | 1 | 1 | 6 |
58f671594f99aab84730f4901d957c2c0812f4d0 | Daggerbot | 2015-05-07T10:02:51 | Trying versioned library names when loading dynamically. | diff --git a/src/error.rs b/src/error.rs
new file mode 100644
index 0000000..5f863c7
--- /dev/null
+++ b/src/error.rs
@@ -0,0 +1,73 @@
+// x11-rs: Rust bindings for X11 libraries
+// The X11 libraries are available under the MIT license.
+// These bindings are public domain.
+
+use std::error::Error;
+use std::fmt::{
+... | 9 | 144 | 16 |
a936cacb4447f3cad7a82a57d3a2861817c01f23 | Daggerbot | 2015-05-07T08:27:09 | Version bump to 0.0.36. | diff --git a/Cargo.toml b/Cargo.toml
index 4ad9b57..f82c825 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "0.0.35"
+version = "0.0.36"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0-1.0" | 1 | 1 | 1 |
4f3b690778a9f1411f6c597d112eb310476cf9b5 | Daggerbot | 2015-05-07T08:22:20 | Keep extern blocks when dynamic feature is enabled. | diff --git a/src/internal.rs b/src/internal.rs
index f9f45fc..d642bd4 100644
--- a/src/internal.rs
+++ b/src/internal.rs
@@ -19,6 +19,10 @@ macro_rules! x11_link {
{ $struct_name:ident, $lib_name:expr,
$(pub fn $fn_name:ident ($($param_name:ident : $param_type:ty),*) -> $ret_type:ty,)*
} => {
+ extern "C"... | 1 | 9 | 0 |
9d4022ddc9e6cbf826f97535297d70a091bb506c | Daggerbot | 2015-05-06T13:42:53 | Removed temporary xkb module. | diff --git a/src/xlib.rs b/src/xlib.rs
index ed71a5d..d4b77a8 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -27,9 +27,6 @@ use ::internal::{
transmute_union,
};
-// Temporary until glutin pull request is merged:
-pub mod xkb {}
-
//
// functions | 1 | 0 | 3 |
5fa796a43e1e489dc7646ec534748d585e4d80f6 | Daggerbot | 2015-05-06T12:57:23 | Added temporary, empty xkb module. | diff --git a/src/xlib.rs b/src/xlib.rs
index 478e163..7255e5f 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -27,6 +27,9 @@ use ::internal::{
transmute_union,
};
+// Temporary until glutin pull request is merged:
+pub mod xkb {}
+
//
// functions | 1 | 3 | 0 |
5702173fa318888cb7185ce7b89bf95a76a85aa3 | Daggerbot | 2015-05-06T12:52:56 | Moved utility functions into internal.rs. | diff --git a/Cargo.toml b/Cargo.toml
index b997573..25c1ea5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "0.0.33"
+version = "0.0.34"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0-1.0"
diff --git a/src/intern... | 4 | 50 | 39 |
e232681d2f26462875a6d07faf3b04508add050a | Daggerbot | 2015-05-06T02:12:06 | Removed unused internal.rs. | diff --git a/src/internal.rs b/src/internal.rs
deleted file mode 100644
index ad5adb8..0000000
--- a/src/internal.rs
+++ /dev/null
@@ -1,83 +0,0 @@
-// x11-rs: Rust bindings for X11 libraries
-// The X11 libraries are available under the MIT license.
-// These bindings are public domain.
-
-
-//
-// x11_link!
-//
-
-
-... | 1 | 0 | 83 |
8d9930fac4f039163e59c549b5334bbba6223f9d | Daggerbot | 2015-05-02T01:01:11 | Using pkg-config. | diff --git a/Cargo.toml b/Cargo.toml
index 9e03b3f..b997573 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,7 +5,10 @@ authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0-1.0"
repository = "https://github.com/Daggerbot/x11-rs.git"
-documentation = "http://daggerb... | 9 | 18 | 8 |
31b779c78ed608e18a512ed507aa023e48c93a5f | Daggerbot | 2015-04-30T08:54:51 | Added xrender. | diff --git a/src/lib.rs b/src/lib.rs
index 42c96b6..4cca2c3 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -17,3 +17,4 @@ pub mod keysym;
pub mod xcursor;
pub mod xf86vmode;
pub mod xlib;
+pub mod xrender;
diff --git a/src/xrender.rs b/src/xrender.rs
new file mode 100644
index 0000000..3548d25
--- /dev/null
+++ b/src/x... | 2 | 319 | 0 |
b61be341d4bdc4057e578b47d8b796f53199edce | Daggerbot | 2015-04-27T21:23:39 | Changes with no particular focus. | diff --git a/src/lib.rs b/src/lib.rs
index 8bcd10f..42c96b6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -5,8 +5,10 @@
#![crate_name="x11"]
#![crate_type="lib"]
+#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(non_upper_case_globals)]
+#![allow(raw_pointer_derive)]
extern crate libc;
diff -... | 5 | 89 | 112 |
d25b4ec795910e0662481b72091f140a73cd3a28 | Daggerbot | 2015-04-26T19:23:32 | Added all functions and structs for xf86vmode. | diff --git a/Cargo.toml b/Cargo.toml
index 1d9e9b1..9e03b3f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "0.0.32"
+version = "0.0.33"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0-1.0"
diff --git a/src/xf86vm... | 2 | 100 | 4 |
f14f4dcd7f398ac8466ffa37dddaffeb6be4eeee | Daggerbot | 2015-04-26T18:40:33 | Added all functions and structs for Xcursor. | diff --git a/src/xcursor.rs b/src/xcursor.rs
index 8d99ef7..41fa70a 100644
--- a/src/xcursor.rs
+++ b/src/xcursor.rs
@@ -2,15 +2,217 @@
// The X11 libraries are available under the MIT license.
// These bindings are public domain.
-use libc::c_char;
+use libc::{
+ c_char,
+ c_int,
+ c_long,
+ c_uchar,
+ c_uint... | 1 | 204 | 2 |
44ee2d792f855cd492251bb269d200f0cc3fc3b2 | Daggerbot | 2015-04-24T21:44:57 | Added modifier keys mask. | diff --git a/src/xlib/mod.rs b/src/xlib/mod.rs
index 230b149..be29faf 100644
--- a/src/xlib/mod.rs
+++ b/src/xlib/mod.rs
@@ -2308,6 +2308,16 @@ pub const IsUnmapped: c_int = 0;
pub const IsUnviewable: c_int = 1;
pub const IsViewable: c_int = 2;
+// modifier keys mask
+pub const ShiftMask: c_uint = 0x01;
+pub const ... | 1 | 10 | 0 |
3623fb3a3f4ffcd4ce6e14e3586dc4ee22d80eb0 | Daggerbot | 2015-04-16T20:30:59 | Added requirements for 'mm_video/examples/opengl'. | diff --git a/Cargo.toml b/Cargo.toml
index 55bab28..1d9e9b1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "0.0.31"
+version = "0.0.32"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0-1.0"
diff --git a/src/glx.rs... | 2 | 3 | 1 |
98c2d9dc68fed9e482ebc4a0ea4d24b9b8753c93 | Daggerbot | 2015-04-15T22:08:39 | Made XVisualInfo.depth signed as per the headers. | diff --git a/Cargo.toml b/Cargo.toml
index 7f0fca7..55bab28 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "0.0.30"
+version = "0.0.31"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0-1.0"
diff --git a/src/xlib/m... | 2 | 2 | 2 |
1622c79c8f0292e892048cff3346003b026b8545 | Daggerbot | 2015-04-12T15:39:16 | Generated GLX bindings from C headers. | diff --git a/src/glx.rs b/src/glx.rs
index 96eef59..1e39e4b 100644
--- a/src/glx.rs
+++ b/src/glx.rs
@@ -5,13 +5,14 @@
use libc::{
c_char,
c_int,
+ c_uchar,
c_uint,
+ c_ulong,
};
use ::xlib::{
- Bool,
Display,
- Drawable,
+ XID,
XVisualInfo,
};
@@ -23,48 +24,45 @@ use ::xlib::{
#[link(nam... | 1 | 52 | 54 |
9d22e66f4bd52c54091168eb9c5953018b7b5827 | Daggerbot | 2015-04-12T01:01:34 | Regenerated function bindings for Xlib. | diff --git a/Cargo.toml b/Cargo.toml
index a3a3a1d..7f0fca7 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "0.0.29"
+version = "0.0.30"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0-1.0"
diff --git a/src/xlib/m... | 4 | 43 | 43 |
b2204f6dcdc9bf35545935b5496a9aae0f8e0619 | Daggerbot | 2015-04-09T12:18:14 | Bump to 0.0.29. | diff --git a/Cargo.toml b/Cargo.toml
index 01a71c7..a3a3a1d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "0.0.28"
+version = "0.0.29"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0-1.0" | 1 | 1 | 1 |
3c75e4b53859ff5842a88f087ac036b96190be6a | Daggerbot | 2015-04-09T12:17:06 | Removed `Option<T>` from function pointers. | diff --git a/src/xlib/mod.rs b/src/xlib/mod.rs
index 22b53eb..25139dd 100644
--- a/src/xlib/mod.rs
+++ b/src/xlib/mod.rs
@@ -38,7 +38,7 @@ pub mod xkb;
#[link(name="X11")]
extern "C" {
pub fn XActivateScreenSaver (_1: *mut Display) -> c_int;
- pub fn XAddConnectionWatch (_3: *mut Display, _2: Option<unsafe extern... | 3 | 69 | 69 |
a49f77019379c13d6732289606817a956e2a6085 | Daggerbot | 2015-04-09T12:05:42 | Renamed `_type` to `type_` in event structures. | diff --git a/src/xlib/mod.rs b/src/xlib/mod.rs
index 1aa8bbb..22b53eb 100644
--- a/src/xlib/mod.rs
+++ b/src/xlib/mod.rs
@@ -899,7 +899,7 @@ fn xevent_size_test () {
#[derive(Clone, Copy, PartialEq)]
#[repr(C)]
pub struct XAnyEvent {
- pub _type: c_int,
+ pub type_: c_int,
pub serial: c_ulong,
pub send_event... | 1 | 32 | 32 |
ba3b25e09e2f73f7b3f6790b3f94ca56bad9ab16 | Daggerbot | 2015-04-09T11:45:53 | Removed `build.rs`, which is not yet needed. | diff --git a/build.rs b/build.rs
deleted file mode 100644
index ca06332..0000000
--- a/build.rs
+++ /dev/null
@@ -1,23 +0,0 @@
-extern crate gl_generator;
-
-use std::env::var;
-use std::fs::File;
-use std::path::PathBuf;
-
-
-fn main () {
- let out_dir;
- match var("OUT_DIR") {
- Ok(s) => { out_dir = s; },
- E... | 1 | 0 | 23 |
5ff22c9da27ded035d652c1f85a1e2eb798a1c4b | Daggerbot | 2015-04-09T10:23:44 | Removed unnecessary `-> ()` from function declarations. | diff --git a/src/xlib/mod.rs b/src/xlib/mod.rs
index 22c6db0..1aa8bbb 100644
--- a/src/xlib/mod.rs
+++ b/src/xlib/mod.rs
@@ -92,7 +92,7 @@ extern "C" {
pub fn XConnectionNumber (_1: *mut Display) -> c_int;
pub fn XContextDependentDrawing (_1: XFontSet) -> c_int;
pub fn XContextualDrawing (_1: XFontSet) -> c_in... | 1 | 49 | 49 |
8943e655ef72b93bae40ddd1aea75424fe6aa282 | Daggerbot | 2015-04-09T10:11:45 | Version bump. `cargo publish` is behaving strangely. | diff --git a/Cargo.toml b/Cargo.toml
index fb06260..01a71c7 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "0.0.26"
+version = "0.0.28"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0-1.0" | 1 | 1 | 1 |
e3e100bd3a2bab43ceebcf09d7a78961c9bd6281 | Daggerbot | 2015-04-09T09:34:26 | Removed glob imports, which seem to break build. | diff --git a/src/xlib/mod.rs b/src/xlib/mod.rs
index 66e2db6..22c6db0 100644
--- a/src/xlib/mod.rs
+++ b/src/xlib/mod.rs
@@ -29,9 +29,6 @@ use libc::{
pub mod xcms;
pub mod xkb;
-pub use self::xcms::*;
-pub use self::xkb::*;
-
//
// functions
diff --git a/src/xlib/xcms.rs b/src/xlib/xcms.rs
index 6afdb1c..bd1db... | 3 | 2 | 5 |
a1ec462527e78d541d9cfe15e8eb033998978655 | Daggerbot | 2015-04-09T09:30:58 | Added glob imports into ::xlib. | diff --git a/Cargo.toml b/Cargo.toml
index b20ee13..fb06260 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "0.0.25"
+version = "0.0.26"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0-1.0"
diff --git a/src/xlib/m... | 2 | 3 | 3 |
d5c39551feff34be897def1005317358569621c4 | Daggerbot | 2015-04-09T09:27:54 | Successfully builds with all public X11 functions declared! | diff --git a/src/xlib/mod.rs b/src/xlib/mod.rs
index e0c70d9..86ddd7f 100644
--- a/src/xlib/mod.rs
+++ b/src/xlib/mod.rs
@@ -1635,7 +1635,6 @@ pub struct XExtCodes {
}
#[allow(raw_pointer_derive)]
-#[derive(Clone, Copy, PartialEq)]
#[repr(C)]
pub struct XExtData {
pub number: c_int,
diff --git a/src/xlib/xcms.... | 3 | 79 | 6 |
bce555f2a714c2978961c588c3067a668b57eea6 | Daggerbot | 2015-04-08T10:10:12 | Changed mutability of some parameters. | diff --git a/Cargo.toml b/Cargo.toml
index 9739693..b20ee13 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "0.0.24"
+version = "0.0.25"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0-1.0"
diff --git a/src/xlib.r... | 2 | 3 | 3 |
b88754e96bf6b077afa8ffd2e45c9ff3fa7a9d0e | Daggerbot | 2015-04-08T09:30:53 | Added XWarpPointer. | diff --git a/Cargo.toml b/Cargo.toml
index a32e0c3..9739693 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "0.0.23"
+version = "0.0.24"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0-1.0"
diff --git a/src/xlib.r... | 2 | 2 | 1 |
96a3af36407976fbb7365cbc532d7fc74e47ddbd | Daggerbot | 2015-04-08T08:34:17 | Bump to 0.0.23. | diff --git a/Cargo.toml b/Cargo.toml
index 1338cfb..a32e0c3 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "0.0.22"
+version = "0.0.23"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0-1.0" | 1 | 1 | 1 |
82745a2b0b0661ba6ebdf0eebc6bc2fc70533403 | Daggerbot | 2015-04-08T08:14:46 | Changed Bool back. Documentation made me uncertain. | diff --git a/src/xlib.rs b/src/xlib.rs
index f714411..5a1b0c2 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -139,10 +139,8 @@ extern "C" {
//
-#[repr(C)]
-pub type Bool = bool;
-
pub type Atom = XID;
+pub type Bool = bool;
pub type Colormap = XID;
pub type Cursor = XID;
pub type Drawable = XID;
@@ -1464,6 +146... | 1 | 5 | 3 |
adcd48fb1064fa5419a991e22c98106a09ed7a9a | Daggerbot | 2015-04-08T08:07:43 | Changed Bool to repr(C). | diff --git a/build.rs b/build.rs
new file mode 100644
index 0000000..ca06332
--- /dev/null
+++ b/build.rs
@@ -0,0 +1,23 @@
+extern crate gl_generator;
+
+use std::env::var;
+use std::fs::File;
+use std::path::PathBuf;
+
+
+fn main () {
+ let out_dir;
+ match var("OUT_DIR") {
+ Ok(s) => { out_dir = s; },
+ Err(e... | 2 | 26 | 5 |
3b4d367bcd9ec89d6ed9258996e46e9b6f891d31 | Daggerbot | 2015-04-07T04:53:41 | Bump to 0.0.22. | diff --git a/Cargo.toml b/Cargo.toml
index 2fb7995..1338cfb 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "0.0.21"
+version = "0.0.22"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0-1.0" | 1 | 1 | 1 |
80628970e7b612f0e3fee8452e1709ee7bbd007a | Mika Attila | 2015-04-03T11:19:52 | Remove convert feature attribute
std::convert is stable now | diff --git a/src/lib.rs b/src/lib.rs
index f35a51b..94232dc 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -8,8 +8,6 @@
#![allow(non_snake_case)]
#![allow(non_upper_case_globals)]
-#![feature(convert)]
-
extern crate libc;
pub mod glx; | 1 | 0 | 2 |
63b6b89052fc9ad811b3b6e7cffe0bf184128cc9 | Daggerbot | 2015-04-02T00:00:18 | Added Clone and PartialEq to structs. | diff --git a/Cargo.toml b/Cargo.toml
index 3c431eb..2fb7995 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "0.0.20"
+version = "0.0.21"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0-1.0"
diff --git a/src/xlib.r... | 2 | 116 | 53 |
c34c7ab8484db9335e05a604ec3bc076f347ef82 | Daggerbot | 2015-04-01T23:49:35 | Fixed accidental field rename. | diff --git a/Cargo.toml b/Cargo.toml
index ccbc59b..3c431eb 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "0.0.19"
+version = "0.0.20"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0-1.0"
diff --git a/src/xlib.r... | 2 | 2 | 2 |
08ad5f350ad85dc969c52617f8ef63584c399aed | Daggerbot | 2015-04-01T23:40:53 | Bump to 0.0.19. | diff --git a/Cargo.toml b/Cargo.toml
index 4055a1b..ccbc59b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "0.0.18"
+version = "0.0.19"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0-1.0" | 1 | 1 | 1 |
c3f520e6c720bc1e2a82e2de7aa6e79d84bc5a00 | Daggerbot | 2015-04-01T23:37:59 | Finished XEvent variants. | diff --git a/src/glx.rs b/src/glx.rs
index 285781e..d6f29a4 100644
--- a/src/glx.rs
+++ b/src/glx.rs
@@ -22,12 +22,10 @@ use ::xlib::{
#[link(name="GL")]
extern "C" {
- pub fn glXChooseFBConfig (display: *mut Display, screen: c_int, attr: *const c_int, nitems: *mut c_int)
- -> *mut GLXFBConfig;
+ pub fn glXC... | 2 | 438 | 42 |
6c49a46fdc0e46310508ba9d2db50860137a6934 | Daggerbot | 2015-04-01T23:05:11 | Now using `std::convert` for XEvent and variants. | diff --git a/src/lib.rs b/src/lib.rs
index 94232dc..f35a51b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -8,6 +8,8 @@
#![allow(non_snake_case)]
#![allow(non_upper_case_globals)]
+#![feature(convert)]
+
extern crate libc;
pub mod glx;
diff --git a/src/xlib.rs b/src/xlib.rs
index 0d5e9fc..37a0ba4 100644
--- a/src/... | 2 | 209 | 88 |
c70a0ff72cbb2e68a2b4892bb9d9fb6e5816d58c | Daggerbot | 2015-04-02T05:22:30 | Renamed XClientMessageData to ClientMessageData. | diff --git a/Cargo.toml b/Cargo.toml
index b22c9aa..4055a1b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "0.0.17"
+version = "0.0.18"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 library bindings for Rust"
license = "CC0-1.0"
diff --git a/src/xlib.r... | 2 | 20 | 20 |
32592f5ccf46de0fee91b052b6f4b571f965a99e | BOTBrad | 2015-04-02T02:37:25 | Add XStringToKeycode, XGetKeyboardMapping, and XGrabKey | diff --git a/src/xlib.rs b/src/xlib.rs
index cb5103f..49a2be5 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -329,7 +329,7 @@ extern "C" {
// XGetImage
// XGetInputFocus
// XGetKeyboardControl
- // XGetKeyboardMapping
+ pub fn XGetKeyboardMapping (display: *mut Display, keycode: *const KeyCode, keycode_count:... | 1 | 3 | 3 |
cfd236cdb737f3b858304c1da4971bb6b1697893 | Daggerbot | 2015-04-01T23:52:47 | Added some bindings with no particular focus. | diff --git a/src/xlib.rs b/src/xlib.rs
index 043a449..cb5103f 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -32,14 +32,6 @@ use libc::{
#[link(name="X11")]
extern "C" {
- // _XSetLastRequestRead
- // AllPlanes
- // BitmapBitOrder
- // BitmapPad
- // BitmapUnit
- // BlackPixel
- // BlackPixelOfScreen
- // Ce... | 1 | 334 | 136 |
65703d70efa3fc8717a89d3b39801ef39ef0d2e4 | Daggerbot | 2015-04-01T22:45:06 | Added documentation link. | diff --git a/Cargo.toml b/Cargo.toml
index 0a05c04..b22c9aa 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,10 +1,11 @@
[package]
name = "x11"
-version = "0.0.16"
+version = "0.0.17"
authors = ["Daggerbot <daggerbot@gmail.com>"]
-description = "X11 bindings for Rust"
+description = "X11 library bindings for Rust"
li... | 1 | 3 | 2 |
97cebd1a3faf31a286cb1cef27ba0e6b0209ae4a | Daggerbot | 2015-03-25T09:33:13 | Bump 0.0.16. | diff --git a/Cargo.toml b/Cargo.toml
index c281878..0a05c04 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "0.0.15"
+version = "0.0.16"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 bindings for Rust"
license = "CC0-1.0" | 1 | 1 | 1 |
e59279406700057d8861f5cf1c2ddde2d96ff38c | Daggerbot | 2015-03-25T09:32:52 | Fixed XClientMessageData. | diff --git a/src/xlib.rs b/src/xlib.rs
index 59a361f..043a449 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -7,6 +7,10 @@ use std::mem::{
size_of,
zeroed,
};
+use std::slice::{
+ from_raw_parts,
+ from_raw_parts_mut,
+};
use libc::{
c_char,
@@ -820,8 +824,7 @@ pub struct XClientMessageData {
impl XClien... | 1 | 8 | 8 |
a18dae1cb7da1e6f446b5adf90d425a063b0045c | Daggerbot | 2015-03-23T02:32:47 | Bump to 0.0.15. | diff --git a/Cargo.toml b/Cargo.toml
index 3a58d96..c281878 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "0.0.14"
+version = "0.0.15"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 bindings for Rust"
license = "CC0-1.0" | 1 | 1 | 1 |
56a2854a8f89d5ca784538abfb2bb4ed6bfc4ed7 | Mika Attila | 2015-03-22T22:33:30 | Add KeySym, KeyCode, XModifierKeymap definitions | diff --git a/src/xlib.rs b/src/xlib.rs
index 306adde..296e272 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -664,8 +664,11 @@ pub type GC = XID;
pub type Pixmap = XID;
pub type VisualID = XID;
pub type Window = XID;
+pub type KeySym = XID;
pub type XID = c_ulong;
+pub type KeyCode = c_uchar;
+
// opaque structur... | 1 | 8 | 0 |
27ec485792a3667112b53a9a39be560301550333 | Daggerbot | 2015-03-19T16:15:57 | Added XCreateGC. | diff --git a/Cargo.toml b/Cargo.toml
index 52f0179..6bb41b6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "0.0.12"
+version = "0.0.13"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 bindings for Rust"
license = "BSD-2-Clause"
diff --git a/src/xlib.rs b... | 2 | 39 | 8 |
1644013d06f808b6de8860cee4e49b76d07ae707 | Daggerbot | 2015-03-18T23:09:53 | Added some basic drawing functions. | diff --git a/Cargo.toml b/Cargo.toml
index 5ac22e3..52f0179 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "0.0.11"
+version = "0.0.12"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 bindings for Rust"
license = "BSD-2-Clause"
diff --git a/src/xlib.rs b... | 2 | 33 | 7 |
6289907bd8fd8fb07acd692044a072c411262787 | Daggerbot | 2015-03-13T04:29:58 | Fixed glXCreateContextAttribsARB. | diff --git a/Cargo.toml b/Cargo.toml
index 8e9b84f..cc8e3e6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "0.0.8"
+version = "0.0.9"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 bindings for Rust"
license = "BSD-2-Clause"
diff --git a/src/glx.rs b/sr... | 2 | 2 | 2 |
8715d67b683bde6c783c646f2d5ef82b790bab24 | Daggerbot | 2015-03-13T04:15:16 | Made GLXFBConfig a mutable pointer. | diff --git a/Cargo.toml b/Cargo.toml
index eb5ae91..8e9b84f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "0.0.7"
+version = "0.0.8"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 bindings for Rust"
license = "BSD-2-Clause"
diff --git a/src/glx.rs b/sr... | 2 | 2 | 2 |
dbe31fff472f9d53f2c33a763ef7d32fd55457e5 | Daggerbot | 2015-03-13T01:33:31 | Wrap C function pointers in Option<>. | diff --git a/Cargo.toml b/Cargo.toml
index 4540378..eb5ae91 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "0.0.5"
+version = "0.0.7"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 bindings for Rust"
license = "BSD-2-Clause"
diff --git a/src/glx.rs b/sr... | 2 | 2 | 2 |
78981fd2034377a522c922eb41c714c50154a0d8 | Daggerbot | 2015-03-13T01:21:53 | Added glXCreateContextAttribsARB. | diff --git a/src/glx.rs b/src/glx.rs
index 37623fd..224150f 100644
--- a/src/glx.rs
+++ b/src/glx.rs
@@ -27,6 +27,8 @@ extern "C" {
// glXCopyContext
pub fn glXCreateContext (display: *mut Display, visual_info: *const XVisualInfo, share_context: GLXContext,
direct: Bool) -> GLXContext;
+ pub fn glXCreateC... | 1 | 2 | 0 |
b975528f1838cc1b67414db3ddda74d532c446f0 | Daggerbot | 2015-03-12T22:49:27 | Renamed xdestroy to xdestroywindow. | diff --git a/Cargo.toml b/Cargo.toml
index e3bd001..4540378 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "0.0.4"
+version = "0.0.5"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 bindings for Rust"
license = "BSD-2-Clause"
diff --git a/src/xlib.rs b/s... | 2 | 2 | 2 |
7eb7fa12c8b233d3c785bb406e013f81aa5dc863 | Daggerbot | 2015-03-12T12:00:24 | Changed Visual and Screen pointers to mut to match the C API. | diff --git a/Cargo.toml b/Cargo.toml
index 6201952..e3bd001 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "x11"
-version = "0.0.3"
+version = "0.0.4"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 bindings for Rust"
license = "BSD-2-Clause"
repository = "https://git... | 2 | 9 | 9 |
14513f33c9aa0e2fbce68bfdf22f6d70488e4f54 | Daggerbot | 2015-02-25T22:24:20 | Using libc from crates.io. Updates to version 0.0.3. | diff --git a/Cargo.toml b/Cargo.toml
index 909c407..6201952 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,10 @@
[package]
name = "x11"
-version = "0.0.2"
+version = "0.0.3"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 bindings for Rust"
license = "BSD-2-Clause"
repository = "https://gith... | 2 | 4 | 3 |
bbab0f7e4cb931e6bc73eb7729b0a35b9153237c | Daggerbot | 2015-02-20T14:56:57 | Added XConfigureEvent. | diff --git a/src/xlib.rs b/src/xlib.rs
index 57f4e5f..04f5e66 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -707,6 +707,12 @@ impl XEvent {
}
}
+ pub fn xconfigure (&self) -> XConfigureEvent {
+ unsafe {
+ xtransmute(self)
+ }
+ }
+
pub fn xdestroy (&self) -> XDestroyWindowEvent {
unsafe ... | 1 | 34 | 1 |
812f0df0afbf9e9b1495aee4395f0b09b28cc446 | Daggerbot | 2015-02-20T12:02:45 | Added glXGetVisualFromFBConfig. | diff --git a/src/glx.rs b/src/glx.rs
index d15ec2d..37623fd 100644
--- a/src/glx.rs
+++ b/src/glx.rs
@@ -48,7 +48,7 @@ extern "C" {
// glXGetFBConfigs
pub fn glXGetProcAddress (name: *const c_char) -> unsafe extern "C" fn ();
// glXGetSelectedEvent
- // glXGetVisualFromFBConfig
+ pub fn glXGetVisualFromFBCon... | 1 | 1 | 1 |
2a2b3a3c00f6e8a76bb6bcc8ddfbe70cd25fe213 | Daggerbot | 2015-02-19T19:17:33 | Added XCreateColormap. | diff --git a/src/xlib.rs b/src/xlib.rs
index 991e0b6..57f4e5f 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -209,7 +209,7 @@ extern "C" {
// XCopyPlane
// XCreateAssocTable
// XCreateBitmapFromData
- // XCreateColormap
+ pub fn XCreateColormap (display: *mut Display, window: Window, visual: *const Visual, al... | 1 | 5 | 1 |
8f31b3f441f35e4ac22af6b67ee81bd9eb0c35ce | Daggerbot | 2015-02-19T17:06:03 | Added XVisualIDFromVisual. | diff --git a/src/xlib.rs b/src/xlib.rs
index 93ca9c4..991e0b6 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -625,7 +625,7 @@ extern "C" {
// XUnmapSubwindows
pub fn XUnmapWindow (display: *mut Display, window: Window);
// XVendorRelease
- // XVisualIDFromVisual
+ pub fn XVisualIDFromVisual (visual: *const Vi... | 1 | 1 | 1 |
9b2bc1bba045303bd5d4c219ce9a825f405d5c4f | Daggerbot | 2015-02-19T13:01:56 | Added XQueryTree. | diff --git a/src/xlib.rs b/src/xlib.rs
index 1c403b1..93ca9c4 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -462,7 +462,8 @@ extern "C" {
// XQueryPointer
// XQueryTextExtents
// XQueryTextExtents16
- // XQueryTree
+ pub fn XQueryTree (display: *mut Display, window: Window, root: *mut Window, parent: *mut Wi... | 1 | 2 | 1 |
e53eee284eb0548b5860f7bf8fdbd72695ea1617 | Daggerbot | 2015-02-19T12:26:31 | Fixed XGetWindowProperty. | diff --git a/src/xlib.rs b/src/xlib.rs
index da60622..1c403b1 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -364,7 +364,7 @@ extern "C" {
pub fn XGetWindowAttributes (display: *mut Display, window: Window, attr: *mut XWindowAttributes) -> Status;
pub fn XGetWindowProperty (display: *mut Display, window: Window, p... | 1 | 1 | 1 |
eac78ca75f00cb0f56508e8d790c0182be571fdd | Daggerbot | 2015-02-19T12:21:44 | Added predefined atoms. | diff --git a/src/xlib.rs b/src/xlib.rs
index 2be0848..da60622 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -991,6 +991,76 @@ pub struct AspectRatio {
//
+// atoms
+pub const XA_PRIMARY: Atom = 1;
+pub const XA_SECONDARY: Atom = 2;
+pub const XA_ARC: Atom = 3;
+pub const XA_ATOM: Atom = 4;
+pub const XA_BITMAP: At... | 1 | 70 | 0 |
f2eccdf97bc9865c49e4cf681b7f4c381e18cc42 | Daggerbot | 2015-02-19T12:12:08 | Added some Xlib functions. | diff --git a/src/lib.rs b/src/lib.rs
index e01eb71..cd65c2a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -6,7 +6,6 @@
#![allow(non_upper_case_globals)]
-#![feature(core)]
#![feature(libc)]
extern crate libc;
diff --git a/src/xlib.rs b/src/xlib.rs
index 3340732..2be0848 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs... | 2 | 37 | 3 |
a121efdba98d1c1532d2e42584f852d280724237 | Daggerbot | 2015-02-05T14:48:47 | Added Eq and PartialEq to C structures. | diff --git a/src/xlib.rs b/src/xlib.rs
index a113740..3340732 100644
--- a/src/xlib.rs
+++ b/src/xlib.rs
@@ -678,7 +678,7 @@ pub type Status = Bool;
//
-#[derive(Clone, Copy)]
+#[derive(Clone, Copy, Eq, PartialEq)]
#[repr(C)]
pub struct XEvent {
pub pad: [c_long; 24],
@@ -746,7 +746,7 @@ fn xevent_size_test (... | 1 | 11 | 11 |
1c480e84be230e7c013e56ca8c9e06b0856838e0 | Daggerbot | 2015-02-05T14:24:47 | Added GLX. | diff --git a/Cargo.toml b/Cargo.toml
index d1ba097..909c407 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "x11"
-version = "0.0.1"
+version = "0.0.2"
authors = ["Daggerbot <daggerbot@gmail.com>"]
description = "X11 bindings for Rust"
license = "BSD-2-Clause"
diff --git a/src/example.rs ... | 4 | 168 | 81 |
c14bbd7bfa6abf0a3b9a083a73c240005acbe63d | Taiki Endo | 2025-09-07T12:24:20 | deps: support windows-sys 0.61
PR #21 | diff --git a/Cargo.toml b/Cargo.toml
index a6be2f9..776316d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,7 +13,7 @@ categories = ["os::windows-apis", "external-ffi-bindings"]
edition = "2021"
[target.'cfg(windows)'.dependencies.windows-sys]
-version = ">=0.48.0, <=0.60.*"
+version = ">=0.48.0, <=0.61.*"
feature... | 1 | 1 | 1 |
740518024ec98050c98549a922e3ce41d3ecf3de | Ryan Lopopolo | 2025-08-19T21:01:19 | cargo: support `windows-sys` v0.60.0
PR #20 | diff --git a/Cargo.toml b/Cargo.toml
index 3f3e52a..2c8b15c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,7 +13,7 @@ categories = ["os::windows-apis", "external-ffi-bindings"]
edition = "2021"
[target.'cfg(windows)'.dependencies.windows-sys]
-version = ">=0.48.0, <=0.59.*"
+version = ">=0.48.0, <=0.60.*"
feature... | 1 | 1 | 1 |
da28eacb145067588037f6372cb46deb28226a62 | Chris Denton | 2024-08-02T21:18:10 | cargo: update windows-sys to version 0.59.0
Also, set a lower minimum bound than usual, which
should hopefully help with preventing multiple copies
of `windows-sys` from sneaking into dependency trees.
PR #19 | diff --git a/Cargo.toml b/Cargo.toml
index b3b3394..f175e6a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,7 +13,7 @@ categories = ["os::windows-apis", "external-ffi-bindings"]
edition = "2021"
[target.'cfg(windows)'.dependencies.windows-sys]
-version = "0.52.0"
+version = ">=0.48.0, <=0.59.*"
features = [
"Wi... | 1 | 1 | 1 |
8b0872075d26d1b67f461306d7f58fb4e1e694f4 | Andrew Gallant | 2024-04-25T00:40:18 | cargo: fix SPDX license specifier
The Unlicense/MIT syntax was originally, I believe, the only one that
was accepted. And `Unlicense OR MIT` was added later. And now apparently
tools whinge about the former. So fix it.
Closes #16 | diff --git a/Cargo.toml b/Cargo.toml
index 0fc2e7c..4069106 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -8,7 +8,7 @@ homepage = "https://github.com/BurntSushi/winapi-util"
repository = "https://github.com/BurntSushi/winapi-util"
readme = "README.md"
keywords = ["windows", "windows-sys", "util", "win"]
-license = "Un... | 1 | 1 | 1 |
495ecba713c0cf0cc9d81f334a785a3e849d6ac3 | Andrew Gallant | 2023-09-19T14:41:02 | rust: various cleanups and move to Rust 2021 | diff --git a/Cargo.toml b/Cargo.toml
index e1fb776..08527aa 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -10,7 +10,7 @@ readme = "README.md"
keywords = ["windows", "winapi", "util", "win"]
license = "Unlicense/MIT"
categories = ["os::windows-apis", "external-ffi-bindings"]
-edition = "2018"
+edition = "2021"
[targ... | 4 | 33 | 27 |
8f291c9da272b24699f31e22c521404255462642 | Andrew Gallant | 2020-04-20T14:33:16 | winapi-util-0.1.5 | diff --git a/Cargo.toml b/Cargo.toml
index 70917fe..e1fb776 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "winapi-util"
-version = "0.1.4" #:version
+version = "0.1.5" #:version
authors = ["Andrew Gallant <jamslam@gmail.com>"]
description = "A dumping ground for high level safe wrapper... | 1 | 1 | 1 |
22737d3bc6c5f20e6c6acdfd77b89f9667323160 | David Tolnay | 2020-04-20T14:33:00 | doc: set docs.rs targets
Previously https://docs.rs/winapi-util went to the x86_64-unknown-linux-gnu
build of this crate by default, which is empty. This way the same link will
show useful documentation.
We achieve this by only building docs for one Windows target. Since the
API doesn't vary with other Windows t... | diff --git a/Cargo.toml b/Cargo.toml
index f2772aa..70917fe 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -26,3 +26,6 @@ features = [
"winerror",
"winnt",
]
+
+[package.metadata.docs.rs]
+targets = ["x86_64-pc-windows-msvc"] | 1 | 3 | 0 |
16f8edb4c1eb2b38d19d67293700f1be3e4bc8f6 | Ilaï Deutel | 2020-03-30T21:30:07 | console: method to access window dimensions
We avoid incurring a public dependency on winapi and
define our own rect struct.
PR #2 | diff --git a/src/console.rs b/src/console.rs
index afefa15..233d5c9 100644
--- a/src/console.rs
+++ b/src/console.rs
@@ -126,6 +126,31 @@ impl ScreenBufferInfo {
pub fn max_window_size(&self) -> (i16, i16) {
(self.0.dwMaximumWindowSize.X, self.0.dwMaximumWindowSize.Y)
}
+
+ /// Returns the console... | 1 | 25 | 0 |
d33486e0c0c7ef73450ac02a563d914906768827 | Andrew Gallant | 2020-01-11T14:00:57 | console: move wincolor crate into console module
There's not much sense for having two separate crates here. wincolor
predates winapi_util, and since wincolor is already very small (~100-200
lines), it makes sense to just roll it into here. | diff --git a/src/console.rs b/src/console.rs
index f85928e..afefa15 100644
--- a/src/console.rs
+++ b/src/console.rs
@@ -1,13 +1,21 @@
use std::io;
use std::mem;
+use winapi::shared::minwindef::WORD;
use winapi::um::consoleapi::{GetConsoleMode, SetConsoleMode};
use winapi::um::wincon::{
- GetConsoleScreenBuffe... | 1 | 259 | 3 |
322ffeb550a2fd27f4366b1b306e6934275d4a02 | Andrew Gallant | 2020-01-11T13:52:33 | edition: switch to Rust 2018 | diff --git a/Cargo.toml b/Cargo.toml
index 090a4b6..b2d93c7 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -10,6 +10,7 @@ readme = "README.md"
keywords = ["windows", "winapi", "util", "win"]
license = "Unlicense/MIT"
categories = ["os::windows-apis", "external-ffi-bindings"]
+edition = "2018"
[target.'cfg(windows)'.... | 4 | 3 | 5 |
16385cb76d859815e5ba531092caf8448f4c4435 | Andrew Gallant | 2019-01-27T16:58:48 | file: add is_hidden predicate
This adds a convenience routine for checking whether file information
has the hidden attribute set.
This was motivated by this bug report against ripgrep:
https://github.com/BurntSushi/ripgrep/issues/1154 | diff --git a/Cargo.toml b/Cargo.toml
index 93c70c2..10f3508 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -23,4 +23,5 @@ features = [
"winbase",
"wincon",
"winerror",
+ "winnt",
]
diff --git a/src/file.rs b/src/file.rs
index a9be91a..99f7981 100644
--- a/src/file.rs
+++ b/src/file.rs
@@ -8,6 +8,7 @@ use winapi... | 2 | 14 | 0 |
0ab6a429c21aa1c86972ad8e2b9ffda043165cc3 | Andrew Gallant | 2018-08-25T03:09:58 | handle: impl AsHandleRef for &T | diff --git a/src/win.rs b/src/win.rs
index fd56e94..490534b 100644
--- a/src/win.rs
+++ b/src/win.rs
@@ -186,6 +186,12 @@ pub trait AsHandleRef {
}
}
+impl<'a, T: AsHandleRef> AsHandleRef for &'a T {
+ fn as_handle_ref(&self) -> HandleRef {
+ (**self).as_handle_ref()
+ }
+}
+
impl AsHandleRef for ... | 1 | 6 | 0 |
7b72dcb8c0df8f40759ac1e0b60d376e9a3b6cb2 | Andrew Gallant | 2018-08-25T00:33:35 | initial implementation | diff --git a/Cargo.toml b/Cargo.toml
index 8d16b92..f065034 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -15,8 +15,12 @@ categories = ["os::windows-apis", "external-ffi-bindings"]
version = "0.3"
features = [
"std",
+ "consoleapi",
+ "errhandlingapi",
"fileapi",
"minwindef",
"processenv",
"winbase",
+... | 5 | 546 | 1 |
3be5734033b20c2476e6ca9154c3bb0e0ed840b2 | YOSHIOKA Takuma | 2024-03-01T17:54:50 | api: implement `FusedIterator`
`IntoIter` and `FilterEntry<IntoIter, P>` will return `None` once they
returned `None`. Implementing `FusedIterator` allows `Iterator::fuse`
method to be optimized.
PR #139 | diff --git a/src/lib.rs b/src/lib.rs
index edf702e..4b96df4 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -113,6 +113,7 @@ use std::cmp::{min, Ordering};
use std::fmt;
use std::fs::{self, ReadDir};
use std::io;
+use std::iter;
use std::path::{Path, PathBuf};
use std::result;
use std::vec;
@@ -1001,6 +1002,8 @@ impl... | 1 | 8 | 0 |
dcc527d8326fae4272b66bb55f433a302a8cad6f | Sebastian Thiel | 2023-09-05T14:01:38 | api: add follow_root_links() option to WalkDir
With it it's possible to control whether symlinks in the traversal
root are followed, while defaulting to 'true' like before, or if
they are handled like ordinary links.
Ref https://github.com/rust-lang/cargo/pull/11634
Fixes #175 | diff --git a/src/lib.rs b/src/lib.rs
index 4d41515..edf702e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -237,6 +237,7 @@ pub struct WalkDir {
struct WalkDirOptions {
follow_links: bool,
+ follow_root_links: bool,
max_open: usize,
min_depth: usize,
max_depth: usize,
@@ -265,6 +266,7 @@ impl fmt... | 2 | 96 | 2 |
21be5227882c4a8816a6db8c42189b384713051c | vsuryamurthy | 2023-03-16T12:55:45 | impl: use shorthand initialization, remove old work-around
This switches to using shorthand struct field initialization. It also
removes a work-around for an older version of Rust on Windows.
Finally, we remove an explicit dependency on winapi, which was
required by the aforementioned work-around. However, we do ... | diff --git a/Cargo.toml b/Cargo.toml
index c71c2fe..d78d02a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -23,10 +23,6 @@ members = ["walkdir-list"]
[dependencies]
same-file = "1.0.1"
-[target.'cfg(windows)'.dependencies.winapi]
-version = "0.3"
-features = ["std", "winnt"]
-
[target.'cfg(windows)'.dependencies.wina... | 4 | 14 | 44 |
461f4a8708eed4ea6cf14ac6f775a197ec61eee8 | Marvin Löbel | 2021-03-02T11:09:23 | api: add convenience sort routines
This commit adds sort_by_key and sort_by_file_name convenience routines
for common sorting needs. The signature for sort_by_key in particular
mirrors the eponymous method on slices in the standard library.
Closes #147 | diff --git a/src/error.rs b/src/error.rs
index 3fb619c..9e25a07 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -98,7 +98,7 @@ impl Error {
///
/// # Example
///
- /// ```rust,no-run
+ /// ```rust,no_run
/// use std::io;
/// use std::path::Path;
///
diff --git a/src/lib.rs b/src/lib.... | 3 | 83 | 4 |
0b3ff12ff593cd5626aeafbe31f6e06046ab356b | Guillaume Gomez | 2020-05-07T12:06:55 | tests: replace "cfg(test)" with "cfg(doctest)" for readme testing
PR #135 | diff --git a/src/lib.rs b/src/lib.rs
index 5132dd5..f3c1da0 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -106,7 +106,7 @@ for entry in walker.filter_entry(|e| !is_hidden(e)) {
#![deny(missing_docs)]
#![allow(unknown_lints)]
-#[cfg(test)]
+#[cfg(doctest)]
doc_comment::doctest!("../README.md");
use std::cmp::{min,... | 1 | 1 | 1 |
ed87b1ee2157cb6e9ff91a403d19ca2ef70bad13 | Andrew Gallant | 2020-01-11T18:38:37 | edition: switch to Rust 2018 | diff --git a/Cargo.toml b/Cargo.toml
index d9c5422..31ccee6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -11,6 +11,7 @@ keywords = ["directory", "recursive", "walk", "iterator"]
categories = ["filesystem"]
license = "Unlicense/MIT"
exclude = ["/ci/*", "/.travis.yml", "/appveyor.yml"]
+edition = "2018"
[badges]
tr... | 6 | 18 | 23 |
64367023b1a8675f8b97997dcdae194692acc504 | Andrew Gallant | 2020-01-11T17:27:20 | style: use 'dyn' for trait objects
And also add a `source` method on the `Error` impl.
And finally, permit the use of the deprecated `description` method,
since removing it would be a breaking change. | diff --git a/src/error.rs b/src/error.rs
index ab9b17a..b084a58 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -203,6 +203,7 @@ impl Error {
}
impl error::Error for Error {
+ #[allow(deprecated)]
fn description(&self) -> &str {
match self.inner {
ErrorInner::Io { ref err, .. } => err.... | 3 | 9 | 5 |
30e91a74e28f90b8d03bc1feec515652cbd3e51f | Andrew Gallant | 2019-07-20T17:22:06 | bug: fastidiously increment oldest_opened
A somewhat recent change permitted the `push` function to exit early
after `oldest_opened` was incremented, but before a new entry was pushed
on to the stack. Specifically, the only way this could happen was if
a handle could not be opened to an ancestor path, on Windows only.... | diff --git a/src/lib.rs b/src/lib.rs
index 37a4d60..51778e4 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -843,11 +843,6 @@ impl IntoIter {
.checked_sub(self.oldest_opened).unwrap();
if free == self.opts.max_open {
self.stack_list[self.oldest_opened].close();
- // Unwrap is s... | 1 | 17 | 8 |
7e0754a8985eb7c54655e8fa2936081a6608f736 | Lukas Kalbertodt | 2019-07-20T16:49:34 | bug: fix use of skip_current_dir
The method sometimes destroyed an internal invariant by not decreasing
`oldest_opened`. That then leads to panics in `push`. We fix this by
calling the canonical `pop` function, which is what should have happened
from the beginning.
This includes a regression test that fails without t... | diff --git a/src/lib.rs b/src/lib.rs
index bc6b184..37a4d60 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -724,10 +724,7 @@ impl IntoIter {
/// [`filter_entry`]: #method.filter_entry
pub fn skip_current_dir(&mut self) {
if !self.stack_list.is_empty() {
- self.stack_list.pop();
- }
- ... | 2 | 21 | 4 |
e09ce1cc517b4e82e3c6a53f46c9f79368322fc9 | Andrew Gallant | 2019-05-25T13:12:57 | internals: re-arrange implementation
This moves the DirEntry and Error types out into their own separate
modules.
This is prep work to (hopefully) make the impending refactoring (or
more likely, rewrite) more palatable. | diff --git a/src/dent.rs b/src/dent.rs
new file mode 100644
index 0000000..77f92b7
--- /dev/null
+++ b/src/dent.rs
@@ -0,0 +1,383 @@
+use std::ffi::OsStr;
+use std::fmt;
+use std::fs::{self, FileType};
+use std::path::{Path, PathBuf};
+
+use error::Error;
+use Result;
+
+/// A directory entry.
+///
+/// This is the typ... | 6 | 689 | 633 |
011973f170f581e897ce6753693240c32fd4b43a | Andrew Gallant | 2019-05-05T14:34:04 | tests: restructure them
This is in preparation to rewrite the tests. | diff --git a/src/tests/mod.rs b/src/tests/mod.rs
new file mode 100644
index 0000000..60b8de9
--- /dev/null
+++ b/src/tests/mod.rs
@@ -0,0 +1 @@
+mod old;
diff --git a/src/tests.rs b/src/tests/old.rs
similarity index 99%
rename from src/tests.rs
rename to src/tests/old.rs
index 86f09f4..72649ff 100644
--- a/src/tests.rs... | 2 | 2 | 1 |
8deb700720892ec8b595209b5082addc28ee7b24 | Andrew Gallant | 2019-05-01T19:28:02 | deps: bump rand and quickcheck
... to 0.6 and 0.8, respectively.
We aren't running tests on the MSRV any more any way, so we might as
well keep on moving.
Unfortunately, the rand ecosystem refuses to advertise and maintain
correct minimal versions in their Cargo.toml, so we have to remove the
minimal version check. | diff --git a/Cargo.toml b/Cargo.toml
index 7755a17..f3bdf31 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -32,4 +32,6 @@ quickcheck = { version = "0.8", default-features = false }
rand = "0.6"
serde = "1"
serde_derive = "1"
+quickcheck = { version = "0.8.2", default-features = false }
+rand = "0.6.5"
doc-comment = "0... | 1 | 2 | 0 |
4eb176fc7a906884e2455f9e8513e3b45fbb5c5f | Andrew Gallant | 2019-06-09T13:27:57 | style: allow bare trait objects
Because we aren't ready to bump our MSRV yet. | diff --git a/src/lib.rs b/src/lib.rs
index e5002ce..8081e89 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -104,6 +104,7 @@ for entry in walker.filter_entry(|e| !is_hidden(e)) {
*/
#![deny(missing_docs)]
+#![allow(bare_trait_objects)]
#[cfg(test)]
extern crate quickcheck; | 1 | 1 | 0 |
71c5437f9c0d6c5b018f5049f4e3ac662475913e | Andrew Gallant | 2019-06-09T13:27:09 | deps: update rand to 0.6 | diff --git a/Cargo.toml b/Cargo.toml
index fdafd31..b03ad80 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -29,7 +29,7 @@ version = "0.1.1"
[dev-dependencies]
docopt = "1.0.1"
quickcheck = { version = "0.8", default-features = false }
-rand = "0.5"
+rand = "0.6"
serde = "1"
serde_derive = "1"
doc-comment = "0.3" | 1 | 1 | 1 |
a4578948802679d259a1c3394dfd3efa6c97a9f1 | Igor Gnatenko | 2019-06-09T08:01:42 | deps: update quickcheck to 0.8 | diff --git a/Cargo.toml b/Cargo.toml
index 2db342b..fdafd31 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -28,7 +28,7 @@ version = "0.1.1"
[dev-dependencies]
docopt = "1.0.1"
-quickcheck = { version = "0.7", default-features = false }
+quickcheck = { version = "0.8", default-features = false }
rand = "0.5"
serde = ... | 1 | 1 | 1 |
4c4fdb2abd5f86be2f35a4f61df3f1a98e580867 | Guillaume Gomez | 2019-05-01T14:52:20 | test: check examples in README
PR #119 | diff --git a/Cargo.toml b/Cargo.toml
index c1b81e5..89e1bd0 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -32,3 +32,4 @@ quickcheck = { version = "0.7", default-features = false }
rand = "0.5"
serde = "1"
serde_derive = "1"
+doc-comment = "0.3"
diff --git a/src/lib.rs b/src/lib.rs
index c433d85..e5002ce 100644
--- a/s... | 2 | 7 | 0 |
45deac4d7eb7eaf63f6156ce04f6dfd987da7a17 | Andrew Gallant | 2019-04-30T17:30:48 | code: remove unnecessary mut | diff --git a/src/lib.rs b/src/lib.rs
index 1c38f73..c433d85 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -683,7 +683,7 @@ impl Iterator for IntoIter {
.map_err(|e| Error::from_path(0, start.clone(), e));
self.root_device = Some(itry!(result));
}
- let mut den... | 1 | 1 | 1 |
83b7a2430216cdc99348f4ec0b02f84a4eeed35f | Andrew Gallant | 2018-11-11T14:14:27 | walkdir: fix root symlink bug
This commit fixes a nasty bug where the root path given to walkdir was
always reported as a symlink, even when 'follow_links' was enabled. This
appears to be a regression introduced by commit 6f72fce as part of
fixing BurntSushi/ripgrep#984.
The central problem was that since root paths ... | diff --git a/src/lib.rs b/src/lib.rs
index 0d04a5d..1c38f73 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -277,7 +277,9 @@ impl WalkDir {
/// file path `root`. If `root` is a directory, then it is the first item
/// yielded by the iterator. If `root` is a file, then it is the first
/// and only item yielde... | 2 | 99 | 17 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.