watchexec/src/lib.rs

45 lines
1.2 KiB
Rust
Raw Normal View History

2019-10-27 10:54:44 +01:00
//! Watchexec: the library
//!
//! This is the library version of the CLI tool [watchexec]. The tool is
//! implemented with this library, but the purpose of the watchexec project is
//! to deliver the CLI tool, instead of focusing on the library interface first
//! and foremost. **For this reason, semver guarantees do _not_ apply to this
//! library.** Please use exact version matching, as this API may break even
2019-10-28 00:16:05 +01:00
//! between patch point releases. This policy may change in the future.
2019-10-27 11:29:58 +01:00
//!
//! [watchexec]: https://github.com/watchexec/watchexec
2019-10-27 10:54:44 +01:00
2021-04-10 18:32:58 +02:00
#![warn(clippy::option_unwrap_used, clippy::result_unwrap_used)]
2019-10-27 12:06:09 +01:00
2019-10-27 11:29:58 +01:00
#[macro_use]
extern crate derive_builder;
2017-04-25 01:31:50 +02:00
#[macro_use]
extern crate log;
#[macro_use]
extern crate lazy_static;
mod args;
2017-04-25 01:31:50 +02:00
pub mod cli;
pub mod config;
pub mod error;
2017-04-25 01:31:50 +02:00
mod gitignore;
mod ignore;
2017-04-25 01:31:50 +02:00
mod notification_filter;
pub mod pathop;
2017-04-25 01:31:50 +02:00
mod process;
pub mod run;
mod signal;
mod watcher;
2021-04-10 16:28:29 +02:00
pub use process::Shell;
2019-10-28 06:56:06 +01:00
pub use run::{run, watch, Handler};
#[deprecated(since = "1.15.0", note = "Config has moved to config::Config")]
pub type Args = config::Config;
2021-04-10 18:32:58 +02:00
#[deprecated(
since = "1.15.0",
note = "ConfigBuilder has moved to config::ConfigBuilder"
)]
pub type ArgsBuilder = config::ConfigBuilder;