bson-rust icon indicating copy to clipboard operation
bson-rust copied to clipboard

RUST-2312 Implement default trait for cstring

Open norskovsen opened this issue 1 month ago • 2 comments

norskovsen avatar Dec 08 '25 10:12 norskovsen

Thanks for the PR! While we're here, would you mind adding a Default impl for the owned CString type as well? It can also construct an empty string.

Yes it is done

norskovsen avatar Dec 12 '25 10:12 norskovsen

(Isabel's on vacation, so I'm keeping this moving)

Thanks again! Once the tests pass I'll merge this in.

abr-egn avatar Dec 15 '25 11:12 abr-egn

I think that CString::new() should also be implemented, see https://github.com/mongodb/bson-rust/pull/626

tyilo avatar Dec 18 '25 15:12 tyilo

I think that CString::new() should also be implemented, see #626

This has also been added based on your changes

norskovsen avatar Dec 19 '25 06:12 norskovsen