-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1165 from anonkey/allow-using-sozu-as-lib
feat: allow sozu to be used as lib by another package
- Loading branch information
Showing
5 changed files
with
101 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#[macro_use] | ||
extern crate sozu_lib as sozu; | ||
#[macro_use] | ||
extern crate sozu_command_lib; | ||
|
||
#[cfg(feature = "jemallocator")] | ||
#[global_allocator] | ||
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc; | ||
|
||
/// the arguments to the sozu command line | ||
pub mod cli; | ||
/// Receives orders from the CLI, transmits to workers | ||
// mod command; | ||
pub mod command; | ||
/// The command line logic | ||
pub mod ctl; | ||
/// Forking & restarting the main process using a more recent executable of Sōzu | ||
mod upgrade; | ||
/// Some unix helper functions | ||
pub mod util; | ||
/// Start and restart the worker UNIX processes | ||
mod worker; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters