wasmtime-wit-bindgen 20.0.2
“Internal `*.wit` support for the `wasmtime` crate's macros”
Contains an unbounded block loopConstructs a Rust child-process command
SHA-25601840c0cfbbb01664c796e3f4edbd656e58f9d76db083c7e7c6bba59ea657a96
MaleculeH₂(DbPo₂)Md(Pa)
Evidence
1use crate::rust::{to_rust_ident, to_rust_upper_camel_case, RustGenerator, TypeMode};
2use crate::types::{TypeInfo, Types};
3use anyhow::{bail, Context};
4use heck::*;
5use indexmap::{IndexMap, IndexSet};
6use std::collections::{BTreeMap, HashMap, HashSet};
7use std::fmt::Write as _;
8use std::io::{Read, Write};
9use std::mem;
10use std::process::{Command, Stdio};
11use wit_parser::*;
12
13macro_rules! uwrite {
⋯6 lines
518:34…
519
520 let (async_, async__, send, await_) = if self.opts.async_.maybe_async() {
521 ("async", "_async", ":Send", ".await")
522 } else {
523 ("", "", "", "")
⋯5 lines
612:44… rc);
613 if self.opts.rustfmt {
614 let mut child = Command::new("rustfmt")
615 .arg("--edition=2018")
616 .stdin(Stdio::piped())
617 .stdout(Stdio::piped())
618 …
622:4… .take()
623 .unwrap()
624 .write_all(src.as_bytes())
625 .unwrap();
626 src.as_mut_string().truncate(0);
627 child
628 .stdou …
721:24… Name { prefix, item };
722 let mut projection = Vec::new();
723 loop {
724 let lookup = name.lookup_key(resolve);
725 if let Some(renamed) = self.opts.with.get(&lookup) {
726 …
No evidence locations were recorded for this file. Raw result