2024-07-16 07:55:44 +08:00
|
|
|
use lws_client::LwsVfsIns;
|
|
|
|
#[tokio::main]
|
|
|
|
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
2024-07-23 08:51:57 +08:00
|
|
|
let lws_ins = match LwsVfsIns::new("config.json").await{
|
2024-07-16 07:55:44 +08:00
|
|
|
Ok(ins) => ins,
|
|
|
|
Err(e) => {
|
|
|
|
println!("Error creating lws server instance: {:?}", e);
|
|
|
|
return Err(e);
|
|
|
|
}
|
|
|
|
};
|
2024-07-17 08:49:01 +08:00
|
|
|
match lws_ins.hello(){
|
2024-07-16 07:55:44 +08:00
|
|
|
Err(e) => {
|
|
|
|
println!("lws client instance hello err {:?}", e);
|
|
|
|
return Err(e);
|
|
|
|
},
|
|
|
|
_ =>{},
|
|
|
|
}
|
|
|
|
LwsVfsIns::mount(lws_ins)
|
|
|
|
}
|