Skip to content
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

Remove libc dependency. #1825

Closed
wants to merge 1 commit into from
Closed

Remove libc dependency. #1825

wants to merge 1 commit into from

Conversation

briansmith
Copy link
Owner

Use core::ffi instead of libc.

Use `core::ffi` instead of `libc`.
@briansmith briansmith self-assigned this Nov 26, 2023
Copy link

codecov bot commented Nov 26, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6c29bf6) 96.01% compared to head (be909da) 96.01%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1825   +/-   ##
=======================================
  Coverage   96.01%   96.01%           
=======================================
  Files         136      135    -1     
  Lines       20695    20677   -18     
  Branches      226      226           
=======================================
- Hits        19870    19853   -17     
  Misses        791      791           
+ Partials       34       33    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@briansmith briansmith marked this pull request as draft November 26, 2023 20:45
@@ -177,18 +177,12 @@ untrusted = { version = "0.9" }
[target.'cfg(any(target_arch = "x86",target_arch = "x86_64", all(any(target_arch = "aarch64", target_arch = "arm"), any(target_os = "android", target_os = "fuchsia", target_os = "linux", target_os = "windows"))))'.dependencies]
spin = { version = "0.9.8", default-features = false, features = ["once"] }

[target.'cfg(all(any(target_os = "android", target_os = "linux"), any(target_arch = "aarch64", target_arch = "arm")))'.dependencies]
libc = { version = "0.2.148", default-features = false }

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getauxval is provided by libc so if we're using getauxval we might as well keep using the libc crate so that it will handle the linking. However, if we keep using libc on these targets, we should limit the cfg to where we actually use libc::getauxval.

@briansmith
Copy link
Owner Author

Replaced by PR #1829.

@briansmith briansmith closed this May 27, 2024
@briansmith briansmith deleted the b/core-ffi branch May 27, 2024 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant