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

doc: C<->Rust function table #15753

Closed
zmike opened this issue Jul 17, 2014 · 6 comments
Closed

doc: C<->Rust function table #15753

zmike opened this issue Jul 17, 2014 · 6 comments

Comments

@zmike
Copy link

zmike commented Jul 17, 2014

It would be great if there was some table for showing functional equivalencies for common functions, ie. strdup, strtol, getenv

@huonw huonw added the A-docs label Jul 17, 2014
@larsbergstrom
Copy link
Contributor

This is a common request for people coming from C to Rust. Frankly, I also have to dig through the Rust library sources every time I run into these things.

@lifthrasiir
Copy link
Contributor

I've tried a bit: https://gist.github.com/lifthrasiir/e021349c1d0cd55933a5 (incomplete). How do you think about this?

@steveklabnik
Copy link
Member

Given that Rust and C will have different usages, I think a more 'this is how you accomplish x in rust' makes more sense than function<->function

@larsbergstrom
Copy link
Contributor

@lifthrasiir This is absolutely awesome!

@steveklabnik In Servo, we do a lot of work that is either porting C code or we have people with a few decades of C experience and all of those functions hardwired into their brains, so this sort of map is super-useful. "this is how you modify strings in Rust" is not nearly as useful in those scenarios as "what did they decide to call strstr?"

@steveklabnik
Copy link
Member

Yeah, I mean, I'm not saying it's not useful at all.

@steveklabnik
Copy link
Member

I'm pulling a massive triage effort to get us ready for 1.0. As part of this, I'm moving stuff that's wishlist-like to the RFCs repo, as that's where major new things should get discussed/prioritized.

This issue has been moved to the RFCs repo: rust-lang/rfcs#779

bors added a commit to rust-lang-ci/rust that referenced this issue Nov 16, 2023
internal: Include toml files in the vfs

Closes rust-lang#15753
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

No branches or pull requests

5 participants