capstone - new upstream release.
Peter Michael Green
1 year, 8 months ago
0 | rust-capstone (0.11.0-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium | |
1 | ||
2 | * Team upload. | |
3 | * Package capstone 0.11.0 from crates.io using debcargo 2.5.0 | |
4 | * Remove overridden control files. | |
5 | * Set collapse_features = true | |
6 | ||
7 | -- Peter Michael Green <plugwash@debian.org> Sat, 20 Aug 2022 19:57:39 +0000 | |
8 | ||
0 | 9 | rust-capstone (0.7.0-3) unstable; urgency=medium |
1 | 10 | |
2 | 11 | * Package capstone 0.7.0 from crates.io using debcargo 2.4.4 |
0 | Source: rust-capstone | |
1 | Section: rust | |
2 | Priority: optional | |
3 | Build-Depends: debhelper (>= 12), | |
4 | dh-cargo (>= 24), | |
5 | cargo:native <!nocheck>, | |
6 | rustc:native <!nocheck>, | |
7 | libstd-rust-dev <!nocheck>, | |
8 | librust-capstone-sys-0.11+default-dev <!nocheck>, | |
9 | librust-libc-0.2-dev <!nocheck> | |
10 | Maintainer: Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> | |
11 | Uploaders: | |
12 | Michael R. Crusoe <crusoe@debian.org> | |
13 | Standards-Version: 4.5.1 | |
14 | Vcs-Git: https://salsa.debian.org/rust-team/debcargo-conf.git [src/capstone] | |
15 | Vcs-Browser: https://salsa.debian.org/rust-team/debcargo-conf/tree/master/src/capstone | |
16 | Rules-Requires-Root: no | |
17 | ||
18 | Package: librust-capstone-dev | |
19 | Architecture: amd64 arm64 | |
20 | Multi-Arch: same | |
21 | Depends: | |
22 | ${misc:Depends}, | |
23 | librust-capstone-sys-0.11+default-dev, | |
24 | librust-libc-0.2-dev | |
25 | Provides: | |
26 | librust-capstone+default-dev (= ${binary:Version}), | |
27 | librust-capstone-0-dev (= ${binary:Version}), | |
28 | librust-capstone-0+default-dev (= ${binary:Version}), | |
29 | librust-capstone-0.7-dev (= ${binary:Version}), | |
30 | librust-capstone-0.7+default-dev (= ${binary:Version}), | |
31 | librust-capstone-0.7.0-dev (= ${binary:Version}), | |
32 | librust-capstone-0.7.0+default-dev (= ${binary:Version}) | |
33 | Description: Bindings to capstone disassembly engine - rust source code | |
34 | Bindings to the capstone library (https://www.capstone-engine.org/) | |
35 | disassembly framework. |
1 | 1 | Section: rust |
2 | 2 | Priority: optional |
3 | 3 | Build-Depends: debhelper (>= 12), |
4 | dh-cargo (>= 24), | |
4 | dh-cargo (>= 25), | |
5 | 5 | cargo:native <!nocheck>, |
6 | 6 | rustc:native <!nocheck>, |
7 | 7 | libstd-rust-dev <!nocheck>, |
8 | librust-capstone-sys-0.11+default-dev <!nocheck>, | |
8 | librust-capstone-sys-0.15+default-dev <!nocheck>, | |
9 | 9 | librust-libc-0.2-dev <!nocheck> |
10 | 10 | Maintainer: Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> |
11 | 11 | Uploaders: |
15 | 15 | Vcs-Browser: https://salsa.debian.org/rust-team/debcargo-conf/tree/master/src/capstone |
16 | 16 | Rules-Requires-Root: no |
17 | 17 | |
18 | # FIXME (packages."(name)".section) debcargo auto-generated summaries are very long, consider overriding | |
19 | ||
20 | 18 | Package: librust-capstone-dev |
21 | 19 | Architecture: any |
22 | 20 | Multi-Arch: same |
23 | 21 | Depends: |
24 | 22 | ${misc:Depends}, |
25 | librust-capstone-sys-0.11+default-dev, | |
23 | librust-capstone-sys-0.15+default-dev, | |
26 | 24 | librust-libc-0.2-dev |
27 | 25 | Suggests: |
28 | 26 | librust-capstone+use-bindgen-dev (= ${binary:Version}) |
30 | 28 | librust-capstone+default-dev (= ${binary:Version}), |
31 | 29 | librust-capstone-0-dev (= ${binary:Version}), |
32 | 30 | librust-capstone-0+default-dev (= ${binary:Version}), |
33 | librust-capstone-0.7-dev (= ${binary:Version}), | |
34 | librust-capstone-0.7+default-dev (= ${binary:Version}), | |
35 | librust-capstone-0.7.0-dev (= ${binary:Version}), | |
36 | librust-capstone-0.7.0+default-dev (= ${binary:Version}) | |
31 | librust-capstone-0.11-dev (= ${binary:Version}), | |
32 | librust-capstone-0.11+default-dev (= ${binary:Version}), | |
33 | librust-capstone-0.11.0-dev (= ${binary:Version}), | |
34 | librust-capstone-0.11.0+default-dev (= ${binary:Version}) | |
37 | 35 | Description: Bindings to capstone disassembly engine - rust source code |
38 | 36 | Bindings to the capstone library (https://www.capstone-engine.org/) |
39 | 37 | disassembly framework. |
44 | 42 | Depends: |
45 | 43 | ${misc:Depends}, |
46 | 44 | librust-capstone-dev (= ${binary:Version}), |
47 | librust-capstone-sys-0.11+use-bindgen-dev | |
45 | librust-capstone-sys-0.15+use-bindgen-dev | |
48 | 46 | Provides: |
49 | 47 | librust-capstone-0+use-bindgen-dev (= ${binary:Version}), |
50 | librust-capstone-0.7+use-bindgen-dev (= ${binary:Version}), | |
51 | librust-capstone-0.7.0+use-bindgen-dev (= ${binary:Version}) | |
48 | librust-capstone-0.11+use-bindgen-dev (= ${binary:Version}), | |
49 | librust-capstone-0.11.0+use-bindgen-dev (= ${binary:Version}) | |
52 | 50 | Description: Bindings to capstone disassembly engine - feature use_bindgen |
53 | 51 | This metapackage enables feature "use_bindgen" for the Rust capstone crate, by |
54 | 52 | pulling in any additional dependencies needed by that feature. |
9 | 9 | Copyright: |
10 | 10 | 2015-2017 Richo Healey <richo@psych0tik.net> |
11 | 11 | 2016-2017 m4b <m4b.github.io@gmail.com> |
12 | 2017-2020 Travis Finkenauer <tmfinken@gmail.com> | |
12 | 2017-2022 Travis Finkenauer <tmfinken@gmail.com> | |
13 | 13 | 2013, COSEINC |
14 | 14 | License: MIT and BSD-3-clause |
15 | 15 | Comment: |
23 | 23 | |
24 | 24 | Files: debian/* |
25 | 25 | Copyright: |
26 | 2020-2021 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> | |
26 | 2020-2022 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> | |
27 | 27 | 2020-2021 Michael R. Crusoe <crusoe@debian.org> |
28 | 28 | License: MIT |
29 | 29 |
33 | 33 | |
34 | 34 | Files: debian/* |
35 | 35 | Copyright: |
36 | 2021 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> | |
37 | 2021 Michael R. Crusoe <crusoe@debian.org> | |
36 | 2021-2022 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> | |
37 | 2021-2022 Michael R. Crusoe <crusoe@debian.org> | |
38 | 38 | License: MIT |
39 | 39 | |
40 | 40 | License: MIT |
1 | 1 | uploaders = ["Michael R. Crusoe <crusoe@debian.org>"] |
2 | 2 | whitelist = ["examples/test.c"] |
3 | 3 | summary = "Bindings to capstone disassembly engine" |
4 | collapse_features = true | |
4 | 5 | |
5 | 6 | # examples/objdump.rs uses the unpackaged macho crate |
6 | 7 | excludes = ["examples/objdump.rs"] |
0 | --- capstone.orig/Cargo.toml | |
1 | +++ capstone/Cargo.toml | |
2 | @@ -21,17 +21,12 @@ | |
3 | license = "MIT" | |
4 | repository = "https://github.com/capstone-rust/capstone-rs" | |
5 | ||
6 | -[[bench]] | |
7 | -name = "my_benchmark" | |
8 | -harness = false | |
9 | [dependencies.capstone-sys] | |
10 | version = "0.11.0" | |
11 | ||
12 | [dependencies.libc] | |
13 | version = "0.2" | |
14 | default-features = false | |
15 | -[dev-dependencies.criterion] | |
16 | -version = "0.2" | |
17 | ||
18 | [dev-dependencies.macho] | |
19 | version = "0.*" | |
20 | --- capstone.orig/benches/my_benchmark.rs | |
21 | +++ /dev/null | |
22 | @@ -1,47 +0,0 @@ | |
23 | -extern crate capstone; | |
24 | -#[macro_use] | |
25 | -extern crate criterion; | |
26 | - | |
27 | -use capstone::prelude::*; | |
28 | -use capstone::{Arch, Endian, ExtraMode, Mode, NO_EXTRA_MODE}; | |
29 | -use criterion::{black_box, Criterion}; | |
30 | - | |
31 | -const X86_CODE: &[u8] = include_bytes!("../test-inputs/x86_64.bin_ls.bin"); | |
32 | - | |
33 | -/// Disassemble code and print information | |
34 | -fn arch_bench<T: Iterator<Item = ExtraMode>>( | |
35 | - code: &[u8], | |
36 | - arch: Arch, | |
37 | - mode: Mode, | |
38 | - extra_mode: T, | |
39 | - endian: Option<Endian>, | |
40 | - detail: bool, | |
41 | -) { | |
42 | - let mut cs = | |
43 | - Capstone::new_raw(arch, mode, extra_mode, endian).expect("failed to make capstone"); | |
44 | - cs.set_detail(detail).expect("failed to set detail"); | |
45 | - | |
46 | - let insns = cs.disasm_all(code, 0x1000).expect("failed to disassemble"); | |
47 | - for i in insns.iter() { | |
48 | - black_box(i); | |
49 | - } | |
50 | -} | |
51 | - | |
52 | -fn criterion_benchmark(c: &mut Criterion) { | |
53 | - macro_rules! bench { | |
54 | - ($name:expr; $( $args:expr ),+ ) => { | |
55 | - c.bench_function($name, |b| { | |
56 | - b.iter(|| arch_bench($( $args, )+ false)) | |
57 | - }); | |
58 | - | |
59 | - c.bench_function(concat!($name, "_detail"), move |b| { | |
60 | - b.iter(|| arch_bench($( $args, )+ true)) | |
61 | - }); | |
62 | - } | |
63 | - } | |
64 | - | |
65 | - bench!("disasm_x86"; X86_CODE, Arch::X86, Mode::Mode64, NO_EXTRA_MODE, None); | |
66 | -} | |
67 | - | |
68 | -criterion_group!(benches, criterion_benchmark); | |
69 | -criterion_main!(benches); |
0 | Index: capstone/Cargo.toml | |
1 | =================================================================== | |
0 | 2 | --- capstone.orig/Cargo.toml |
1 | 3 | +++ capstone/Cargo.toml |
2 | @@ -28,9 +28,6 @@ | |
3 | version = "0.2" | |
4 | default-features = false | |
4 | @@ -38,9 +38,6 @@ default-features = false | |
5 | [dev-dependencies.criterion] | |
6 | version = "0.3" | |
5 | 7 | |
6 | 8 | -[dev-dependencies.macho] |
7 | 9 | -version = "0.*" |
0 | Test-Command: /usr/share/cargo/bin/cargo-auto-test capstone 0.7.0 --all-targets | |
1 | Features: test-name=librust-capstone-dev:default | |
2 | Depends: dh-cargo (>= 18), librust-rayon-1+default-dev (>= 1.1-~~), @ | |
3 | Restrictions: allow-stderr, skip-not-installable | |
4 | ||
5 | Test-Command: /usr/share/cargo/bin/cargo-auto-test capstone 0.7.0 --all-targets --no-default-features | |
6 | Features: test-name=librust-capstone-dev: | |
7 | Depends: dh-cargo (>= 18), librust-rayon-1+default-dev (>= 1.1-~~), @ | |
8 | Restrictions: allow-stderr, skip-not-installable |
0 | Test-Command: /usr/share/cargo/bin/cargo-auto-test capstone 0.7.0 --all-targets --all-features | |
0 | Test-Command: /usr/share/cargo/bin/cargo-auto-test capstone 0.11.0 --all-targets --all-features | |
1 | 1 | Features: test-name=rust-capstone:@ |
2 | Depends: dh-cargo (>= 18), librust-rayon-1+default-dev (>= 1.1-~~), @ | |
2 | Depends: dh-cargo (>= 18), librust-criterion-0.3+default-dev, librust-rayon-1+default-dev (>= 1.1-~~), @ | |
3 | 3 | Restrictions: allow-stderr, skip-not-installable |
4 | 4 | |
5 | Test-Command: /usr/share/cargo/bin/cargo-auto-test capstone 0.7.0 --all-targets | |
5 | Test-Command: /usr/share/cargo/bin/cargo-auto-test capstone 0.11.0 --all-targets | |
6 | 6 | Features: test-name=librust-capstone-dev:default |
7 | Depends: dh-cargo (>= 18), librust-rayon-1+default-dev (>= 1.1-~~), @ | |
7 | Depends: dh-cargo (>= 18), librust-criterion-0.3+default-dev, librust-rayon-1+default-dev (>= 1.1-~~), @ | |
8 | 8 | Restrictions: allow-stderr, skip-not-installable |
9 | 9 | |
10 | Test-Command: /usr/share/cargo/bin/cargo-auto-test capstone 0.7.0 --all-targets --no-default-features | |
10 | Test-Command: /usr/share/cargo/bin/cargo-auto-test capstone 0.11.0 --all-targets --no-default-features | |
11 | 11 | Features: test-name=librust-capstone-dev: |
12 | Depends: dh-cargo (>= 18), librust-rayon-1+default-dev (>= 1.1-~~), @ | |
12 | Depends: dh-cargo (>= 18), librust-criterion-0.3+default-dev, librust-rayon-1+default-dev (>= 1.1-~~), @ | |
13 | 13 | Restrictions: allow-stderr, skip-not-installable |
14 | 14 | |
15 | Test-Command: /usr/share/cargo/bin/cargo-auto-test capstone 0.7.0 --all-targets --no-default-features --features use_bindgen | |
15 | Test-Command: /usr/share/cargo/bin/cargo-auto-test capstone 0.11.0 --all-targets --no-default-features --features use_bindgen | |
16 | 16 | Features: test-name=librust-capstone+use-bindgen-dev:use_bindgen |
17 | Depends: dh-cargo (>= 18), librust-rayon-1+default-dev (>= 1.1-~~), @ | |
17 | Depends: dh-cargo (>= 18), librust-criterion-0.3+default-dev, librust-rayon-1+default-dev (>= 1.1-~~), @ | |
18 | 18 | Restrictions: allow-stderr, skip-not-installable |