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

Add CONTRIBUTING.md #443

Merged
merged 1 commit into from
May 13, 2018
Merged

Add CONTRIBUTING.md #443

merged 1 commit into from
May 13, 2018

Conversation

pitdicker
Copy link
Contributor

@vks Would this help with your concerns about removing the section about testing from the readme #439 (comment)?

Copy link
Member

@dhardy dhardy left a 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
Copy link
Member

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

Copy link
Contributor Author

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?).

Copy link
Member

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
Copy link
Member

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
Copy link
Member

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"

Copy link
Contributor Author

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.

Copy link
Member

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 😄

@pitdicker
Copy link
Contributor Author

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.
Copy link
Collaborator

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.

Copy link
Collaborator

@vks vks left a 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.

@pitdicker pitdicker merged commit c654d5d into rust-random:master May 13, 2018
@pitdicker pitdicker deleted the contributing branch May 13, 2018 05:39
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

Successfully merging this pull request may close these issues.

3 participants