ringdrop 0.4.3

P2P streamed file transfer with ring-based access control, built on iroh and bao protocols
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::path::Path;

use anyhow::{Context, Result};

use crate::config::Config;

pub fn run(data_dir: &Path) -> Result<()> {
    std::fs::create_dir_all(data_dir)?;
    let cfg = Config::load_or_create(data_dir).context("loading config")?;
    println!("{}", cfg.public_id());
    Ok(())
}