setup project

This commit is contained in:
nora 2022-02-09 10:13:24 +01:00
parent 556e1252f2
commit b2e6e96698
6 changed files with 424 additions and 2 deletions

12
amqp_transport/Cargo.toml Normal file
View file

@ -0,0 +1,12 @@
[package]
name = "amqp_transport"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
anyhow = "1.0.53"
tokio = { version = "1.16.1", features = ["full"] }
tracing = "0.1.30"
tracing-subscriber = "0.3.8"

10
amqp_transport/src/lib.rs Normal file
View file

@ -0,0 +1,10 @@
use anyhow::{Context, Result};
use tokio::io::AsyncWriteExt;
pub async fn do_thing_i_guess() -> Result<()> {
tokio::io::stdout()
.write(b"hello async world lol\n")
.await
.context("failed to write")
.map(drop)
}