diff --git a/Cargo.toml b/Cargo.toml index d989b2b..03d972c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,8 +14,8 @@ color-eyre = "0.6" # "display", # "from", #] } -#kxio = {path = "../kxio/"} -## kxio = "3.1" +# kxio = {path = "../kxio/"} +kxio = "3.2" #serde = { version = "1.0", features = ["derive"] } #serde_json = "1.0" tokio = { version = "1.41", features = ["full"] } diff --git a/src/lib.rs b/src/lib.rs index 8b13789..017a991 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1 +1,18 @@ +// +use std::path::PathBuf; +use kxio::{fs::FileSystem, net::Net}; + +#[derive(Clone)] +pub struct Ctx { + pub fs: FileSystem, + pub net: Net, +} +impl Default for Ctx { + fn default() -> Self { + Self { + fs: kxio::fs::new(PathBuf::default()), + net: kxio::net::new(), + } + } +}