commit
584b96f8f4
@ -0,0 +1,16 @@ |
||||
name: CI |
||||
|
||||
on: |
||||
pull_request: |
||||
push: |
||||
branches: |
||||
- main |
||||
|
||||
jobs: |
||||
lint: |
||||
name: Rustfmt |
||||
runs-on: ubuntu-latest |
||||
steps: |
||||
- uses: actions/checkout@v3 |
||||
- name: Run rustfmt |
||||
run: cargo fmt --all --check |
@ -1,16 +1,28 @@ |
||||
#[cfg(not(target_os="windows"))] |
||||
mod sys; |
||||
#[cfg(any(target_os = "macos", target_os = "openbsd", target_os = "freebsd", target_os = "netbsd", target_os = "ios"))] |
||||
#[cfg(any(
|
||||
target_os = "macos", |
||||
target_os = "openbsd", |
||||
target_os = "freebsd", |
||||
target_os = "netbsd", |
||||
target_os = "ios" |
||||
))] |
||||
mod bpf; |
||||
#[cfg(any(target_os = "macos", target_os = "openbsd", target_os = "freebsd", target_os = "netbsd", target_os = "ios"))] |
||||
#[cfg(any(
|
||||
target_os = "macos", |
||||
target_os = "openbsd", |
||||
target_os = "freebsd", |
||||
target_os = "netbsd", |
||||
target_os = "ios" |
||||
))] |
||||
mod socket; |
||||
#[cfg(not(target_os = "windows"))] |
||||
mod sys; |
||||
|
||||
pub mod ip; |
||||
pub mod interface; |
||||
pub mod gateway; |
||||
pub mod interface; |
||||
pub mod ip; |
||||
|
||||
pub use interface::Interface; |
||||
pub use gateway::get_default_gateway; |
||||
pub use gateway::Gateway; |
||||
pub use interface::get_default_interface; |
||||
pub use interface::get_interfaces; |
||||
pub use gateway::Gateway; |
||||
pub use gateway::get_default_gateway; |
||||
pub use interface::Interface; |
||||
|
Loading…
Reference in new issue