Skip to content

Commit 53aafc3

Browse files
committed
Inline md5 impl
rust-crypto doesn't compile for all platforms, and this is the only piece we need.
1 parent 0883918 commit 53aafc3

File tree

4 files changed

+558
-4
lines changed

4 files changed

+558
-4
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ byteorder = "0.3"
2929
debug-builders = "0.1"
3030
log = "0.3"
3131
phf = "0.7"
32-
rust-crypto = "0.2"
3332
rustc-serialize = "0.3"
3433
chrono = { version = "0.2.14", optional = true }
3534
openssl = { version = "0.6", optional = true }

THIRD_PARTY

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,34 @@ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
5757
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
5858
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
5959
DEALINGS IN THE SOFTWARE.
60+
61+
-------------------------------------------------------------------------------
62+
63+
* src/md5.rs has been copied from rust-crypto
64+
65+
Copyright (c) 2006-2009 Graydon Hoare
66+
Copyright (c) 2009-2013 Mozilla Foundation
67+
68+
Permission is hereby granted, free of charge, to any
69+
person obtaining a copy of this software and associated
70+
documentation files (the "Software"), to deal in the
71+
Software without restriction, including without
72+
limitation the rights to use, copy, modify, merge,
73+
publish, distribute, sublicense, and/or sell copies of
74+
the Software, and to permit persons to whom the Software
75+
is furnished to do so, subject to the following
76+
conditions:
77+
78+
The above copyright notice and this permission notice
79+
shall be included in all copies or substantial portions
80+
of the Software.
81+
82+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
83+
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
84+
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
85+
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
86+
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
87+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
88+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
89+
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
90+
DEALINGS IN THE SOFTWARE.

src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646

4747
extern crate bufstream;
4848
extern crate byteorder;
49-
extern crate crypto;
5049
#[macro_use]
5150
extern crate log;
5251
extern crate phf;
@@ -56,8 +55,7 @@ extern crate unix_socket;
5655
extern crate debug_builders;
5756

5857
use bufstream::BufStream;
59-
use crypto::digest::Digest;
60-
use crypto::md5::Md5;
58+
use md5::Md5;
6159
use debug_builders::DebugStruct;
6260
use std::ascii::AsciiExt;
6361
use std::borrow::ToOwned;
@@ -94,6 +92,7 @@ mod url;
9492
mod util;
9593
pub mod types;
9694
pub mod rows;
95+
mod md5;
9796

9897
const TYPEINFO_QUERY: &'static str = "t";
9998

0 commit comments

Comments
 (0)