Benign crates 12,603,575 installs download unavailable

amq-protocol 7.2.0

Legitimate AMQP protocol crate

“AMQP specifications”

Cargo build script (build.rs)Rust test marker or harness
SHA-256f051d4d77904272e9be7e292607378dc9900d15b8d314bfd3ed4b82fdd84f125

Evidence

Prompt, task, or instruction query parameter generated.rs · lines 39–44
39:28… arnock-Jones
40
41b3cb053f15e7b98808c0ccc67f23cb3e amqp_xml0-8.pdf
42http://twiststandards.org/?option=com_docman&task=cat_view&gid=28&Itemid=90
438444db91e2949dbecfb2585e9eef6d64 amqp-xml-doc0-9.pdf
44https://jira.amqp.org/confluence/download/attachments/72 …
References Cargo OUT_DIR environment value build.rs · lines 1–24
⋯8 lines
9#[cfg(feature = "codegen-internal")]
10fn codegen() {
11 use amq_protocol_codegen::{CodeGenerator, HandlebarsAMQPExtension};
12
13 let out_dir = std::env::var("AMQ_PROTOCOL_CODEGEN_DIR")
14 .or(std::env::var("OUT_DIR"))
15 .expect("OUT_DIR is not defined");
16 let out_file =
17 std::env::var("AMQ_PROTOCOL_CODEGEN_FILE").unwrap_or_else(|_| "protocol".to_string());
⋯7 lines
References Cargo OUT_DIR environment value protocol.rs · lines 12–23
12:41… io::Write};
13
14#[cfg(feature = "codegen")]
15include!(concat!(env!("OUT_DIR"), "/protocol.rs"));
16#[cfg(not(feature = "codegen"))]
17include!("generated.rs");
⋯6 lines
Rust test marker or harness protocol.rs · lines 124–139
124:16… or: AMQPHardError) -> Self {
125 Self::Hard(error)
126 }
127}
128
129#[cfg(test)]
130mod test {
131 use super::*;
132
133 #[test]
134 fn test_description() {
135 assert_eq!(
⋯4 lines
imports super::* parsing.rs · lines 132–147
⋯4 lines
136}
137
138#[cfg(test)]
139mod test {
140 use super::*;
141
142 #[test]
143 fn test_protocol_header() {
144 assert_eq!(
145 parse_frame(&[b'A', b'M', b'Q', b'P', 0, 0, 9, 1][..]),
146 Ok((
147 …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.