adjust crate structure

This commit is contained in:
Jörn-Michael Miehe 2025-06-25 16:34:22 +00:00
parent 78fb04403c
commit d1d7b55585
3 changed files with 16 additions and 12 deletions

3
.vscode/tasks.json vendored
View file

@ -32,6 +32,9 @@
"command": "clippy",
"args": [
"--fix",
"--lib",
"--bin",
"shrupl",
"--allow-dirty",
"--allow-staged",
"--",

View file

@ -1,11 +1,3 @@
mod appstate;
mod cachefile;
mod cli;
mod file;
mod impl_ureq;
mod output;
mod sharry;
use std::{
process,
sync::{
@ -18,10 +10,7 @@ use clap::Parser;
use console::{StyledObject, style};
use log::{debug, info, trace};
use appstate::AppState;
use cli::Cli;
use output::{Log, SHRUPL};
use sharry::{ClientError, Parameter};
use shrupl::{AppState, Cli, ClientError, Log, Parameter, SHRUPL, output};
fn main() {
let check_ctrlc = {

12
src/lib.rs Normal file
View file

@ -0,0 +1,12 @@
mod appstate;
mod cachefile;
mod cli;
mod file;
mod impl_ureq;
pub mod output;
mod sharry;
pub use appstate::AppState;
pub use cli::Cli;
pub use output::{Log, SHRUPL};
pub use sharry::{ClientError, Parameter};