Codebase list rust-stfu8 / b3529c0
Adding chrono-humanize ed neville 3 years ago
7 changed file(s) with 154 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 rust-chrono-humanize (0.1.1-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
1
2 * Package chrono-humanize 0.1.1 from crates.io using debcargo 2.4.3
3
4 -- Ed Neville <ed-debian@s5h.net> Wed, 13 Jan 2021 16:09:54 +0000
0 Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
1 Upstream-Name: chrono-humanize
2 Upstream-Contact: Cyril Plisko <cyril.plisko@mountall.com>
3 Source: https://gitlab.com/imp/chrono-humanize-rs.git
4
5 Files: *
6 Copyright: 2016-2020 Cyril Plisko <cyril.plisko@mountall.com>
7 License: MIT or Apache-2.0
8
9 Files: ./LICENSE-APACHE
10 Copyright: 2016 Cyril Plisko
11 License: Apache-2.0
12
13 Files: ./LICENSE-MIT
14 Copyright: 2016 Cyril Plisko
15 License: MIT
16
17 Files: debian/*
18 Copyright:
19 2021 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
20 2021 Ed Neville <ed-debian@s5h.net>
21 License: MIT or Apache-2.0
22
23 License: Apache-2.0
24 Debian systems provide the Apache 2.0 license in
25 /usr/share/common-licenses/Apache-2.0
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 Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
1 Upstream-Name: chrono-humanize
2 Upstream-Contact: Cyril Plisko <cyril.plisko@mountall.com>
3 Source: https://gitlab.com/imp/chrono-humanize-rs.git
4
5 Files: *
6 Copyright: FIXME (overlay) UNKNOWN-YEARS Cyril Plisko <cyril.plisko@mountall.com>
7 License: MIT or Apache-2.0
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-APACHE
15 Copyright: 2016 Cyril Plisko
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: ./LICENSE-MIT
22 Copyright: 2016 Cyril Plisko
23 License: UNKNOWN-LICENSE; FIXME (overlay)
24 Comment:
25 FIXME (overlay): These notices are extracted from files. Please review them
26 before uploading to the archive.
27
28 Files: debian/*
29 Copyright:
30 2021 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
31 2021 Ed Neville <ed-debian@s5h.net>
32 License: MIT or Apache-2.0
33
34 License: Apache-2.0
35 Debian systems provide the Apache 2.0 license in
36 /usr/share/common-licenses/Apache-2.0
37
38 License: MIT
39 Permission is hereby granted, free of charge, to any person obtaining a copy
40 of this software and associated documentation files (the "Software"), to deal
41 in the Software without restriction, including without limitation the rights
42 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
43 copies of the Software, and to permit persons to whom the Software is
44 furnished to do so, subject to the following conditions:
45 .
46 The above copyright notice and this permission notice shall be included in all
47 copies or substantial portions of the Software.
48 .
49 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
50 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
51 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
52 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
53 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
54 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
55 SOFTWARE.
0 overlay = "."
1 uploaders = ["Ed Neville <ed-debian@s5h.net>"]
0 Description: remove benchmark
1 #![feature(test)] breaks test
2 Author: Ed Neville <ed-debian@s5h.net>
3 Origin: other
4 Forwarded: not-needed
5 Last-Update: 2021-01-13
6 ---
7 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
8 Index: chrono-humanize/benches/benches.rs
9 ===================================================================
10 --- chrono-humanize.orig/benches/benches.rs
11 +++ /dev/null
12 @@ -1,32 +0,0 @@
13 -#![feature(test)]
14 -extern crate chrono;
15 -extern crate chrono_humanize;
16 -extern crate test;
17 -
18 -#[cfg(test)]
19 -mod tests {
20 - use chrono_humanize::HumanTime;
21 - use chrono::Duration;
22 - use test::Bencher;
23 -
24 - #[bench]
25 - fn one_week(b: &mut Bencher) {
26 - let ht = HumanTime::from(Duration::weeks(1));
27 - b.iter(|| format!("{}", ht));
28 - }
29 -
30 - #[bench]
31 - fn two_weeks(b: &mut Bencher) {
32 - let ht = HumanTime::from(Duration::weeks(2));
33 - b.iter(|| format!("{}", ht));
34 - }
35 -
36 - #[bench]
37 - fn long_string(b: &mut Bencher) {
38 - let ht = HumanTime::from(Duration::seconds(1_234_567_890));
39 - b.iter(|| format!("{:#}", ht));
40 - // let english = format!("{:#}", ht);
41 - // assert_eq!("in 39 years, 1 month, 3 weeks, 2 days, 23 hours, 31 minutes and 30 seconds",
42 - // english);
43 - }
44 -}