1#![doc(html_favicon_url = "https://raw.githubusercontent.com/poem-web/poem/master/favicon.ico")]
4#![doc(html_logo_url = "https://raw.githubusercontent.com/poem-web/poem/master/logo.png")]
5#![forbid(unsafe_code)]
6#![deny(unreachable_pub)]
7#![cfg_attr(docsrs, feature(doc_cfg))]
8#![warn(missing_docs)]
9
10mod client;
11mod config;
12mod server;
13mod service_generator;
14mod utils;
15
16use std::path::Path;
17
18pub use config::Config;
19
20pub fn compile_protos(
23 protos: &[impl AsRef<Path>],
24 includes: &[impl AsRef<Path>],
25) -> std::io::Result<()> {
26 Config::new().compile(protos, includes)
27}