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
7fba319af8bf65ba65f0387bbc82fa1b28de2bc3
Jay Lee
2017-11-20T11:53:02
support cmake
diff --git a/bzip2-sys/Cargo.toml b/bzip2-sys/Cargo.toml index fe06e36..5b1d2a1 100644 --- a/bzip2-sys/Cargo.toml +++ b/bzip2-sys/Cargo.toml @@ -18,6 +18,9 @@ categories = ["external-ffi-bindings"] name = "bzip2_sys" path = "lib.rs" +[features] +with-stdio = [] + [dependencies] libc = "0.2" diff --git a/bzip2-s...
3
18
4
46cb1abc29617d2d1823f49311600364721bc464
Alex Crichton
2017-09-19T18:14:13
Bump bzip2-sys to 0.1.6
diff --git a/bzip2-sys/Cargo.toml b/bzip2-sys/Cargo.toml index e932961..fe06e36 100644 --- a/bzip2-sys/Cargo.toml +++ b/bzip2-sys/Cargo.toml @@ -1,7 +1,6 @@ [package] - name = "bzip2-sys" -version = "0.1.5" +version = "0.1.6" authors = ["Alex Crichton <alex@alexcrichton.com>"] links = "bzip2" build = "build.rs"
1
1
2
fd2c7257ce8d15d20b25dd0b8db3868fe9b9895c
Alex Crichton
2017-09-19T18:13:47
Bump dep on gcc
diff --git a/bzip2-sys/Cargo.toml b/bzip2-sys/Cargo.toml index 6cd6eab..e932961 100644 --- a/bzip2-sys/Cargo.toml +++ b/bzip2-sys/Cargo.toml @@ -23,4 +23,4 @@ path = "lib.rs" libc = "0.2" [build-dependencies] -gcc = "0.3" +cc = "1.0" diff --git a/bzip2-sys/build.rs b/bzip2-sys/build.rs index 044a5a0..6616b7d 100644...
2
4
3
0e8ed8aaee8e833ae677e0c7682c7bdf470fec54
Ian Douglas Scott
2017-08-15T17:06:25
Redox fix
diff --git a/bzip2-sys/lib.rs b/bzip2-sys/lib.rs index a5436ad..fb40252 100644 --- a/bzip2-sys/lib.rs +++ b/bzip2-sys/lib.rs @@ -48,7 +48,7 @@ macro_rules! abi_compat { extern "system" { $(pub fn $name($($arg: $t),*) -> $ret;)* } - #[cfg(unix)] + #[cfg(any(unix, target_os = ...
1
1
1
b12b87bb39f6045dc1cac08f64d11fb9bc25ee77
Siddharth Agarwal
2017-05-31T02:25:02
[write] handle Interrupted errors correctly Make the `BzEncoder` and `BzDecoder` writers retry on `Interrupted` errors rather than bubbling them up. This also means that they now obey `AsyncWrite` rules, which prohibit `Interrupted` errors from being bubbled up. Closes #19.
diff --git a/src/write.rs b/src/write.rs index 39a06ea..57300fa 100644 --- a/src/write.rs +++ b/src/write.rs @@ -42,7 +42,11 @@ impl<W: Write> BzEncoder<W> { fn dump(&mut self) -> io::Result<()> { while self.buf.len() > 0 { - let n = try!(self.obj.as_mut().unwrap().write(&self.buf)); + ...
1
25
2
7aed9d379e7b1b60e6cdad0606cd2ee11aa77e04
Siddharth Agarwal
2017-05-31T02:21:23
read: use quickcheck + partial-io to ensure Interrupted errors are handled `partial-io` is a helper library that lets users wrap readers and writers and generate partial reads, or fail with temporary errors like `Interrupted`. It also integrates with `quickcheck` to provide random sequences of test instances. Looks l...
diff --git a/Cargo.toml b/Cargo.toml index 7077645..82e59e8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,8 @@ futures = { version = "0.1", optional = true } [dev-dependencies] rand = "0.3" -quickcheck = "0.2" +partial-io = { version = "^0.2.1", features = ["quickcheck"] } +quickcheck = "0.4" tokio-core = ...
3
20
1
8f95cefe817fc9a03a08f4b8f1685fb11e9a13f5
Alex Crichton
2017-04-12T15:37:35
Bump to 0.3.2
diff --git a/Cargo.toml b/Cargo.toml index 93a6294..7077645 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bzip2" -version = "0.3.1" +version = "0.3.2" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT/Apache-2.0" readme = "README.md"
1
1
1
9a29148c90f6b683379410a6609c07dd8134046e
Alex Crichton
2017-04-12T15:37:20
Touch up style
diff --git a/src/read.rs b/src/read.rs index 537b983..08219b5 100644 --- a/src/read.rs +++ b/src/read.rs @@ -97,7 +97,6 @@ impl<R: AsyncWrite + Read> AsyncWrite for BzEncoder<R> { } } - impl<R: Read> BzDecoder<R> { /// Create a new decompression stream, which will read compressed /// data from the gi...
1
0
1
b4ce5b8075f149fbc657529ebfc3b46248301a0a
Alex Crichton
2017-04-12T15:24:06
Add async I/O support This commit adds support for the `AsyncRead` and `AsyncWrite` traits in tokio-io to this crate. A few minor touch ups were made along the way to prepare working for async I/O streams. Closes #15 Closes #17 Closes #18
diff --git a/Cargo.toml b/Cargo.toml index 13b4177..93a6294 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,10 +15,18 @@ Reader/Writer streams. """ categories = ["compression", "api-bindings"] +[workspace] + [dependencies] libc = "0.2" bzip2-sys = { version = "0.1", path = "bzip2-sys" } +tokio-io = { version = "...
6
379
19
379f2d81d012562a30edad551e5023e6955c68f3
Alex Crichton
2017-03-23T23:20:25
Derive Debug for Compression Closes #16
diff --git a/src/lib.rs b/src/lib.rs index 21d32ce..03b69e9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -47,7 +47,7 @@ pub mod write; /// When compressing data, the compression level can be specified by a value in /// this enum. -#[derive(Copy, Clone)] +#[derive(Copy, Clone, Debug)] pub enum Compression { ///...
1
1
1
8142a106f8ad1c17771fe46373f64b93a90382c6
Alex Crichton
2017-01-20T19:18:09
Bump versions
diff --git a/Cargo.toml b/Cargo.toml index 0515349..13b4177 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bzip2" -version = "0.3.0" +version = "0.3.1" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT/Apache-2.0" readme = "README.md" @@ -13,7 +13,7 @@ description = "...
2
3
3
763e1b204ec6f51ea2acf2050e28bacee5fdde63
Alex Crichton
2017-01-20T16:58:43
Add categories
diff --git a/Cargo.toml b/Cargo.toml index e846757..0515349 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,7 @@ description = """ Bindings to libbzip2 for bzip2 compression and decompression exposed as Reader/Writer streams. """ +categories = ["compression"] [dependencies] libc = "0.2" diff --git a/bzip2-...
2
2
0
9b9a7801515820cb8f1635a1b23949fcb9d8a52c
kryptan
2016-09-04T22:27:03
Add `links = "bzip2"` to bzip2-sys
diff --git a/bzip2-sys/Cargo.toml b/bzip2-sys/Cargo.toml index 601d002..5733bf3 100644 --- a/bzip2-sys/Cargo.toml +++ b/bzip2-sys/Cargo.toml @@ -3,6 +3,7 @@ name = "bzip2-sys" version = "0.1.4" authors = ["Alex Crichton <alex@alexcrichton.com>"] +links = "bzip2" build = "build.rs" license = "MIT/Apache-2.0" repos...
1
1
0
959fd69fe031c4ccd31ec2ecb7c8adf4e30fa922
Edwin Amsler
2016-07-10T19:04:49
Fixed grammar
diff --git a/src/bufread.rs b/src/bufread.rs index 3d6108c..ea2f641 100644 --- a/src/bufread.rs +++ b/src/bufread.rs @@ -59,7 +59,7 @@ impl<R: BufRead> BzEncoder<R> { /// /// Note that, due to buffering, this only bears any relation to /// total_in() when the compressor chooses to flush its data - ///...
2
2
2
f0f3795ac03f82b8e221a33a62c1409bbbe8cc43
Edwin Amsler
2016-07-10T18:50:53
Fixed typo Never heard of an interfac before :P
diff --git a/src/lib.rs b/src/lib.rs index 0473e48..6318090 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,7 +7,7 @@ //! need. //! //! Access to the raw decompression/compression stream is also provided through -//! the `raw` module which has a much closer interfact to libbz2. +//! the `raw` module which has a much ...
1
1
1
8e2acb06a3c6e2cc690a4bd95954332f12f5b9b1
Alex Crichton
2016-05-12T23:54:46
Fix bug found by quickcheck
diff --git a/src/bufread.rs b/src/bufread.rs index f34e6f3..3d6108c 100644 --- a/src/bufread.rs +++ b/src/bufread.rs @@ -174,10 +174,11 @@ impl<R: BufRead> Read for BzDecoder<R> { let ret = try!(ret.map_err(|e| { io::Error::new(io::ErrorKind::InvalidInput, e) })); + ...
2
13
3
83ecbf8181e9b5f69380c8b7707d644373076eaf
Alex Crichton
2016-05-12T23:50:35
Remove stray newline
diff --git a/src/read.rs b/src/read.rs index d593dc2..ef4076f 100644 --- a/src/read.rs +++ b/src/read.rs @@ -220,4 +220,3 @@ mod tests { } } } -
1
0
1
c07be042de35a85c07e6b84df651ac2332a73761
Alex Crichton
2016-05-12T23:27:01
Add some quickcheck tests
diff --git a/Cargo.toml b/Cargo.toml index f834ebc..e846757 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,3 +20,4 @@ bzip2-sys = { version = "0.1", path = "bzip2-sys" } [dev-dependencies] rand = "0.3" +quickcheck = "0.2" diff --git a/src/lib.rs b/src/lib.rs index 6c6f443..0473e48 100644 --- a/src/lib.rs +++ b/src...
4
28
0
7154f092c6f4876035681b276ec73edde264de87
Alex Crichton
2016-05-06T20:15:16
Tweak some docs
diff --git a/src/write.rs b/src/write.rs index c02effe..b1d034b 100644 --- a/src/write.rs +++ b/src/write.rs @@ -117,8 +117,8 @@ impl<W: Write> Drop for BzEncoder<W> { } impl<W: Write> BzDecoder<W> { - /// Create a new compression stream which will compress at the given level - /// to write compress output to...
1
2
2
af789cdd7d4842086cabd96786bb004e486aa50a
Alex Crichton
2016-03-06T18:45:04
Bump bzip2-sys to 0.1.4
diff --git a/bzip2-sys/Cargo.toml b/bzip2-sys/Cargo.toml index 833ceba..601d002 100644 --- a/bzip2-sys/Cargo.toml +++ b/bzip2-sys/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bzip2-sys" -version = "0.1.3" +version = "0.1.4" authors = ["Alex Crichton <alex@alexcrichton.com>"] build = "build.rs" license = "MIT/Apa...
1
1
1
a70fcb392bf8905efcf3cc5975d1c7ba0ab8ab4f
Alex Crichton
2016-02-08T07:33:39
Bump to 0.3.0
diff --git a/Cargo.toml b/Cargo.toml index aff0b98..f834ebc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bzip2" -version = "0.2.4" +version = "0.3.0" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT/Apache-2.0" readme = "README.md"
1
1
1
07671593f568545bf132037f4209e7c3d8af2206
Alex Crichton
2016-02-08T07:32:15
Remove an unused import
diff --git a/src/bufread.rs b/src/bufread.rs index fab7237..f34e6f3 100644 --- a/src/bufread.rs +++ b/src/bufread.rs @@ -3,7 +3,7 @@ use std::io::prelude::*; use std::io; -use {Compress, Decompress, Compression, Action, Status, Error}; +use {Compress, Decompress, Compression, Action, Status}; /// A bz2 encoder, ...
2
2
3
847d8bfaf3f0c334324cf88fc4431bc024b59c42
Alex Crichton
2016-02-01T19:40:27
Bump to 0.2.4
diff --git a/Cargo.toml b/Cargo.toml index 3037048..aff0b98 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bzip2" -version = "0.2.3" +version = "0.2.4" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT/Apache-2.0" readme = "README.md"
1
1
1
6f184754693ddd6e79c348d581584b33408aeb5c
Alex Crichton
2016-02-01T19:39:33
Ensure all data is written when finishing compression Add a loop when `Action::Finish` is passed to ensure every last piece of data makes it out. Closes #10
diff --git a/src/writer.rs b/src/writer.rs index 8de3a6b..31a32f8 100644 --- a/src/writer.rs +++ b/src/writer.rs @@ -35,24 +35,34 @@ impl<W: Write> BzCompressor<W> { } fn do_write(&mut self, data: &[u8], action: Action) -> io::Result<usize> { - if self.buf.len() > 0 { - try!(self.w.as_mut(...
1
22
11
7dd43c954387ec60ec41c0fbb53d08d49611ebfa
Thomas Kluyver
2016-01-24T14:58:41
Fix doc for BzDecompressor::new It looks like it was copied from the `BzCompressor::new` doc.
diff --git a/src/reader.rs b/src/reader.rs index 4535b37..73dfc82 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -71,8 +71,8 @@ impl<R: Read> Read for BzCompressor<R> { } impl<R: Read> BzDecompressor<R> { - /// Create a new compression stream which will compress at the given level - /// to read compress ou...
1
2
2
debe83456313a657dbf974343327a7dd45095dce
Alex Crichton
2015-11-03T21:35:02
Bump dep on libc
diff --git a/Cargo.toml b/Cargo.toml index c97ba7c..3037048 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ Reader/Writer streams. """ [dependencies] -libc = "0.1" +libc = "0.2" bzip2-sys = { version = "0.1", path = "bzip2-sys" } [dev-dependencies] diff --git a/bzip2-sys/Cargo.toml b/bzip2-sys/Cargo....
2
2
2
10300c870693aef734ace42a0c844cf9313fe76f
Alex Crichton
2015-11-03T03:58:59
Special case 0-length reads These are a bit odd regardless so just weed them out up front.
diff --git a/src/reader.rs b/src/reader.rs index 0c15b4a..4535b37 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -63,9 +63,9 @@ impl<R: Read> BzCompressor<R> { impl<R: Read> Read for BzCompressor<R> { fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> { - self.0.read(buf.len(), |stream, input, of...
1
17
13
c12646bfe618d2de12a5341e517bd67aceb7ecfa
Alex Crichton
2015-11-03T03:45:25
Use vec![a; N] form for creating zeroed buffers
diff --git a/src/reader.rs b/src/reader.rs index 12fb79f..0c15b4a 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -2,7 +2,6 @@ use std::io::prelude::*; use std::io; -use std::iter::repeat; use libc::c_int; use ffi; @@ -32,7 +31,7 @@ impl<R: Read> BzCompressor<R> { BzCompressor(Inner { st...
1
2
3
4e9356f49619c54f67c3b82f46d36c4f25824ffe
Alex Crichton
2015-11-03T03:44:10
Move 0-length check farther down Also comment as to why it's necessary
diff --git a/src/raw.rs b/src/raw.rs index 93be0cf..d1468e1 100644 --- a/src/raw.rs +++ b/src/raw.rs @@ -114,6 +114,12 @@ impl Stream { /// given must be one of Run, Flush or Finish. pub fn compress(&mut self, input: &[u8], output: &mut [u8], action: Action) -> c_int { + // apparen...
2
11
5
d02c316368bc740e8dbb5f0bc838f12476fb03bc
Joshua Warner
2015-11-03T00:23:11
Add total_in/total_out methods to the rest of the streams, with nice comments
diff --git a/src/reader.rs b/src/reader.rs index 52f4c86..12fb79f 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -41,6 +41,25 @@ impl<R: Read> BzCompressor<R> { /// Unwrap the underlying writer, finishing the compression stream. pub fn into_inner(self) -> R { self.0.r } + + /// Returns the number of b...
2
56
0
274fb7831738e26567bece4bdcce68cab6fd8f54
Joshua Warner
2015-11-02T03:57:58
fix BzCompressor empty write problem
diff --git a/src/writer.rs b/src/writer.rs index de17bb1..9478dd2 100644 --- a/src/writer.rs +++ b/src/writer.rs @@ -77,7 +77,11 @@ impl<W: Write> BzCompressor<W> { impl<W: Write> Write for BzCompressor<W> { fn write(&mut self, data: &[u8]) -> io::Result<usize> { - self.do_write(data, Action::Run) + ...
1
15
1
7a678450dc566e801dfacdc5444065a014fbfe93
Joshua Warner
2015-11-02T03:57:43
expose total_out and total_in methods on BzCompressor
diff --git a/src/writer.rs b/src/writer.rs index 7424b07..de17bb1 100644 --- a/src/writer.rs +++ b/src/writer.rs @@ -63,6 +63,16 @@ impl<W: Write> BzCompressor<W> { } Ok(self.w.take().unwrap()) } + + /// Returns the number of bytes produced by the compressor + pub fn total_out(&self) -> u64...
1
10
0
79cb4330409e3707525630f2f8c3a89079643837
Joshua Warner
2015-11-01T21:22:19
Fix buffer offsets with looping compression
diff --git a/src/reader.rs b/src/reader.rs index 90df830..52f4c86 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -45,9 +45,9 @@ impl<R: Read> BzCompressor<R> { impl<R: Read> Read for BzCompressor<R> { fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> { - self.0.read(buf.len(), |stream, input, eo...
1
6
6
70c9acb70bd854f171009a4e07c1e69a8ecbc7f3
Joshua Warner
2015-11-01T17:39:12
Fix overflow
diff --git a/src/reader.rs b/src/reader.rs index c410bdb..90df830 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -107,7 +107,7 @@ impl<R: Read> Inner<R> { _ => return Err(io::Error::new(io::ErrorKind::InvalidInput, "invalid input")), } - ...
1
1
1
e051f3f562f595d3d935c4633abdf00991a93686
Joshua Warner
2015-11-01T17:36:24
Add zero_length_read_with_data, fix infinite loop there
diff --git a/src/reader.rs b/src/reader.rs index 629452f..c410bdb 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -45,7 +45,7 @@ impl<R: Read> BzCompressor<R> { impl<R: Read> Read for BzCompressor<R> { fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> { - self.0.read(|stream, input, eof| { + ...
1
20
5
ca51703fa3ad4dfc0eca3bced245b96e7cd5b4c3
Joshua Warner
2015-11-01T16:57:14
Add tests, fix zero_length_read_at_eof
diff --git a/Cargo.toml b/Cargo.toml index f24f230..c97ba7c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,3 +17,6 @@ Reader/Writer streams. [dependencies] libc = "0.1" bzip2-sys = { version = "0.1", path = "bzip2-sys" } + +[dev-dependencies] +rand = "0.3" diff --git a/src/lib.rs b/src/lib.rs index 208f001..dbb5943...
3
41
3
64d27323ae1aca2218870b8027cecf904fd2edf7
Alex Crichton
2015-07-12T22:49:47
Bump bzip2-sys to 0.1.3
diff --git a/bzip2-sys/Cargo.toml b/bzip2-sys/Cargo.toml index 640c35c..d1c371b 100644 --- a/bzip2-sys/Cargo.toml +++ b/bzip2-sys/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bzip2-sys" -version = "0.1.2" +version = "0.1.3" authors = ["Alex Crichton <alex@alexcrichton.com>"] build = "build.rs" license = "MIT/Apa...
1
1
1
f7a21cae1a15aea28b2ab2fd5a2f58f47496f869
Alex Crichton
2015-07-12T22:46:33
Tweak ABI and build on Windows Closes #6
diff --git a/bzip2-sys/build.rs b/bzip2-sys/build.rs index 3acb0ff..044a5a0 100644 --- a/bzip2-sys/build.rs +++ b/bzip2-sys/build.rs @@ -1,15 +1,23 @@ extern crate gcc; +use std::env; + fn main() { - gcc::Config::new() - .include("bzip2-1.0.6") - .define("BZ_NO_STDIO", None) - ...
2
39
18
7023717c1b7593b640c011d101c0998722139318
Alex Crichton
2015-06-28T21:10:27
Use inline table syntax
diff --git a/Cargo.toml b/Cargo.toml index 58463bc..f24f230 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,4 @@ Reader/Writer streams. [dependencies] libc = "0.1" - -[dependencies.bzip2-sys] -version = "0.1" -path = "bzip2-sys" +bzip2-sys = { version = "0.1", path = "bzip2-sys" }
1
1
4
71f5bdef9761ca599681f189508cb9c1f468b14a
Alex Crichton
2015-04-03T01:19:26
Bump to 0.2.3
diff --git a/Cargo.toml b/Cargo.toml index 9d052c3..58463bc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bzip2" -version = "0.2.2" +version = "0.2.3" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT/Apache-2.0" readme = "README.md" diff --git a/src/lib.rs b/src/lib...
3
4
4
011b470cee5538f9869c19a0cadc7d1053b6657b
Alex Crichton
2015-04-02T16:42:55
Bump to 0.2.2
diff --git a/Cargo.toml b/Cargo.toml index e422126..9d052c3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bzip2" -version = "0.2.1" +version = "0.2.2" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT/Apache-2.0" readme = "README.md"
1
1
1
d296e9b014fa299ab239491fba8a9855ad07e90e
Mathijs van de Nes
2015-04-02T13:24:08
Update to latest rust * Update io::Error::new * Fix a comparsion in a test
diff --git a/src/lib.rs b/src/lib.rs index c456dc3..7d46371 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -28,7 +28,6 @@ //! assert_eq!(contents, "Hello, World!"); //! ``` -#![feature(io)] #![deny(missing_docs)] #![cfg_attr(test, deny(warnings))] #![doc(html_root_url = "http://alexcrichton.com/bzip2-rs")] diff --g...
3
2
3
ef299d62334721af9a7bed919438b144a3914b3c
Alex Crichton
2015-03-30T18:24:01
Remove unsafe_destructor
diff --git a/src/lib.rs b/src/lib.rs index 38011aa..c456dc3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -28,7 +28,7 @@ //! assert_eq!(contents, "Hello, World!"); //! ``` -#![feature(unsafe_destructor, io)] +#![feature(io)] #![deny(missing_docs)] #![cfg_attr(test, deny(warnings))] #![doc(html_root_url = "http://a...
3
1
281
734b807503c5f5e8c478a855748953ecc7b51d9c
Alex Crichton
2015-03-26T16:35:16
Update to rust master
diff --git a/Cargo.toml b/Cargo.toml index ae0ba0e..e422126 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bzip2" -version = "0.2.0" +version = "0.2.1" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT/Apache-2.0" readme = "README.md" diff --git a/bzip2-sys/Cargo.toml...
3
4
4
1891dc4dd579bdbc7a8b2ed6af8356071abc3672
Alex Crichton
2015-03-21T17:13:47
Update to rust master
diff --git a/src/lib.rs b/src/lib.rs index 5642c60..ffa9795 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,7 +19,7 @@ //! //! // Round trip some bytes from a byte source, into a compressor, into a //! // decompressor, and finally into a vector. -//! let data = b"Hello, World!"; +//! let data = "Hello, World!".as_by...
1
1
1
6d7bf5a3ff17020f2c40d37b15759ba01259bb4a
Alex Crichton
2015-03-04T04:30:18
Add doc urls
diff --git a/bzip2-sys/lib.rs b/bzip2-sys/lib.rs index 500c59c..cc67680 100644 --- a/bzip2-sys/lib.rs +++ b/bzip2-sys/lib.rs @@ -1,3 +1,5 @@ +#![doc(html_root_url = "http://alexcrichton.com/bzip2-rs")] + extern crate libc; use libc::{c_int, c_uint, c_void, c_char}; diff --git a/src/lib.rs b/src/lib.rs index b73f047...
2
3
0
77097f0b646ee7c4abac33218885e4ee360d20f9
Marcus Klaas
2015-03-03T08:03:08
Remove debugging printlns
diff --git a/src/reader.rs b/src/reader.rs index cafb8d2..1319aa9 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -45,7 +45,6 @@ impl<R: Read> BzCompressor<R> { impl<R: Read> Read for BzCompressor<R> { fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> { - println!("compress"); self.0.rea...
1
0
3
467a48cefef92437d7d484ea4596fae8912e3f4e
Alex Crichton
2015-03-03T01:35:28
Add a test from #3
diff --git a/src/reader.rs b/src/reader.rs index b80e6e3..cafb8d2 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -142,5 +142,14 @@ mod tests { d.read_to_end(&mut data).unwrap(); assert_eq!(data, [1, 2, 3, 4, 5, 6, 7, 8]); } -} + #[test] + fn smoke3() { + let m = vec![3u8; 128 * ...
1
10
1
00b7f69919b0d38f74eea1179f52faa4997b46b8
Alex Crichton
2015-03-03T00:15:21
Don't try to use read_to_end when reading Each call to `read` should delegate to as few underlying calls to `read` as possible.
diff --git a/src/reader.rs b/src/reader.rs index b0e1774..b80e6e3 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -2,26 +2,25 @@ use std::io::prelude::*; use std::io; +use std::iter::repeat; +use libc::c_int; use ffi; use raw::{Stream, Action}; /// A compression stream which wraps an uncompressed stream of...
1
58
68
e87bb8c806599964f2c9cf71c83d3938ce8a8414
Alex Crichton
2015-02-24T19:51:19
Bump to 0.2.0
diff --git a/Cargo.toml b/Cargo.toml index 60d6272..ae0ba0e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bzip2" -version = "0.1.3" +version = "0.2.0" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT/Apache-2.0" readme = "README.md"
1
1
1
7efcc3068feec0a886ac66157156c8cd2cd86053
Alex Crichton
2015-02-24T19:50:43
Remove inner loops for reading/writing
diff --git a/bzip2-sys/Cargo.toml b/bzip2-sys/Cargo.toml index 3f78b99..2785948 100644 --- a/bzip2-sys/Cargo.toml +++ b/bzip2-sys/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bzip2-sys" -version = "0.1.0" +version = "0.1.1" authors = ["Alex Crichton <alex@alexcrichton.com>"] build = "build.rs" license = "MIT/Apa...
7
117
141
e0f6e7663802056631d2d6d38a5cf4ea482a6ee4
Mathijs van de Nes
2015-02-24T19:28:52
Convert to new io
diff --git a/src/lib.rs b/src/lib.rs index b26fb8a..4270e27 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -13,21 +13,22 @@ //! //! ``` //! # #![allow(unstable)] -//! use std::old_io::BufReader; +//! use std::io::prelude::*; //! use bzip2::CompressionLevel; //! use bzip2::reader::{BzCompressor, BzDecompressor}; //! ...
3
57
48
c402f585a10139302d660a276391ad8639aa22d5
Alex Crichton
2015-02-20T16:21:47
Update to rust master
diff --git a/src/lib.rs b/src/lib.rs index c9dd7fc..b26fb8a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -27,7 +27,7 @@ //! assert_eq!(contents.as_slice(), "Hello, World!"); //! ``` -#![feature(unsafe_destructor, io, core)] +#![feature(unsafe_destructor, old_io, core)] #![deny(missing_docs)] #![cfg_attr(test, deny...
1
1
1
8237884fbffdf29b2c59e83e13b629ca67a5acbb
Alex Crichton
2015-02-12T19:02:26
Update to rust master
diff --git a/src/lib.rs b/src/lib.rs index 4f6bd5f..c9dd7fc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -34,24 +34,22 @@ extern crate "bzip2-sys" as ffi; extern crate libc; -use std::old_io::MemWriter; - pub mod raw; pub mod writer; pub mod reader; /// Compress a block of input data into a bzip2 encoded outpu...
2
6
9
704e6f18c4710fc18a4ea6ab726ee881fa8d3829
Alex Crichton
2015-02-03T16:30:16
Update to rust master
diff --git a/bzip2-sys/build.rs b/bzip2-sys/build.rs index 6240f7e..b53daaa 100644 --- a/bzip2-sys/build.rs +++ b/bzip2-sys/build.rs @@ -1,4 +1,4 @@ -#![feature(collections, path)] +#![feature(path)] extern crate gcc;
1
1
1
085b2fecd4d4a7451aa414dac21c9de30f274843
Alex Crichton
2015-01-29T16:59:14
Add some feature gates
diff --git a/Cargo.toml b/Cargo.toml index 468e958..60d6272 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,6 +14,9 @@ Bindings to libbzip2 for bzip2 compression and decompression exposed as Reader/Writer streams. """ +[dependencies] +libc = "0.1" + [dependencies.bzip2-sys] version = "0.1" path = "bzip2-sys" dif...
3
6
2
c0529b9386bc4c1f93b0b1ee9bf3455dfa5d236d
Alex Crichton
2015-01-23T16:42:33
Add metadata
diff --git a/bzip2-sys/Cargo.toml b/bzip2-sys/Cargo.toml index ab00426..3f78b99 100644 --- a/bzip2-sys/Cargo.toml +++ b/bzip2-sys/Cargo.toml @@ -4,6 +4,14 @@ name = "bzip2-sys" version = "0.1.0" authors = ["Alex Crichton <alex@alexcrichton.com>"] build = "build.rs" +license = "MIT/Apache-2.0" +repository = "https://...
1
8
0
962d19a36e05bdeae6e47577ff7a6168cc04c751
Alex Crichton
2015-01-23T16:41:54
Update to rust master
diff --git a/Cargo.toml b/Cargo.toml index eb3a78b..9f16635 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bzip2" -version = "0.1.1" +version = "0.1.2" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT/Apache-2.0" readme = "README.md" @@ -15,5 +15,5 @@ Reader/Writer s...
4
15
12
252fc8cac7c2384c89114e9fdcde4809ff30b34d
Alex Crichton
2015-01-09T20:16:13
Bump to 0.1.1
diff --git a/Cargo.toml b/Cargo.toml index f73c84d..eb3a78b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bzip2" -version = "0.1.0" +version = "0.1.1" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT/Apache-2.0" readme = "README.md" diff --git a/bzip2-sys/lib.rs b/b...
6
24
21
131bf08a3bbe350a8bf88d35fa5d42a505c4f717
Alex Crichton
2015-01-05T16:41:56
Update to rust master
diff --git a/Cargo.toml b/Cargo.toml index ba1116b..f73c84d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bzip2" -version = "0.0.3" +version = "0.1.0" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT/Apache-2.0" readme = "README.md" @@ -15,5 +15,5 @@ Reader/Writer s...
5
11
9
1379d3dc70ba27b840bdd0ae985037d753dd8348
Alex Crichton
2014-12-12T17:14:14
Update to rust master
diff --git a/src/lib.rs b/src/lib.rs index 8d2a4cc..cf82cff 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -54,6 +54,7 @@ pub fn decompress(data: &[u8]) -> Vec<u8> { /// When compressing data, the compression level can be specified by a value in /// this enum. +#[deriving(Copy)] pub enum CompressionLevel { /// O...
2
3
1
3e4870c0a586b0853f79fd3f880584099053a53c
Alex Crichton
2014-12-03T08:02:30
Update to rust master
diff --git a/src/lib.rs b/src/lib.rs index 145502f..8d2a4cc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -13,12 +13,13 @@ //! //! ``` //! use std::io::BufReader; +//! use bzip2::CompressionLevel; //! use bzip2::reader::{BzCompressor, BzDecompressor}; //! //! // Round trip some bytes from a byte source, into a comp...
3
22
14
ece3099d927a152305706c3cb3e20577d93621ee
Alex Crichton
2014-11-19T16:33:03
Update to rust master
diff --git a/Cargo.toml b/Cargo.toml index 2b640ca..ba1116b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bzip2" -version = "0.0.2" +version = "0.0.3" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT/Apache-2.0" readme = "README.md" diff --git a/src/writer.rs b/src/...
2
6
6
6c33749c2fa21ee2ba785b6eb8a984eab82c70d9
Alex Crichton
2014-11-19T05:58:22
Bump version number
diff --git a/Cargo.toml b/Cargo.toml index be5b423..2b640ca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bzip2" -version = "0.0.1" +version = "0.0.2" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT/Apache-2.0" readme = "README.md"
1
1
1
5315ddb19dea48caa7888348d6b1c6b81a14f869
Alex Crichton
2014-11-18T17:28:01
Update to rust master
diff --git a/src/raw.rs b/src/raw.rs index 4cc0e72..f343d66 100644 --- a/src/raw.rs +++ b/src/raw.rs @@ -42,7 +42,7 @@ impl Stream { unsafe { let mut raw = box mem::zeroed(); assert_eq!(ffi::BZ2_bzDecompressInit(&mut *raw, 0, small as c_int), 0); - Stream { raw: raw, kind: ...
3
21
21
d59ef314bd88cf6c7cda0a68f620f4fd2dd2ae35
Alex Crichton
2014-11-13T06:35:42
Rename the APL license
diff --git a/Cargo.toml b/Cargo.toml index 40b863c..be5b423 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "bzip2" version = "0.0.1" authors = ["Alex Crichton <alex@alexcrichton.com>"] -license = "MIT/APL2" +license = "MIT/Apache-2.0" readme = "README.md" keywords = ["bzip", "encoding"] repositor...
1
1
1
24581d575770cd8a1671e543450399993ab4395d
Alex Crichton
2014-11-09T08:41:20
Update to gcc master
diff --git a/bzip2-sys/build.rs b/bzip2-sys/build.rs index 1df5362..e8df2f7 100644 --- a/bzip2-sys/build.rs +++ b/bzip2-sys/build.rs @@ -1,10 +1,12 @@ extern crate gcc; +use std::default::Default; fn main() { gcc::compile_library("libbz2.a", &gcc::Config { include_directories: vec![Path::new("bzip2-...
1
2
0
05acba1dafd4f959143800b728ac402964510b65
Alex Crichton
2014-11-05T23:40:43
Move to using a build script
diff --git a/Cargo.toml b/Cargo.toml index a755da7..40b863c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,10 +10,10 @@ repository = "https://github.com/alexcrichton/bzip2-rs" homepage = "https://github.com/alexcrichton/bzip2-rs" documentation = "http://alexcrichton.com/bzip2-rs" description = """ -Bindings to libb...
6
90
10
5b63e539392d10bdd25864ed4106c5b2c887844f
Alex Crichton
2014-10-31T15:40:21
Update to rust master
diff --git a/src/lib.rs b/src/lib.rs index 37d9e48..bf44345 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -26,7 +26,7 @@ //! ``` #![feature(unsafe_destructor)] -#![deny(missing_doc)] +#![deny(missing_docs)] extern crate "libbz2-sys" as ffi; extern crate libc;
1
1
1
f8ced7bb6a5636873a74f0e36461c2e18f545e80
Alex Crichton
2014-10-30T15:34:09
fail => panic
diff --git a/libbz2-sys/src/lib.rs b/libbz2-sys/src/lib.rs index 11e6030..bb3f282 100644 --- a/libbz2-sys/src/lib.rs +++ b/libbz2-sys/src/lib.rs @@ -57,5 +57,5 @@ extern { #[no_mangle] pub fn bz_internal_error(errcode: c_int) { - fail!("bz internal error: {}", errcode); + panic!("bz internal error: {}", errco...
2
3
3
74292b4b020a12bdd2fa29b1649c4fb16c49ce2b
Alex Crichton
2014-10-28T06:01:57
Specify the README
diff --git a/Cargo.toml b/Cargo.toml index c85ad1d..a755da7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,7 @@ name = "bzip2" version = "0.0.1" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT/APL2" +readme = "README.md" keywords = ["bzip", "encoding"] repository = "https://github.com/alexc...
1
1
0
29c0fe35a94dde644115cc0663ecc7d79e8e281a
Alex Crichton
2014-10-28T05:56:28
Add some metadata to the package
diff --git a/Cargo.toml b/Cargo.toml index bf56548..c85ad1d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,6 +3,15 @@ name = "bzip2" version = "0.0.1" authors = ["Alex Crichton <alex@alexcrichton.com>"] +license = "MIT/APL2" +keywords = ["bzip", "encoding"] +repository = "https://github.com/alexcrichton/bzip2-rs" +h...
1
9
0
c3c70a66d71ab2e38e676c620d2fad93a2852906
Alex Crichton
2014-10-22T18:26:56
Add a version to the path dep
diff --git a/Cargo.toml b/Cargo.toml index 7dc1286..bf56548 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,4 +5,5 @@ version = "0.0.1" authors = ["Alex Crichton <alex@alexcrichton.com>"] [dependencies.libbz2-sys] +version = "*" path = "libbz2-sys"
1
1
0
0fe018f67f830fbb1d458621d024535695a31a98
Alex Crichton
2014-10-12T18:33:29
Update to rust master
diff --git a/libbz2-sys/src/lib.rs b/libbz2-sys/src/lib.rs index 5875367..11e6030 100644 --- a/libbz2-sys/src/lib.rs +++ b/libbz2-sys/src/lib.rs @@ -2,24 +2,24 @@ extern crate libc; use libc::{c_int, c_uint, c_void, c_char}; -pub static BZ_RUN: c_int = 0; -pub static BZ_FLUSH: c_int = 1; -pub static BZ_FINISH: c_i...
1
18
18
e3920a35338d97bfd2cadb8b0d869ed071075ee9
Alex Crichton
2014-09-23T04:03:42
Write up some documentation and examples
diff --git a/src/lib.rs b/src/lib.rs index cf0516f..37d9e48 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,29 @@ -//! dox +//! Bzip compression for Rust +//! +//! This library contains bindings to libbz2 to support bzip compression and +//! decompression for Rust. The streams offered in this library are primarily ...
3
28
3
fd65808346159eea2d19ae1b8238a8ec2eaeb210
Chris Tsang
2026-04-08T22:14:12
Fix CI: handle Value::Enum in value_to_postgres_type Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
diff --git a/sea-query-postgres/src/lib.rs b/sea-query-postgres/src/lib.rs index 03d1425..652abc1 100644 --- a/sea-query-postgres/src/lib.rs +++ b/sea-query-postgres/src/lib.rs @@ -176,6 +176,7 @@ fn value_to_postgres_type(value: &Value) -> Type { Value::Float(_) => Type::FLOAT4, Value::Double(_) => T...
1
1
0
239cf43f6fe01c12ed433a4f961ee20a3a9e4fe0
狐狸
2026-04-08T22:06:55
Fix null array handling and rename `as_ref_array` to `as_array` (#1034) - `Array::Null.is_empty()` now correctly returns `false`; null and empty are distinct states - `try_from_value` now converts a null array to an empty `Vec` instead of returning `ValueTypeErr` - `Value::as_ref_array` renamed to `as_array`; old ...
diff --git a/src/backend/query_builder.rs b/src/backend/query_builder.rs index 215004b..cbe8555 100644 --- a/src/backend/query_builder.rs +++ b/src/backend/query_builder.rs @@ -2096,4 +2096,18 @@ mod tests { buf.clear(); } } + + #[test] + #[cfg(feature = "postgres-array")] + fn prepa...
2
29
0
868c514065dad9657351edea827e86262dd30d3c
狐狸
2026-04-08T21:19:14
Add `as_types` to `PostgresValues` (#967) - Closes #762 ## New Features - Add `as_types` to `PostgresValues`
diff --git a/sea-query-postgres/src/lib.rs b/sea-query-postgres/src/lib.rs index f9afe74..03d1425 100644 --- a/sea-query-postgres/src/lib.rs +++ b/sea-query-postgres/src/lib.rs @@ -5,7 +5,7 @@ use std::error::Error; use bytes::BytesMut; use postgres_types::{IsNull, ToSql, Type, to_sql_checked}; -use sea_query::{Opt...
1
115
1
7915b0355ae5bfd3699e25a3aa3c1ff8edfb5136
MasakiMiyazaki
2026-04-08T21:08:29
feat: add SelectExprTrait for ergonomic alias and window chaining (#1040) ## PR Info - Closes #344 ## Changes ### SelectExprTrait Add SelectExprTrait providing alias and over methods. Implemented for both SelectExpr and `T: Into<Expr>`, enabling. ```rust Expr::col(...).alias(...) Expr::col(...).over(...) ``` `ov...
diff --git a/src/query/select.rs b/src/query/select.rs index 2e5d98b..f52a7c8 100644 --- a/src/query/select.rs +++ b/src/query/select.rs @@ -244,6 +244,81 @@ impl SelectInto { } } +impl From<WindowStatement> for WindowSelectType { + fn from(stmt: WindowStatement) -> Self { + Self::Query(stmt) + } +...
4
211
45
d4aef75b74fed3400a81ae8c13e44491f84fac04
Neel
2026-03-24T07:10:55
Add support for postgres advisory locks (#1062) <!-- Thank you for contributing to this project! If you need any help please feel free to contact us on Discord: https://discord.com/invite/uCPdDXzbdv Or, mention our core members by typing `@GitHub_Handle` on any issue / PR Add some test cases! It help reviewers to u...
diff --git a/src/backend/postgres/mod.rs b/src/backend/postgres/mod.rs index 99f3781..8e775c7 100644 --- a/src/backend/postgres/mod.rs +++ b/src/backend/postgres/mod.rs @@ -150,7 +150,7 @@ mod tests { for b in 0u8..=31 { let c = b as char; if !matches!(c, '\x00' | '\x08' | '\x09' | '\...
7
298
18
d427ec441170c85d0bd88865dc08a3bd80deae5b
Huliiiiii
2026-03-23T12:11:34
Simplify FunctionCall::new(PgFunc::...) calls
diff --git a/src/extension/postgres/func.rs b/src/extension/postgres/func.rs index 7a76e1f..716411f 100644 --- a/src/extension/postgres/func.rs +++ b/src/extension/postgres/func.rs @@ -34,6 +34,12 @@ pub enum PgFunc { All, } +impl From<PgFunc> for Func { + fn from(func: PgFunc) -> Self { + Self::PgFun...
2
30
29
dfe3b28eae99febdba2d134368ad5011a9717d76
Chris Tsang
2026-03-21T11:32:54
Remove panic paths
diff --git a/src/backend/sqlite/foreign_key.rs b/src/backend/sqlite/foreign_key.rs index c870af5..9138cb2 100644 --- a/src/backend/sqlite/foreign_key.rs +++ b/src/backend/sqlite/foreign_key.rs @@ -9,11 +9,8 @@ impl ForeignKeyBuilder for SqliteQueryBuilder { } // Support table names with a sche...
3
2
34
3ccb298b156e385590acd6fdb13dbf04fdd0ca72
Francis Nimick
2026-03-21T11:25:13
Allow schema-referencing foreign keys in sqlite backend (#1056) This is implemented by stripping the foreign key target table schema reference, as sqlite syntax does not support it. Foreign keys from a table not in a schema targeting a table in a schema, or vice versa, or foreign keys from a table in one schema targe...
diff --git a/src/backend/sqlite/foreign_key.rs b/src/backend/sqlite/foreign_key.rs index 740735e..c870af5 100644 --- a/src/backend/sqlite/foreign_key.rs +++ b/src/backend/sqlite/foreign_key.rs @@ -3,10 +3,18 @@ use super::*; impl ForeignKeyBuilder for SqliteQueryBuilder { fn prepare_table_ref_fk_stmt(&self, table...
5
299
6
f623e1f6261c5e73a8e3f529812d479c586093aa
狐狸
2026-03-18T10:17:34
Add Value::Enum (#1051)
diff --git a/sea-query-diesel/src/backend/mysql.rs b/sea-query-diesel/src/backend/mysql.rs index e75aaf2..340c303 100644 --- a/sea-query-diesel/src/backend/mysql.rs +++ b/sea-query-diesel/src/backend/mysql.rs @@ -3,7 +3,7 @@ use diesel::mysql::sql_types::*; use diesel::query_builder::QueryFragment; use diesel::result...
18
347
14
9e8a12e34a89fcd7b710e5abeea6efebf8cc8164
WaterWhisperer
2026-03-10T11:02:44
Support for `FILTER` clause on aggregate functions (#1043) <!-- Thank you for contributing to this project! If you need any help please feel free to contact us on Discord: https://discord.com/invite/uCPdDXzbdv Or, mention our core members by typing `@GitHub_Handle` on any issue / PR Add some test cases! It help rev...
diff --git a/src/backend/query_builder.rs b/src/backend/query_builder.rs index b172dec..243601c 100644 --- a/src/backend/query_builder.rs +++ b/src/backend/query_builder.rs @@ -814,6 +814,12 @@ pub trait QueryBuilder: } sql.write_str(")").unwrap(); + + if let Some(filter) = &func.filter { + ...
2
48
1
500b916a6d689ee42f0837aaab98d2e657c9daf0
Dylan DPC
2026-03-10T11:01:33
Update time to 0.3.47 (#1057) ## PR Info Bumps the dependency to at least 0.3.47 as per the advisory [Advisory](https://rustsec.org/advisories/RUSTSEC-2026-0009.html) (even though this crate may not be using the function mentioned in the advisory, it is better to bump it to ensure that there is no chance of other de...
diff --git a/Cargo.toml b/Cargo.toml index c8760c2..4070938 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,7 +38,7 @@ pgvector = { version = "0.4", default-features = false, optional = true } rust_decimal = { version = "1", default-features = false, optional = true } bigdecimal = { version = "0.4", default-features ...
1
1
1
f3c0b8365e4378cf4de5c9426023e0d9a260494b
Chris Tsang
2026-03-10T10:54:32
Add ALTER TABLE DROP CONSTRAINT
diff --git a/src/backend/mysql/table.rs b/src/backend/mysql/table.rs index 5b8ef12..832c64b 100644 --- a/src/backend/mysql/table.rs +++ b/src/backend/mysql/table.rs @@ -217,6 +217,10 @@ impl TableBuilder for MysqlQueryBuilder { Mode::TableAlter, ); ...
4
48
0
b207049c8037696648905e65916528eee382fa7e
Alex Mazur
2026-03-10T10:32:51
1.0.0-rc.32 (#1060) Releasing sea-query and sea-query-rusqlite (only diff is taking latest rusqlite)
diff --git a/Cargo.toml b/Cargo.toml index 04f707c..c8760c2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = [".", "sea-query-derive"] [package] name = "sea-query" -version = "1.0.0-rc.31" +version = "1.0.0-rc.32" authors = [ "Chris Tsang <chris.2y3@outlook.com>", "Billy Chan <ccw.billy...
2
2
2
e42bf9ec9b29171375c7f303b8160287b8a4d85b
Chris Tsang
2026-02-26T10:19:44
Fix docs
diff --git a/src/backend/query_builder.rs b/src/backend/query_builder.rs index 0de3e44..b172dec 100644 --- a/src/backend/query_builder.rs +++ b/src/backend/query_builder.rs @@ -22,7 +22,7 @@ pub trait QueryBuilder: self.prepare_insert_statement_common(insert, sql); } - /// Common implementation of [`...
1
1
1
2b149e6e68cc4c30aeba14534404ecda0001431e
Alex Mazur
2026-02-26T10:08:13
Bump rusqlite to 0.38.0 (#1059) ## New Features - [x] Bumping rusqlite from 0.37.0 to 0.38.0 Here's the changelog for rusqlite: https://github.com/rusqlite/rusqlite/releases/tag/v0.38.0 There are a few notable breaking changes in rusqlite, the most interesting one (causes compilation to fail without fixes) is https:...
diff --git a/sea-query-rusqlite/Cargo.toml b/sea-query-rusqlite/Cargo.toml index 2e1ae30..129eafa 100644 --- a/sea-query-rusqlite/Cargo.toml +++ b/sea-query-rusqlite/Cargo.toml @@ -18,7 +18,7 @@ rust-version = "1.85.0" [dependencies] sea-query = { version = "1.0.0-rc.10", path = "..", default-features = false } -ru...
1
1
1
f974e99416af3f18d370bf2620ddb7ea4bb12e7b
Chris Tsang
2026-02-14T17:51:08
Upstream
diff --git a/src/backend/query_builder.rs b/src/backend/query_builder.rs index aa12f48..0de3e44 100644 --- a/src/backend/query_builder.rs +++ b/src/backend/query_builder.rs @@ -19,6 +19,11 @@ pub trait QueryBuilder: /// Translate [`InsertStatement`] into SQL statement. fn prepare_insert_statement(&self, ins...
1
5
0
6d30ad8747d73207dc51515631936d0836c27bfb
Chris Tsang
2026-02-11T13:40:43
Add example
diff --git a/src/query/select.rs b/src/query/select.rs index 008fc3f..668817a 100644 --- a/src/query/select.rs +++ b/src/query/select.rs @@ -908,6 +908,17 @@ impl SelectStatement { /// query.to_string(PostgresQueryBuilder), /// r#"SELECT "character" INTO UNLOGGED TABLE "character_copy" FROM "character...
1
11
0
af86b0df55f198182fb6512e5791d1c3fcaff178
Chris Tsang
2026-02-11T13:37:51
Small fix on SELECT INTO
diff --git a/src/backend/postgres/query.rs b/src/backend/postgres/query.rs index 1d92aef..54c0f42 100644 --- a/src/backend/postgres/query.rs +++ b/src/backend/postgres/query.rs @@ -89,8 +89,8 @@ impl QueryBuilder for PostgresQueryBuilder { sql.write_fmt(format_args!("{modifier} ")).unwrap(); } -...
1
2
2
94d7e90cf1b770b34dfa8dbf8b353baebca22f81
Chris Tsang
2026-02-08T19:29:48
1.0.0-rc.31
diff --git a/Cargo.toml b/Cargo.toml index 3b26cb7..04f707c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = [".", "sea-query-derive"] [package] name = "sea-query" -version = "1.0.0-rc.30" +version = "1.0.0-rc.31" authors = [ "Chris Tsang <chris.2y3@outlook.com>", "Billy Chan <ccw.billy...
1
1
1
11afe6845ef9663382092c74e47a30984c4bffb1
Chris Tsang
2026-02-08T18:02:51
Add Expr eq_any and ne_all
diff --git a/src/extension/postgres/expr.rs b/src/extension/postgres/expr.rs index 9a1fcaa..3f57e69 100644 --- a/src/extension/postgres/expr.rs +++ b/src/extension/postgres/expr.rs @@ -204,6 +204,68 @@ pub trait PgExpr: ExprTrait { { self.binary(PgBinOper::CastJsonField, right) } + + /// Equivalen...
2
66
0
3100ce95c06a2501d7ee06a9af1ebca6106f45de
Chris Tsang
2026-02-08T13:55:16
Add Value::array_type
diff --git a/src/value.rs b/src/value.rs index 337e5f1..d2bf49b 100644 --- a/src/value.rs +++ b/src/value.rs @@ -66,11 +66,15 @@ mod with_mac_address; #[cfg(feature = "postgres-array")] #[cfg_attr(docsrs, doc(cfg(feature = "postgres-array")))] -pub mod with_array; +pub mod postgres_array; #[cfg(feature = "postgr...
4
173
4
66d422749b94e9207e5156b2d783192d5682fca6
Chris Tsang
2026-02-08T10:23:33
Revert "Support &[String]" This reverts commit 5d8c2f91412bf7053eb300b658f796c15de6efd5.
diff --git a/src/value/with_array.rs b/src/value/with_array.rs index f242401..ef19897 100644 --- a/src/value/with_array.rs +++ b/src/value/with_array.rs @@ -17,7 +17,6 @@ impl NotU8 for u64 {} impl NotU8 for f32 {} impl NotU8 for f64 {} impl NotU8 for char {} -impl NotU8 for &String {} impl NotU8 for String {} imp...
1
0
20
5d8c2f91412bf7053eb300b658f796c15de6efd5
Chris Tsang
2026-02-08T01:23:19
Support &[String]
diff --git a/src/value/with_array.rs b/src/value/with_array.rs index ef19897..f242401 100644 --- a/src/value/with_array.rs +++ b/src/value/with_array.rs @@ -17,6 +17,7 @@ impl NotU8 for u64 {} impl NotU8 for f32 {} impl NotU8 for f64 {} impl NotU8 for char {} +impl NotU8 for &String {} impl NotU8 for String {} imp...
1
20
0
d3bcb0dfd1beeca2a62b73991830c82c83930532
Chris Tsang
2026-01-29T10:17:15
Fix GENERATED ALWAYS a space is missing
diff --git a/src/backend/table_builder.rs b/src/backend/table_builder.rs index 3f266ea..6cc55c3 100644 --- a/src/backend/table_builder.rs +++ b/src/backend/table_builder.rs @@ -266,7 +266,7 @@ pub trait TableBuilder: /// Translate the generated column into SQL statement fn prepare_generated_column(&self, r#...
2
31
1
00000608967a1ad186a5ccb0d608bda7730289aa
Chung
2026-01-28T23:48:45
clarify default behaviour on StringLen Clarified default length for var-char/binary in MySQL.
diff --git a/src/table/column.rs b/src/table/column.rs index 45b86cf..33199ec 100644 --- a/src/table/column.rs +++ b/src/table/column.rs @@ -119,7 +119,7 @@ pub enum ColumnType { LTree, } -/// Length for var-char/binary; default to 255 +/// Length for var-char/binary; default to 255 in MySQL if length is not sp...
1
1
1