brk: use brk_cli::main as bin

This commit is contained in:
nym21
2025-03-07 00:00:27 +01:00
parent f1851b304c
commit f9f7172702
9 changed files with 152 additions and 167 deletions

View File

@@ -32,6 +32,7 @@ server = ["brk_server"]
vec = ["brk_vec"]
[dependencies]
brk_cli = { workspace = true }
brk_core = { workspace = true, optional = true }
brk_computer = { workspace = true, optional = true }
brk_exit = { workspace = true, optional = true }

View File

@@ -1,61 +1,41 @@
#![doc = include_str!(concat!("../", env!("CARGO_PKG_README")))]
#[cfg(feature = "core")]
pub mod core {
#[doc(inline)]
pub use brk_core::*;
}
#[doc(inline)]
pub use brk_core as core;
#[cfg(feature = "computer")]
pub mod computer {
#[doc(inline)]
pub use brk_computer::*;
}
#[doc(inline)]
pub use brk_computer as computer;
#[cfg(feature = "exit")]
pub mod exit {
#[doc(inline)]
pub use brk_exit::*;
}
#[doc(inline)]
pub use brk_exit as exit;
#[cfg(feature = "fetcher")]
pub mod fetcher {
#[doc(inline)]
pub use brk_fetcher::*;
}
#[doc(inline)]
pub use brk_fetcher as fetcher;
#[cfg(feature = "indexer")]
pub mod indexer {
#[doc(inline)]
pub use brk_indexer::*;
}
#[doc(inline)]
pub use brk_indexer as indexer;
#[cfg(feature = "logger")]
pub mod logger {
#[doc(inline)]
pub use brk_logger::*;
}
#[doc(inline)]
pub use brk_logger as logger;
#[cfg(feature = "parser")]
pub mod parser {
#[doc(inline)]
pub use brk_parser::*;
}
#[doc(inline)]
pub use brk_parser as parser;
#[cfg(feature = "query")]
pub mod query {
#[doc(inline)]
pub use brk_query::*;
}
#[doc(inline)]
pub use brk_query as query;
#[cfg(feature = "server")]
pub mod server {
#[doc(inline)]
pub use brk_server::*;
}
#[doc(inline)]
pub use brk_server as server;
#[cfg(feature = "vec")]
pub mod vec {
#[doc(inline)]
pub use brk_vec::*;
}
#[doc(inline)]
pub use brk_vec as vec;

1
crates/brk/src/main.rs Normal file
View File

@@ -0,0 +1 @@
use brk_cli::main;