-
Notifications
You must be signed in to change notification settings - Fork 524
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
Lack of README.md
in rust
repository inner crates.
#474
Comments
Alternatively, such documentation could be written as a crate-level doc comment, which means it would show up in the rustc rustdoc output here. |
I'm going to move this over to the rustc-guide repository, though I personally think it may make sense to just close this. I think we've found historically that READMEs for libraries get out of date really easily, so inline (crate level, module level, per function, etc.) doc comments are better (and we're happy to have those via PRs, or in rustc-guide etc). |
Yep, I actually went around deleting readmes a while back. They were all extremely out of date. I think the info you are looking for should be largely in the documentation or in this guide. @spastorino perhaps we could start some sort of commenting initiative that seeks to add comments to the source? |
@mark-i-m yeah, I like the idea and there are a lot of things to do. It's important to have them clear and prioritized. I think we should develop a good high level plan on what we want to accomplish. Maybe this is a topic for one of the next meetings?. |
If help would be needed, feel free to involve me :) |
maybe jump on Zulip https://rust-lang.zulipchat.com/#narrow/stream/196385-t-compiler.2Fwg-rustc-dev-guide and we can talk there. |
libsyntax: Enhance documentation of the AST module This PR enhances documentation state to the `libsyntax/ast.rs` (as initiative caused by [rustc-guide#474](rust-lang/rustc-dev-guide#474)), by adding: - Module documentation. - Doc-comments (and a bit of usual comments) in non-obvious (as for me) places. - Minor style fixes to improve module readability.
…etrochenkov librustc_lexer: Enhance documentation This PR enhances documentation state of the `librustc_lexer` (as initiative caused by [rustc-guide#474](rust-lang/rustc-dev-guide#474)), by adding: - Module documentation. - Doc-comments (and a bit of usual comments) in non-obvious (as for me) places. r? @petrochenkov cc @Centril
…etrochenkov librustc_lexer: Enhance documentation This PR enhances documentation state of the `librustc_lexer` (as initiative caused by [rustc-guide#474](rust-lang/rustc-dev-guide#474)), by adding: - Module documentation. - Doc-comments (and a bit of usual comments) in non-obvious (as for me) places. r? @petrochenkov cc @Centril
Triage: Closing. There are not READMEs for the individual crates by design. |
Remark: this issue is more like a topic for discussion, than actual change request.
Description
Currently, most of crates in the
rust
repository don't have a personalREADME.md
file.There is a
rustc-guide
intended for developers, but it doesn't expose the purpose and the core moments of libraries.Thus, a new developer has to dig in by himself.
Example scenario: developer decides to improve something in the compiler. He finds the module responsible for the feature he wants to enhance, and... that's it. Now he have to understand the whole module before he will be able to start working on it.
My proposal is the following:
Add a
README.md
to each crate (of course, not all at the same time) which will contain the following information:With such a file, entry threshold will be much lower and (I believe) getting into
rust
development will become easier.From my side, I can try to implement such a
README.md
forlibtest
(as I'm familiar with it).The text was updated successfully, but these errors were encountered: