Codebase list rust-libslirp / 133da08
package of twox-hash for coreutils Sylvestre Ledru 3 years ago
6 changed file(s) with 124 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 rust-twox-hash (1.6.0-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
1
2 * Package twox-hash 1.6.0 from crates.io using debcargo 2.4.4-alpha.0
3
4 -- Sylvestre Ledru <sylvestre@debian.org> Sat, 03 Apr 2021 13:06:35 +0200
0 Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
1 Upstream-Name: twox-hash
2 Upstream-Contact: Jake Goulding <jake.goulding@gmail.com>
3 Source: https://github.com/shepmaster/twox-hash
4
5 Files: *
6 Copyright: 2015-2020 Jake Goulding <jake.goulding@gmail.com>
7 License: MIT
8
9 Files: debian/*
10 Copyright:
11 2021 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
12 2021 Sylvestre Ledru <sylvestre@debian.org>
13 License: MIT
14
15 License: MIT
16 Permission is hereby granted, free of charge, to any person obtaining a copy
17 of this software and associated documentation files (the "Software"), to deal
18 in the Software without restriction, including without limitation the rights
19 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20 copies of the Software, and to permit persons to whom the Software is
21 furnished to do so, subject to the following conditions:
22 .
23 The above copyright notice and this permission notice shall be included in all
24 copies or substantial portions of the Software.
25 .
26 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
32 SOFTWARE.
0 Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
1 Upstream-Name: twox-hash
2 Upstream-Contact: Jake Goulding <jake.goulding@gmail.com>
3 Source: https://github.com/shepmaster/twox-hash
4
5 Files: *
6 Copyright: FIXME (overlay) UNKNOWN-YEARS Jake Goulding <jake.goulding@gmail.com>
7 License: MIT
8 Comment:
9 FIXME (overlay): Since upstream copyright years are not available in
10 Cargo.toml, they were extracted from the upstream Git repository. This may not
11 be correct information so you should review and fix this before uploading to
12 the archive.
13
14 Files: ./LICENSE.txt
15 Copyright: 2015 Jake Goulding
16 License: UNKNOWN-LICENSE; FIXME (overlay)
17 Comment:
18 FIXME (overlay): These notices are extracted from files. Please review them
19 before uploading to the archive.
20
21 Files: debian/*
22 Copyright:
23 2021 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
24 2021 Sylvestre Ledru <sylvestre@debian.org>
25 License: MIT
26
27 License: MIT
28 Permission is hereby granted, free of charge, to any person obtaining a copy
29 of this software and associated documentation files (the "Software"), to deal
30 in the Software without restriction, including without limitation the rights
31 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
32 copies of the Software, and to permit persons to whom the Software is
33 furnished to do so, subject to the following conditions:
34 .
35 The above copyright notice and this permission notice shall be included in all
36 copies or substantial portions of the Software.
37 .
38 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
39 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
40 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
41 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
42 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
43 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
44 SOFTWARE.
0 overlay = "."
1 uploaders = ["Sylvestre Ledru <sylvestre@debian.org>"]
2
3 collapse_features = true
4 description = """
5 Rust implementation of the XXHash and XXH3 algorithms
6 """
0 Index: twox-hash/src/bin/hash_file.rs
1 ===================================================================
2 --- twox-hash.orig/src/bin/hash_file.rs
3 +++ /dev/null
4 @@ -1,28 +0,0 @@
5 -use std::env;
6 -use std::fs::File;
7 -use std::hash::Hasher;
8 -use std::io::{BufRead, BufReader};
9 -use twox_hash::XxHash64;
10 -
11 -fn main() {
12 - for arg in env::args().skip(1) {
13 - let f = File::open(&arg).unwrap();
14 - let mut f = BufReader::new(f);
15 -
16 - let mut hasher = XxHash64::with_seed(0);
17 -
18 - loop {
19 - let consumed = {
20 - let bytes = f.fill_buf().unwrap();
21 - if bytes.is_empty() {
22 - break;
23 - }
24 - hasher.write(bytes);
25 - bytes.len()
26 - };
27 - f.consume(consumed);
28 - }
29 -
30 - println!("{:16x} {}", hasher.finish(), arg);
31 - }
32 -}