Commit Graph

8 Commits

Author SHA1 Message Date
cyqsimon
1dde635c4e Switch from anyhow to eyre 2024-12-16 11:18:37 +08:00
cyqsimon
862ede716c Remove redundant imports (#377)
* Remove redundant imports

- Now linted by clippy in 1.78
- See https://github.com/rust-lang/rust/pull/117772

* Write changelog

* Remove Windows-only redundant imports in build script
2024-03-01 10:55:38 +08:00
cyqsimon
dc0468c8e7 Generate completion & manpage (#357)
* Generate completion & manpage

* Write changelog
2024-01-28 04:21:06 +08:00
cyqsimon
0cf79b2fbd Cache npcap SDK when building on Windows (#281)
* Cache npcap SDK on Windows

* Call build function correctly

* Log when local cache of SDK is found

* Fix clippy warnings

* Log to STDERR
2023-08-31 20:07:16 +08:00
cyqsimon
42ae443bd3 Use variable capture syntax in format macros where possible 2023-08-25 20:16:33 +08:00
cyqsimon
bcb690563c Fix build script on Windows 2023-08-25 13:23:02 +08:00
cyqsimon
7eaee4e6ba Fix deprecated use of panic! macro
This time, actually.
2023-08-25 10:52:20 +08:00
remgodow
0756939753 feat(platform): windows build and run support (#180)
* Remove connections vector from OpenSockets, use common OpenSockets implementation based on sysinfo and netstat2.

* Replace termion backend with crossterm, which works on Windows as well.

* More fixes for windows build.

* Remove tui default-features (termion), update unit tests for crossterm.

* Windows compilation fixes.

* Remove unused get_open_sockets implementations for linux and mac. Fix formatting.

* Add build.rs for windows to download and extract Packet.lib from npcap SDK.

* Resolve Cargo.lock after merging main.

* fix(tests): adjust snapshots new location of the dns resolution

* style(clippy): clippy

* style(clippy): remove dead code

* style(clippy): use write_all in build.rs

* style(clippy): remove unused import added by Intellij

* style(review): use String instead of str

* fix(build): run build.rs only once

* fix(regression): skip iface_is_up() filter only for Windows

* fix(review): restore per os implementation of get_open_sockets()

* fix(cargo): add missing os specific packages

* fix: conditional compilation of windows module

* fix: compilation errors

* fix: missing Protocol::from_str() implementation

* style(clippy): remove unused methods

Co-authored-by: Aram Drevekenin <aram@poor.dev>
2020-09-10 18:52:30 +02:00