2024-11-29 14:31:40 +00:00
|
|
|
//
|
|
|
|
use std::path::PathBuf;
|
2024-12-01 07:13:23 +00:00
|
|
|
|
2024-11-29 14:31:40 +00:00
|
|
|
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(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|