-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trimmable Support #522
Trimmable Support #522
Conversation
@landerverhacklansweeper could you give this PR a test? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #522 +/- ##
==========================================
- Coverage 82.35% 81.55% -0.81%
==========================================
Files 51 51
Lines 2823 2824 +1
Branches 312 310 -2
==========================================
- Hits 2325 2303 -22
- Misses 383 420 +37
+ Partials 115 101 -14 ☔ View full report in Codecov by Sentry. |
@kayoub5 anyone else that might be able to review? I'm a bit out of touch with latest .NET language features, I'm not even sure what trimmable support means. |
Trimmable means that any unnecessary code that is not strictly needed for the code to run can be thrown out. This makes the application a lot smaller. To figure out which code is used, the trimmer needs to build a dependency tree. It figures out which code is used, and which is not. That's why reflection is a big no-no for trimming. Since It doesn't call code directly, that code might be thrown out. By marking a library as trimmable, I know that I can use SharpPcap, enable trimming, and be fine. <IsTrimmable>true</IsTrimmable> Thank you for your efforts |
I've tested this with my setup and can report that it works as it should. I've taken a look at the PR, and for me it looks good although I would still include Many thanks for your time and effort. |
Resolves #517