-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* medschool * mirrord-agent * mirrord-analytics * mirrord-auth * Changed doc in mirrord-agent * mirrord * mirrord-config * mirrord-console * mirrord-intproxy * mirrord-kube * mirrord-layer * mirrord-macros * mirrord-operator * mirrord-progress * mirrord-protocol * mirrord-sip * mirrord-vpn * one global cfg for mirrord-agent * Remove obsolete linux cfgs * Moved silencers to the bottom of imports * Fmt * Bumped mirrord-protocol version * Changelog * silence reqwest in mirrord-auth * Fix doc * Moved libc to linux deps in mirrord-protocol * Fixed mirrord-layer deps * Apply suggestions from code review Co-authored-by: meowjesty <[email protected]> --------- Co-authored-by: meowjesty <[email protected]>
- Loading branch information
Showing
37 changed files
with
268 additions
and
324 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 @@ | ||
Added lint for unused crate dependencies. |
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 |
---|---|---|
@@ -1,52 +1,37 @@ | ||
#![cfg(target_os = "linux")] | ||
#![feature(hash_extract_if)] | ||
#![feature(let_chains)] | ||
#![feature(iterator_try_collect)] | ||
#![feature(try_blocks)] | ||
#![cfg_attr(target_os = "linux", feature(tcp_quickack))] | ||
#![feature(tcp_quickack)] | ||
#![warn(clippy::indexing_slicing)] | ||
#![deny(unused_crate_dependencies)] | ||
|
||
/// Silences `deny(unused_crate_dependencies)`. | ||
/// | ||
/// This dependency is only used in integration tests. | ||
#[cfg(test)] | ||
use test_bin as _; | ||
|
||
#[cfg(target_os = "linux")] | ||
mod cli; | ||
#[cfg(target_os = "linux")] | ||
mod client_connection; | ||
#[cfg(target_os = "linux")] | ||
mod container_handle; | ||
#[cfg(target_os = "linux")] | ||
mod dns; | ||
#[cfg(target_os = "linux")] | ||
mod entrypoint; | ||
#[cfg(target_os = "linux")] | ||
mod env; | ||
#[cfg(target_os = "linux")] | ||
mod error; | ||
#[cfg(target_os = "linux")] | ||
mod file; | ||
#[cfg(target_os = "linux")] | ||
mod http; | ||
#[cfg(target_os = "linux")] | ||
mod namespace; | ||
#[cfg(target_os = "linux")] | ||
mod outgoing; | ||
#[cfg(target_os = "linux")] | ||
mod runtime; | ||
#[cfg(target_os = "linux")] | ||
mod sniffer; | ||
#[cfg(target_os = "linux")] | ||
mod steal; | ||
#[cfg(target_os = "linux")] | ||
mod util; | ||
#[cfg(target_os = "linux")] | ||
mod vpn; | ||
#[cfg(target_os = "linux")] | ||
mod watched_task; | ||
|
||
#[cfg(target_os = "linux")] | ||
#[tokio::main(flavor = "current_thread")] | ||
async fn main() -> crate::error::Result<()> { | ||
crate::entrypoint::main().await | ||
} | ||
|
||
#[cfg(not(target_os = "linux"))] | ||
fn main() { | ||
panic!("This program is only supported on Linux"); | ||
} |
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
Oops, something went wrong.