BINSHENG

Results comments of BINSHENG

Thanks for the suggestion! Boreal is definitely relevant, and we have considered it as a possible implementation reference or foundation.To clarify, though, my question is slightly different: I’m not mainly...

iconv.rs // encoding_rs = "0.8" ``` use types::*; use encoding_rs::CoderResult; pub fn iconv( cd: &mut IconvHandle, input: &mut &[u8], output: &mut &mut [u8], ) -> Result { let mut replacements...

iconv_open.rs ``` use types::*; pub fn iconv_open(to: &str, from: &str) -> Result { let from_type = find_charmap(from).ok_or(IconvError::InvalidEncoding)?; let to_type = find_charmap(to).ok_or(IconvError::InvalidEncoding)?; let decoder = resolve_encoding(from_type).map(|enc| { if from_type == ENCODING_UTF_8...

iconv_close.rs ``` use types::*; pub fn iconv_close(cd: IconvHandle) -> Result { if cd.is_stateful { drop(cd); } Ok(()) } ```

types.rs ``` use encoding_rs::{Decoder, Encoder, Encoding}; pub struct IconvHandle { pub from_type: u8, pub to_type: u8, pub decoder: Option, pub encoder: Option, pub state: u32, pub bom_written: bool, pub is_stateful:...

Thanks for the clarification. I understand that 'libc' crate itself does not intend to provide alternative implementations of system libraries. I would like to add some context from my testing:...

Thanks for the clarification. That makes sense. To clarify our proposal: we are not suggesting changing the scope of 'rust-lang/libc', nor are we asking this project to replace or reimplement...

We have been working on a c2rust-based toolchain whose goal is to replace selected extern "C" ABI/FFI entry points with Rust-native implementations while preserving the original behavior and ABI compatibility....