-
Notifications
You must be signed in to change notification settings - Fork 432
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
Add CONTRIBUTING.md #443
Add CONTRIBUTING.md #443
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, thanks!
We especially welcome documentation PRs. | ||
|
||
As of Rust 1.25 there are differences in how stable and nightly render | ||
documentation links. Make sure it works on stable, then nightly should be good |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another handy tip is to install inotify-tools, then use this command to rebuild documentation automatically on save:
while inotifywait -r -e close_write src/; do cargo doc; done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That trick is new for me. It is nice, but it does not really seem suitable here in my opinion (and Linux-specific?).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, linux-specific. Better:
while inotifywait -r -e close_write src/ rand_core/; do cargo doc; done
CONTRIBUTING.md
Outdated
cargo test --package rand_core --no-default-features | ||
|
||
# Test no_std+alloc support | ||
cargo test --lib --no-default-features --features alloc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
point out this requires nightly?
|
||
```sh | ||
# Benchmarks (requires nightly) | ||
cargo bench |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought you recommended this?
export RUSTFLAGS="-C codegen-units=1"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but the you fixed the problem in #317.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did? And I've still been using the export ever since 😄
Updated. |
CONTRIBUTING.md
Outdated
Thank you for your interest in contributing to Rand! | ||
|
||
The following is a list of notes and tips for when you want to contribute to | ||
Rand with a PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would expand "PR" here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! This definitely works for me.
@vks Would this help with your concerns about removing the section about testing from the readme #439 (comment)?