about summary refs log tree commit diff
path: root/library/core/src/ffi/c_str.rs
AgeCommit message (Expand)AuthorLines
2025-09-24core: simplify `CStr::default()`joboet-3/+1
2025-09-01Constify conversion traitsltdk-1/+2
2025-08-06replace version placeholderBoxy-1/+1
2025-07-02remove deprecated from core::ffi::c_strMarijn Schouten-17/+9
2025-06-24Corrected spelling mistake in c_str.rsMetaNova-1/+1
2025-06-24Rollup merge of #137268 - bjoernager:c-string-eq-c-str, r=AmanieuGuillaume Gomez-0/+14
2025-06-12Delegate `<CStr as Debug>` to `ByteStr`Tamir Duberstein-1/+3
2025-05-31terminology: allocated object → allocationRalf Jung-1/+1
2025-05-29Rollup merge of #139994 - tamird:cstr-display, r=AmanieuJacob Pratt-0/+24
2025-05-24Use C-string literals to reduce boilerplateTamir Duberstein-34/+7
2025-05-24add CStr::displayTamir Duberstein-0/+24
2025-04-26Update example to use `CStr::to_string_lossy`Jake Goulding-2/+3
2025-04-18Remove errant doc comment linesTamir Duberstein-1/+0
2025-02-26Rollup merge of #136187 - hkBst:patch-27, r=workingjubileeLeón Orell Valerian Liehr-36/+37
2025-02-21Do not use CString in the examples of CStr.Marijn Schouten-36/+37
2025-02-20Implement 'PartialEq<{&Self, CString, Cow<Self>}>' for 'CStr'; Implement 'Par...Gabriel Bjørnager Jensen-0/+14
2025-02-09Mark extern blocks as unsafeMichael Goulet-1/+1
2025-01-11Rename `pos` to `position`Yuri Astrakhan-6/+6
2025-01-11Convert `struct FromBytesWithNulError` into enumYuri Astrakhan-31/+19
2024-11-27update cfgsBoxy-6/+2
2024-11-20Rollup merge of #132732 - gavincrawford:as_ptr_attribute, r=UrgauJacob Pratt-0/+1
2024-11-11Tag relevant functions with #[rustc_as_ptr] attributegavincrawford-0/+1
2024-11-05add const_eval_select macro to reduce redundancyRalf Jung-51/+48
2024-11-03Rename the FIXMEs, remove a few that dont matter anymoreMichael Goulet-1/+1
2024-10-28New lint: `dangling_pointers_from_temporaries`Pavel Grigorenko-1/+3
2024-10-25Re-do recursive const stability checksRalf Jung-3/+3
2024-09-25Use `&raw` in the standard libraryJosh Stone-2/+2
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-1/+1
2024-08-06Add a special case for CStr/CString in the improper_ctypes lintFlying-Toast-0/+1
2024-07-30Auto merge of #128083 - Mark-Simulacrum:bump-bootstrap, r=albertlarsan68bors-3/+3
2024-07-29Reformat `use` declarations.Nicholas Nethercote-7/+2
2024-07-28Update CURRENT_RUSTC_VERSIONMark Rousskov-3/+3
2024-07-25CStr: derive PartialEq, Eq; add test for OrdPavel Grigorenko-11/+4
2024-07-22Fix some `#[cfg_attr(not(doc), repr(..))]`Pavel Grigorenko-1/+1
2024-07-16Rollup merge of #127444 - Sky9x:cstr-bytes-iter, r=dtolnayTrevor Gross-2/+15
2024-07-15`impl Send + Sync` and override `count` for the `CStr::bytes` iteratorSky-2/+15
2024-07-12Rename the internal `const_strlen` to just `strlen`Trevor Gross-2/+2
2024-07-11Add instability attribute on private const_strlen functionDavid Tolnay-0/+1
2024-07-06Stabilize const_cstr_from_ptr (CStr::from_ptr, CStr::count_bytes)David Tolnay-4/+4
2024-06-21update intrinsic const param countingDeadbeef-1/+2
2024-06-21Remove `feature(effects)` from the standard libraryDeadbeef-1/+3
2024-05-03Rollup merge of #124593 - GKFX:cstr-literals-in-api-docs, r=workingjubileeMatthias Krüger-13/+24
2024-05-02Update based on reviewGeorge Bateman-7/+7
2024-05-01Replace version placeholders for 1.79Mark Rousskov-1/+1
2024-05-01Describe and use CStr literals in CStr and CString docsGeorge Bateman-12/+23
2024-04-08Stabilize `cstr_count_bytes`Trevor Gross-3/+1
2024-03-20step cfgsMark Rousskov-12/+2
2024-03-12Reduce unsafe code, use more NonNull APIs per @cuviper reviewltdk-9/+11
2024-03-10Add CStr::bytes iteratorltdk-0/+89
2024-03-10Rollup merge of #112136 - clarfonthey:ffi-c_str, r=cuviperMatthias Krüger-5/+12