mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-17 05:05:03 +01:00
setup project
This commit is contained in:
parent
556e1252f2
commit
b2e6e96698
6 changed files with 424 additions and 2 deletions
12
amqp_transport/Cargo.toml
Normal file
12
amqp_transport/Cargo.toml
Normal 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
10
amqp_transport/src/lib.rs
Normal 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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue