Skip to content

Cargo: update libc - #55

Closed
huajingyun01 wants to merge 1 commit into
nik012003:masterfrom
huajingyun01:master
Closed

huajingyun01 wants to merge 1 commit into
nik012003:masterfrom
huajingyun01:master

Conversation

@huajingyun01

Copy link
Copy Markdown

Hello maintainers, I'd like to update to the latest version 0.2.189 to fix build errors on the loongarch64 platform, such as the following error:

error[E0425]: cannot find type `c_char` in the crate root
    --> /home/alpine/aports/community/ripdrag/tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.153/src/unix/mod.rs:52:29
     |
   6 | pub type c_schar = i8;
     | ---------------------- similarly named type alias `c_schar` defined here
...
  52 |         pub gr_name: *mut ::c_char,
     |                             ^^^^^^
     |
help: a type alias with a similar name exists
     |
  52 |         pub gr_name: *mut ::c_schar,
     |                               +
help: consider importing this type alias
     |
1553 +         use ffi::c_char;
     |
help: if you import `c_char`, refer to it directly
     |
  52 -         pub gr_name: *mut ::c_char,
  52 +         pub gr_name: *mut c_char,
     |

libc has been supported since version 0.2.154, rust-lang/libc#3606

Could you help with this? Thank you very much!

@nik012003 nik012003 closed this in b14b049 Sep 16, 2026
@nik012003

Copy link
Copy Markdown
Owner

Thanks, I took it as an opportunity to bump all the deps. I will release it in a few minutes one I've tested the builds

@huajingyun01

Copy link
Copy Markdown
Author

Thanks, I took it as an opportunity to bump all the deps. I will release it in a few minutes one I've tested the builds

Thanks for taking care of it and for bumping all the deps! Much appreciated. I'll keep an eye out for the release.

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.

2 participants